Expand description
Macros for mlx-rs.
Derive Macrosยง
- Module
Parameters - Derive the
ModuleParameters
trait for a struct. Mark a field with#[param]
attribute to include it in the parameters. The field type must implement themlx_rs::module::Parameter
trait. - Quantizable
- Derive the
Quantizable
trait for a struct. Mark a field with#[quantizable]
attribute to include it in the quantization process. Only support typesM
thatM::Quantized = Self