| Crates.io | mlx-macros-burn |
| lib.rs | mlx-macros-burn |
| version | 0.25.5 |
| created_at | 2025-12-31 08:26:52.712176+00 |
| updated_at | 2025-12-31 09:05:37.844726+00 |
| description | Procedural macros for mlx-rs-burn |
| homepage | |
| repository | https://github.com/TuringWorks/mlx-rs |
| max_upload_size | |
| id | 2014241 |
| size | 17,275 |
Procedural macros for mlx-rs-burn.
This crate provides public procedural macros for mlx-rs-burn, including:
#[derive(ModuleParameters)] - Derive macro for neural network module parametersThis crate is automatically included as a dependency of mlx-rs-burn. You typically don't need to add it directly.
[dependencies]
# Just use mlx-rs-burn instead:
mlx-rs-burn = "0.25.4"
#[derive(ModuleParameters)]Automatically implements parameter collection for neural network modules:
use mlx_macros::ModuleParameters;
#[derive(ModuleParameters)]
struct MyLayer {
#[param]
weights: Array,
#[param]
bias: Array,
}
| Crate | Description |
|---|---|
| mlx-rs-burn | Safe Rust bindings for MLX |
| mlx-sys-burn | Low-level FFI bindings |
| mlx-internal-macros-burn | Internal macros |
| burn-mlx | MLX backend for Burn |
Fork of mlx-macros from oxideai/mlx-rs.
MIT OR Apache-2.0