Skip to main content

vmap_replace

Function vmap_replace 

Source
pub fn vmap_replace(
    inputs: &MlxArrayVector,
    traced_inputs: &MlxArrayVector,
    traced_outputs: &MlxArrayVector,
    input_axes: &[i32],
    output_axes: &[i32],
) -> Result<MlxArrayVector, MlxCError>
Expand description

Replaces one traced array in a vector-of-arrays graph, the building block of the VMAP transform.

ยงErrors

Returns the captured MLX-C description when the replacement fails.