import torch import numpy as np # 初始化张量,传入的数据是整型返回的就是整型张量 # 初始化张量,传入的数据是浮点型返回的就是64位浮点型的张量 t = torch.tensor([1, 2, 3]
京公网安备 11010502049817号