We can cast a Tensor to another type in PyTorch as below: import torch # Create a float tensor y = torch.randn(5, 5) # Cast the flost tensor ...
確定! 回上一頁