mlx_rs

Module utils

Source
Expand description

Utility functions and types.

Enums§

  • Helper type to represent either a single value or a pair of values.
  • Helper type to represent either a single value or a triple of values.
  • Helper type to represent either a single value or a vector of values.

Traits§

  • A helper trait that is just like Into<Option<T>> but improves ergonomics by allowing implicit conversion from &[T; N] to &[T].
  • A trait for a scalar or an array.
  • Helper trait for compiling a function that takes a Module and/or an Optimizer. The implementation must ensure consistent ordering of the returned states.