mlx_rs

Module module

Source
Expand description

This mod defines the traits for neural network modules and parameters.

This is to separate the trait definitions from the implementations, which are in the mlx-nn crate. This also allows using the mlx_macros::ModuleParameters derive macro in crates other than mlx-nn.

Structs§

  • A simple wrapper for a module parameter.

Traits§

  • Trait for a neural network module.
  • Trait for accessing and updating module parameters.
  • Extension trait for ModuleParameters. This is implemented for all types that implement ModuleParameters.
  • Trait for a module parameter.
  • Marker trait for a unary neural network module.

Functions§

  • Update the module parameters from an iterator of (key, value) tuples.

Type Aliases§