Advertisement

torch.set_printoptions(like=False)

阅读量:

  1. 对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)

还没有任何评论哟~