latest (dev)
Copy
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_itemsis accepted as an alias.linewidth (int, optional) – line width for wrapping output.
Unset (
None) arguments keep their current values.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

