... x=x.new_ones(5,3,dtype=torch.double) print(x) x=torch.randn_like(x,dtype=torch.float) print(x) # 获取它的维度信息print(x.size()).
確定! 回上一頁