Skip to main content

check_vmap_xla

Function check_vmap_xla 

Source
pub fn check_vmap_xla(
    client: &Client,
    f: &Function,
    examples: &[Vec<HostArray>],
    in_axes: &[Option<usize>],
    tolerance: Option<(f64, f64)>,
) -> Result<(), String>
Expand description

check_vmap, and also runs the batched function with XLA, which must agree with the interpreter within xla_tolerance (or tolerance for floats, if it is looser).

ยงErrors

Returns a description of the first disagreement.