Skip to main content

export_function

Function export_function 

Source
pub fn export_function(
    path: &str,
    function: &MlxClosure,
    example_arguments: &MlxArrayVector,
    shapeless: bool,
) -> Result<(), MlxCError>
Expand description

Exports a closure and example arguments to an MLX function file.

ยงErrors

Returns the captured MLX-C description when export fails.