Traceback (most recent call last):


 "train.py", line 85, in <module>

model, optimizer = amp.initialize(model, optimizer, opt_level=args.opt_level)


 "/opt/conda/lib/python3.7/site-packages/apex/amp/frontend.py", line 358, in initialize

return _initialize(models, optimizers, _amp_state.opt_properties, num_losses, cast_model_outputs)


 "/opt/conda/lib/python3.7/site-packages/apex/amp/_initialize.py", line 209, in _initialize

module._register_state_dict_hook(O2StateDictHook(functools.partial(to_type, torch.float32)))


 "/opt/conda/lib/python3.7/site-packages/torch/jit/__init__.py", line 1689, in fail

raise RuntimeError(name + " is not supported on ScriptModules")
RuntimeError: _register_state_dict_hook is not supported on ScriptModules

Traceback (most recent call last):


 "examples/eval_model.py", line 18, in <module>

eval_model(opt, print_parser=parser)


 "/home/yskimno1/parlai/ParlAI/parlai/scripts/eval_model.py", line 177, in eval_model

agent = create_agent(opt, requireModelExists=True)


 "/home/yskimno1/parlai/ParlAI/parlai/core/agents.py", line 401, in create_agent

model = create_agent_from_opt_file(opt)


 "/home/yskimno1/parlai/ParlAI/parlai/core/agents.py", line 356, in create_agent_from_opt_file

return model_class(new_opt)


 "/home/yskimno1/parlai/ParlAI/projects/image_chat/transresnet_multimodal/transresnet_multimodal.py", line 67, in __init__

super().__init__(opt, shared)


 "/home/yskimno1/parlai/ParlAI/projects/personality_captions/transresnet/transresnet.py", line 100, in __init__

self._build_model()


 "/home/yskimno1/parlai/ParlAI/projects/image_chat/transresnet_multimodal/transresnet_multimodal.py", line 96, in _build_model

self.load(init_model_path)


 "/home/yskimno1/parlai/ParlAI/projects/personality_captions/transresnet/transresnet.py", line 515, in load

self.model.load_state_dict(states['model'])


 "/usr/local/lib/python3.6/dist-packages/torch-1.4.0-py3.6-linux-x86_64.egg/torch/nn/modules/module.py", line 830, in load_state_dict

self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for TransresnetMultimodalModel:
