# tensorplay.testing.get_tolerances Source: https://www.tensorplay.cn/docs/generated/tensorplay.testing.get_tolerances.html ```python tensorplay.testing.get_tolerances(*inputs: Tensor | dtype, rtol: float | None, atol: float | None, id: tuple[Any, ...] = ()) → tuple[float, float] ``` 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()](/docs/generated/tensorplay.testing.default_tolerances.html#tensorplay.testing.default_tolerances) is used. Specifying only one raises a [ValueError](https://docs.python.org/3/builtins/exceptions.html#ValueError), since a single tolerance might lead to surprising results.