Catherine_zhilin

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

IndexError: invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()` in C++ to convert a 0-dim tensor to a number - Attack-DrHao - 博客园 (cnblogs.com)

 

posted on 2022-08-31 17:28  kkkshiki  阅读(22)  评论(0编辑  收藏  举报