Remove OFFLINE_TRAINING from global constant

Summary: This is not a very generic constant

Reviewed By: volkhin

Differential Revision: D5870378

fbshipit-source-id: 59509bb48cecb52ba4a3f26b290855374547fe7e
This commit is contained in:
Kittipat Virochsiri 2017-09-20 11:50:01 -07:00 committed by Facebook Github Bot
parent 0fff025973
commit 7d2b2cae19

View file

@ -116,7 +116,6 @@ class LayerModelHelper(model_helper.ModelHelper):
self.add_global_constant('ONE', 1.0)
self.add_global_constant('ZERO', 0.0)
self.add_global_constant('ZERO_RANGE', [0, 0], dtype='int32')
self.add_global_constant('OFFLINE_TRAINING', True, dtype='bool')
def _add_global_constants(self, init_net):
for initializer_op in self.global_constant_initializers: