昇思MindSpore论坛
MindSpore动态图模式下梯度计算报错AttributeError: module 'mindspore' has no attribute 'value_and_grad'
经验分享 Tech Blogs
模型训练-Model Training
kang_zl
(Kang Zl)
2026 年3 月 1 日 05:25
2
参与帖子:
MindSpore梯度计算报错AttributeError: module ‘mindspore’ has no attribute ‘value_and_grad’分析及解决
在话题中显示帖子
相关话题
话题
回复
浏览量
时间点
函数变换获得梯度计算函数时报错AttributeError: module 'mindspore' has no attribute 'value_and_grad'
模型训练-Model Training
0
26
2025 年8 月 5 日
MindSpore梯度计算报错AttributeError: module ‘mindspore’ has no attribute ‘value_and_grad’分析及解决
功能调试-Function Debugging
0
10
2026 年3 月 1 日
MindSpore不能像torch的param.grad直接获取梯度问题及解决
模型训练-Model Training
0
32
2025 年8 月 9 日
MindSpore自定义算子梯度计算不正确Loss异常
模型训练-Model Training
1
29
2025 年10 月 27 日
使用mint.masked_select在图模式下报错Parse Lambda Function Fail. Node type must be Lambda, but got Call.
模型训练-Model Training
0
25
2025 年8 月 19 日