AttributeError: 'int' object has no attribute 'name'
时间: 2023-10-01 17:02:20 浏览: 201
AttributeError: 'int' object has no attribute 'name'这个错误通常出现在你试图访问一个整数对象的name属性时,但是整数对象没有name属性。这个错误的原因可能是你在代码中错误地将一个整数对象赋值给了一个应该是对象的变量。你可以检查一下你的代码,看是否有这样的情况出现。另外,你还可以查看你的代码中是否有其他地方也出现了类似的错误,例如在其他地方将整数对象当作对象进行操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [win-cython_nms-bbox-](https://download.csdn.net/download/weixin_42144604/18552136)[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: ‘int‘ object has no attribute ‘numel](https://blog.csdn.net/hc0112/article/details/119858433)[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 ]
阅读全文