Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模型保存问题 #100

Open
WenwenZong opened this issue May 6, 2023 · 0 comments
Open

模型保存问题 #100

WenwenZong opened this issue May 6, 2023 · 0 comments

Comments

@WenwenZong
Copy link

在代码中提供了保存模型参数的代码,请问各位复现代码的大佬,在实现断点续训时,如何保存optimizer的参数?在采用保存语句时,会出现以下错误。
"optimizer_state": optim.state_dict(),
AttributeError: 'Optimizer' object has no attribute 'state_dict'
请各位解决下疑问,万分感谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant