#[derive(Quantizable)]
{
// Attributes available to this derive:
#[quantizable]
}
Expand description
Derive the Quantizable
trait for a struct. Mark a field with
#[quantizable]
attribute to include it in the quantization process.
Only support types M
that M::Quantized = Self
See mlx-rs/mlx-tests/tests/test_quantizable.rs
for example usage.
ยงPanics
This macro will panic if the struct does not have any field marked with
#[quantizable]
.