Pytorch math calculation ( only one element tensors can be converted to Python scalars)

后端 未结 0 799
执笔经年
执笔经年 2020-11-22 00:54

What does it mean by only one element tensors can be converted to Python scalars in this case and how do I suppose to debug it?

x1 = (max-min)*torch.rand(1, 2         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题