×

签到

分享到微信

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

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

关于dump_patches 已解决 tiger_k2021-12-02 10:08:50 回复 1 查看 技术答疑 使用求助
关于dump_patches
分享到:

我在运行yolov5网络的 生成离线模型时 出现警告

  warnings.warn(msg, SourceChangeWarning)
/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.

在我设定之后出现了下面的patch文件。这个是自动将我的代码中的某些函数进行修改替换吗?


image.png

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