Crate mlx_rs

Source
Expand description

Unofficial rust bindings for the MLX framework.

Modules§

  • Defines helper traits for builder pattern
  • Custom error types and handler for the c ffi
  • Fast implementations of commonly used multi-op functions.
  • Fast Fourier Transform (FFT) and its inverse (IFFT) for one, two, and N dimensions.
  • Linear algebra operations.
  • Loss functions
  • Macros for mlx-rs.
  • This mod defines the traits for neural network modules and parameters.
  • Implements a nested hashmap
  • Neural network support for MLX
  • Operations
  • Trait and implementations for optimizers.
  • Traits for quantization
  • Collection of functions related to random number generation
  • Implementations of function transformations.
  • Utility functions and types.

Macros§

  • A helper macro to create an array with up to 3 dimensions.
  • Asserts that two arrays are equal.

Structs§

  • An n-dimensional array.
  • Representation of a Device in MLX.
  • An iterator over the variants of Dtype
  • A stream of evaluation attached to a particular device.
  • Parameter type for all MLX operations.

Enums§

Traits§

  • A marker trait for array elements.
  • A helper trait to construct Array from nested arrays or slices.
  • A helper trait to construct Array from scalar values.

Functions§

Type Aliases§

  • Type alias for num_complex::Complex<f32>.