ExTorch.Utils.PrintOptions
(extorch v0.2.0)
Copy Markdown
Tensor printing options.
Summary
Types
An ExTorch.Utils.PrintOptions is a struct that is used to set different
printing options to display an ExTorch.Tensor struct.
Types
@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: 4threshold: Total number of array elements which trigger summarization rather than fullrepr. 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. Ifnil(default) is specified, the value is defined by the formatter. This value is automatically chosen by the framework.