latest (dev)
Copy
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
rtolandatolare specified, this is a no-op. If neither is specified,default_tolerances()is used. Specifying only one raises aValueError, since a single tolerance might lead to surprising results.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

