EADST

PyTorch Tensor精度打印

PyTorch Tensor精度打印

import torch

torch.set_printoptions(precision=16) # 16 位小数打印
x = torch.tensor([3.141592653589793, 2.718281828459045])
print(x)
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文269篇,共被浏览449622

本站已经建立2033天!

热门文章
文章归档
回到顶部