当前位置:网站首页>torch. Tensor and torch The difference between tensor

torch. Tensor and torch The difference between tensor

2022-07-04 21:15:00 Fun of construction

torch.tensor Is the function , and torch.Tensor It's a class .
torch.tensor The return is torch.Tensor Class .
 Insert picture description here
besides , There are also several kinds of generation torch.Tensor How instances work , See the picture below

Generate torch.Tensor How instances work :

 Insert picture description here

原网站

版权声明
本文为[Fun of construction]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207042008529200.html