Skip to main content

print_graph

Function print_graph 

Source
pub unsafe fn print_graph(
    output_file: GraphOutputFile,
    namer: &MlxNodeNamer,
    outputs: &MlxArrayVector,
) -> Result<(), MlxCError>
Expand description

Prints the graph behind the outputs as text.

§Safety

The output file must be a valid open FILE for the duration of the call.

§Errors

Returns the captured MLX-C description when printing fails.