5 testEvalModeForLoadedModule_module_path =
'dropout_model.pt' 8 def testEvalModeForLoadedModule_setup():
11 super(Model, self).__init__()
12 self.dropout = torch.nn.Dropout(0.1)
20 model.save(testEvalModeForLoadedModule_module_path)
23 def testEvalModeForLoadedModule_shutdown():
24 if os.path.exists(testEvalModeForLoadedModule_module_path):
25 os.remove(testEvalModeForLoadedModule_module_path)
29 testEvalModeForLoadedModule_setup()
33 testEvalModeForLoadedModule_shutdown()
36 if __name__ ==
"__main__":
38 if command ==
"setup":
40 elif command ==
"shutdown":