Skip to content

模型保存问题 #100

Description

@WenwenZong

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions