TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.set_printoptions

tensorplay.set_printoptions(precision=None, threshold=None, edgeitems=None, linewidth=None, edge_items=None, **kwargs)[source]

Set printing options for tensor output.

Parameters:
  • precision (int, optional) – digits after the decimal point.

  • threshold (int, optional) – total elements above which large tensors are summarized instead of printed fully.

  • edgeitems (int, optional) – edge items printed per dimension when summarizing. edge_items is accepted as an alias.

  • linewidth (int, optional) – line width for wrapping output.

Unset (None) arguments keep their current values.

On this page

Ask DeepWiki