Neural network modules¶
mlx_lattice.nn mirrors the functional operation API with
mlx.nn.Module-style parameter ownership. Modules accept and return
mlx_lattice.SparseTensor for sparse operations, except global pooling
modules, which return dense (B, C) MLX arrays.
Use this section when you need module constructors, parameter names,
to_quantized behavior, or the exact relationship between module wrappers
and functional operations.
Module map¶
Feature set |
Module API |
Functional/reference pages |
|---|---|---|
Sparse convolution |
||
Quantized sparse convolution |
||
Sparse feature modules |
||
Quantized sparse feature modules |
||
Sparse pooling |
Coordinate behavior¶
Module family |
Coordinate effect |
Output type |
|---|---|---|
|
Generates forward or explicit target support. |
|
|
Preserves input coordinate identity. |
|
Transpose convolution modules |
Generate expanded sparse support. |
|
Feature modules |
Preserve coordinate identity. |
|
Local pooling modules |
Generate pooled support from a kernel relation. |
|
Global pooling modules |
Reduce by |
Dense MLX array |