参考 torch.zeros( ) - 云+社区 - 腾讯云 # 输入: import torch x=torch.zeros(3) print(x) Output: tensor([0., 0., 0.])