#56 optimizer.state_dict()报错

Open
created 6 months ago by Jayus71 · 2 comments
Jayus71 commented 6 months ago
在路径:MSAdapterModelZoo/official/cv/faster_rcnn/faster_rcnn_adapter/trainval_net.py文件中, 类似这样的代码在本地运行会报错,`'optimizer': optimizer.state_dict(),`提示信息如下:`AttributeError: The 'Adam' object has no attribute 'state_dict'.`
Jayus71 commented 6 months ago
Poster
补充对应代码的位置:https://openi.pcl.ac.cn/OpenI/MSAdapterModelZoo/src/branch/master/official/cv/faster_rcnn/faster_rcnn_adapter/trainval_net.py#L340
Erpim commented 1 month ago
Collaborator
感谢您的反馈,很抱歉未能及时处理该任务,后续我们会及时跟进。 前期版本Adam功能还不完备,缺失state_dict方法,mindtorch 0.2及之后的版本已经修复了该问题,您可以更新版本后使用。
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.