×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

关于set `torch.nn.Module.dump_patches = True`的警告 已解决 tiger_k2021-12-03 09:15:25 回复 2 查看 使用求助
关于set `torch.nn.Module.dump_patches = True`的警告
分享到:

/workspace/volume/private/sdk/venv/pytorch/lib/python3.7/site-packages/torch/serialization.py:574: SourceChangeWarning: source code of class 'torch.nn.modules.container.ModuleList' has changed. you can retrieve the original source code by accessing the  's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.

我在运行融合模式的时候报错的警告,这里边的

set `torch.nn.Module.dump_patches = True`

是什么意思呢 ?

我设置之后会出现需要patch文件,这是在优化我的代码吗

版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭