AttributeError: 'GSConv' object has no attribute 'fuse_repvgg_block'
时间: 2023-10-07 19:10:04 浏览: 122
【Python】AttributeError: ‘AutoSchema’ object has no attribute ‘get_link’
5星 · 资源好评率100%
这个错误是因为在代码中的某个地方使用了 'GSConv' 对象的 'fuse_repvgg_block' 属性,但实际上 'GSConv' 对象没有这个属性。通过查看引用中的错误信息,我们可以看到这个错误是在搭建django-rest-swagger时出现的。为了解决这个问题,我们可以按照引用中的提示,在 common.py 文件中找到 'Conv' 类,将 'foward_fuse' 方法改成 'fuseforward'。这样就可以修复这个错误了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【Python】AttributeError: ‘AutoSchema’ object has no attribute ‘get_link’](https://download.csdn.net/download/weixin_38534444/13745029)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [AttributeError: ‘Conv‘ object has no attribute ‘fuseforward](https://blog.csdn.net/hhhhhhhhhhwwwwwwwwww/article/details/128224988)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文