ExTorch.Utils.PrintOptions (extorch v0.4.0)

Copy Markdown

Tensor printing options.

Summary

Types

t()

An ExTorch.Utils.PrintOptions is a struct that is used to set different printing options to display an ExTorch.Tensor struct.

Functions

Retrieve the default print options.

Retrieve the full print options.

Retrieve the short print options.

Types

t()

@type t() :: %ExTorch.Utils.PrintOptions{
  edgeitems: integer(),
  linewidth: integer(),
  precision: integer(),
  sci_mode: boolean() | nil,
  threshold: float()
}

An ExTorch.Utils.PrintOptions is a struct that is used to set different printing options to display an ExTorch.Tensor struct.

Fields

  • precision: Number of digits of precision for floating point output. Default: 4

  • threshold: Total number of array elements which trigger summarization rather than full repr. Default: 1000.

  • edgeitems: Number of array items in summary at beginning and end of each dimension. Default: 3.

  • linewidth: The number of characters per line for the purpose of inserting line breaks (default = 80). Thresholded matrices will ignore this parameter.

  • sci_mode: Enable (true) or disable (false) scientific notation. If nil (default) is specified, the value is defined by the formatter. This value is automatically chosen by the framework.

Functions

default()

@spec default() :: t()

Retrieve the default print options.

full()

@spec full() :: t()

Retrieve the full print options.

short()

@spec short() :: t()

Retrieve the short print options.