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 implementModuleParameters
. - 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§
- Type alias for flattened module parameters.
- Type alias for mutably borrowed flattened module parameters.
- Type alias for borrowed flattened module parameters.
- Type alias for owned module parameters.
- Type alias for mutably borrowed module parameters.
- Type alias for borrowed module parameters.