1. 报错如下:
发生异常: TypeError
rsub() received an invalid combination of arguments - got (Tensor, numpy.ndarray), but expected one of:
         * (Tensor input, Tensor other, *, Number alpha)
         * (Tensor input, Number other, Number alpha)
 
2. 解决如下
https://blog.csdn.net/m0_46527503/article/details/114549630
 
我的:在于numpy的array和pytorch的tensor,两种类型不一致,不可以直接运算。

相关文章:

  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-07-14
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-05-28
  • 2021-12-29
相关资源
相似解决方案