浏览代码

Update ml-agents/mlagents/trainers/model_saver/torch_model_saver.py

Co-authored-by: Ervin T. <ervin@unity3d.com>
/fix-resume-imi
GitHub 4 年前
当前提交
eddeed9c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/model_saver/torch_model_saver.py

2
ml-agents/mlagents/trainers/model_saver/torch_model_saver.py


f"Did not expect these keys {unexpected_keys} in checkpoint. Ignoring."
)
else:
# optimizers are treated separately
# If module is not an nn.Module, try to load as one piece
mod.load_state_dict(saved_state_dict[name])
# KeyError is raised if the module was not present in the last run but is being

正在加载...
取消
保存