Exemple #1
0
 def __init__(self, first_token, key_to_value, prev_names = None):
     # Here we just list some likely combinations.. you can just add any
     # combinations you want to use, to this list.
     assert first_token in ['attention-renorm-layer',
                            'attention-relu-renorm-layer',
                            'relu-renorm-attention-layer']
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #2
0
 def __init__(self, first_token, key_to_value, prev_names = None):
     # Here we just list some likely combinations.. you can just add any
     # combinations you want to use, to this list.
     assert first_token in ['attention-renorm-layer',
                            'attention-relu-renorm-layer',
                            'attention-relu-batchnorm-layer',
                            'relu-renorm-attention-layer']
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #3
0
 def __init__(self, first_token, key_to_value, prev_names = None):
     assert first_token in [ 'tdnn-relu-layer', 'tdnn-relu-renorm-layer',
                             'tdnn-sigmoid-layer', 'tdnn-tanh-layer' ]
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #4
0
 def __init__(self, first_token, key_to_value, prev_names=None):
     assert first_token == "tdnnf-layer"
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
 def __init__(self, first_token, key_to_value, prev_names=None):
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #6
0
 def __init__(self, first_token, key_to_value, prev_names=None):
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
 def __init__(self, first_token, key_to_value, prev_names=None):
     assert first_token in [
         'tdnn-relu-layer', 'tdnn-relu-renorm-layer', 'tdnn-sigmoid-layer',
         'tdnn-tanh-layer'
     ]
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #8
0
 def __init__(self, first_token, key_to_value, prev_names = None):
     assert first_token == "lstmpc-layer"
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
 def __init__(self, first_token, key_to_value, prev_names = None):
     print first_token
     assert first_token == "lstmp-layer"
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #10
0
 def __init__(self, first_token, key_to_value, prev_names=None):
     assert first_token == "channel-average-layer"
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #11
0
 def __init__(self, first_token, key_to_value, prev_names=None):
     assert first_token == 'res-block'
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #12
0
 def __init__(self, first_token, key_to_value, prev_names=None):
     for operation in first_token.split('-')[:-1]:
         assert operation in [
             'conv', 'renorm', 'batchnorm', 'relu', 'dropout'
         ]
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #13
0
 def __init__(self, first_token, key_to_value, prev_names=None):
     assert first_token in ['stats-layer']
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #14
0
 def __init__(self, first_token, key_to_value, prev_names = None):
     assert first_token == "channel-average-layer"
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #15
0
 def __init__(self, first_token, key_to_value, prev_names = None):
     assert first_token == 'res-block'
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)
Exemple #16
0
 def __init__(self, first_token, key_to_value, prev_names = None):
     for operation in first_token.split('-')[:-1]:
         assert operation in ['conv', 'renorm', 'batchnorm', 'relu', 'dropout']
     XconfigLayerBase.__init__(self, first_token, key_to_value, prev_names)