https://discuss.pytorch.org/t/difference-between-torch-dtype-and-torch-tensortype/58948/2
1.更改
源代码如下
float_tensor = torch.tensor([4,5,6], dtype=float)# `datatype`
出现错误:TypeError: tensor(): argume
https://discuss.pytorch.org/t/difference-between-torch-dtype-and-torch-tensortype/58948/2
源代码如下
float_tensor = torch.tensor([4,5,6], dtype=float)# `datatype`
出现错误:TypeError: tensor(): argume