pub fn vmap_with_out_axes(
f: &Function,
in_axes: &[Option<usize>],
out_axes: &[Option<usize>],
axis_size: usize,
) -> Result<Function>Expand description
vmap with the batch dimension of each output: Some(d) puts it at
dimension d (broadcasting outputs that do not depend on the batched
inputs), and None requires the output to be the same for every example.
ยงErrors
Returns the errors of vmap, and an error if an output with None
depends on the batched inputs.