TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-08

tensorplay.testing.get_tolerances

tensorplay.testing.get_tolerances(*inputs: Tensor | dtype, rtol: float | None, atol: float | None, id: tuple[Any, ...] = ()) → tuple[float, float][source]

Gets absolute and relative tolerances to be used for numeric comparisons.

If both rtol and atol are specified, this is a no-op. If neither is specified, default_tolerances() is used. Specifying only one raises a ValueError, since a single tolerance might lead to surprising results.

On this page

Ask DeepWiki