Skip to main content

check_vmap_xla_only

Function check_vmap_xla_only 

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

check_vmap for a function that only XLA runs (extern_call): the batched function and the loop both run with XLA.

ยงErrors

Returns a description of the first disagreement.