Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)