当前位置:网站首页>【网络迁移】Pytorch中的torch.no_grad对应MindSpore哪个方法

【网络迁移】Pytorch中的torch.no_grad对应MindSpore哪个方法

2022-08-10 03:28:00 小乐快乐

请问,在做mindspore模型迁移时,若遇到截图中所示的信息情况该如何处理呀?

【截图信息】

from mindspore.ops import functional as F

F.stop_gradient(xxx)

https://www.mindspore.cn/docs/programming_guide/en/r1.5/grad_operation.html?highlight=stop_gradient

原网站

版权声明
本文为[小乐快乐]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_45666880/article/details/126249526