• 关于 pytorch中Tensor数据类型的使用问题
  • python
    1.00元

原文中的代码:

if condi_inputs:
                   condi_inputs = torch.cat((condi_inputs, condi_inputs))

报错提示:

RuntimeError: bool value of Tensor with more than one value is ambiguous

这里的condi_inputs是一个Tensor变量,然后就不是很清楚这个IF想判定什么内容,也不知道该怎么更改,不知道有没有大神可以私下解决一下。


  • 西西    2020-01-13 11:30:11
  • 阅读 1043    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信