示例#1
0
 def on_batch_end(self, *args, **kwargs):
     freeze_modules(self.__modules, invert=True)
示例#2
0
 def on_sample_end(self, *args, **kwargs):
     freeze_modules(self.__modules, invert=True)
示例#3
0
 def on_batch_begin(self, *args, **kwargs):
     freeze_modules(self.__modules)
示例#4
0
 def on_sample_begin(self, *args, **kwargs):
     freeze_modules(self.__modules)