Skip to main content

vmap_trace

Function vmap_trace 

Source
pub fn vmap_trace(
    function: &MlxClosure,
    inputs: &MlxArrayVector,
    input_axes: &[i32],
) -> Result<(MlxArrayVector, MlxArrayVector, MlxVectorInt), MlxCError>
Expand description

Traces a closure for the VMAP transform, producing traced inputs and outputs plus the resolved axes.

ยงErrors

Returns the captured MLX-C description when tracing fails.