pub fn check_vmap(
f: &Function,
examples: &[Vec<HostArray>],
in_axes: &[Option<usize>],
) -> Result<(), String>Expand description
Checks that vmap(f) agrees with a loop over examples, for a function
f and the arguments of each example (all with the same types).
in_axes[i] batches argument i along that dimension, or, if None,
uses the argument of the first example for every example. The batched
function must be well typed, and its results with the interpreter must
equal, bit for bit, the stacked results of the interpreter on each
example; the native backend ([ruxla_core::eval_native]) must give the
same bits as the interpreter on the batched function.
ยงErrors
Returns a description of the first disagreement.