pytorch 学习 生成一个tensor: tensor = torch.rand([1, 3, 416, 416]) pytorch tensor的属性: tensor.shape tensor.dtype tensor.device tensor.ndim (number dimension)