mindspore静态图模式训练出现问题

Constant value tensor are detected in tuple or list, which might cause recompiling when tensor value changes. You can use mutable(Tensor) or mutable(tuple(Tensor)) to set tensor’s value as variable to to avoid recompiling

如何解决?

用户您好,参考上述信息提示,可以把常值tensor再转换一下,转为Mutable(tensor)或者Mutable(tuple(tensor))。这样应该不会触发再次编译。

@minder 用户您好,MindSpore支撑人已经分析并给出了问题的原因,由于较长时间未看到您采纳回答,这里版主将进行采纳回答的结帖操作,如果还其他疑问请发新帖子提问,谢谢支持~

此话题已在最后回复的 60 分钟后被自动关闭。不再允许新回复。