torch.set_printoptions(like=False)
发布时间
阅读量:
阅读量
【
- 对torch.set_printoptions函数的理解
示例代码:
> torch.set_printoptions(precision=None, threshold=None, edgeitems=None, linewidth=None, profile=None, sci_mode=None)
>
> ```
>
>
>
> 属性:
>
>
1. precision – Number of digits of precision for floating point output (default = 4).
2. 3. threshold – Total number of array elements which trigger summarization rather than full repr (default = 1000). 4. 5. edgeitems – Number of array items in summary at beginning and end of each dimension (default = 3). 6.
全部评论 (0)
还没有任何评论哟~
