Skip to main content

xla_tolerance

Function xla_tolerance 

Source
pub fn xla_tolerance(dtype: DType) -> (f64, f64)
Expand description

Returns the tolerance (rtol, atol) for comparing XLA with the interpreter.

XLA computes transcendental functions with its own approximations, fuses multiplications and additions, and may reorder sums, so the last bits differ.