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