torch.PrintOptions
export interface PrintOptions {
/** Number of decimal places for floating point. Default 4. */
precision?: number;
/** Total number of elements to show before summarizing. Default 1000. */
threshold?: number;
/** Number of elements to show at start/end of dimensions. Default 3. */
edgeitems?: number;
/** Number of characters per line. Default 80. */
linewidth?: number;
/** Profile preset: 'default', 'short', or 'full'. */
profile?: 'default' | 'short' | 'full';
/** Whether to use scientific notation. null = auto. */
sci_mode?: boolean | null;
}precision(number)optional- – Number of decimal places for floating point. Default 4.
threshold(number)optional- – Total number of elements to show before summarizing. Default 1000.
edgeitems(number)optional- – Number of elements to show at start/end of dimensions. Default 3.
linewidth(number)optional- – Number of characters per line. Default 80.
profile('default' | 'short' | 'full')optional- – Profile preset: 'default', 'short', or 'full'.
sci_mode(boolean | null)optional- – Whether to use scientific notation. null = auto.
Options for set_printoptions.