mlx_graphs.nn.Linear#
- class mlx_graphs.nn.Linear(input_dims: int, output_dims: int, bias: bool = True) None [source]#
Bases:
Linear
Linear layer with Xavier Glorot weight inititalization.
This Linear class inherits from mx.nn.Linear, but uses glorot initialization instead of the default initialization in mlx’s Linear.
- Parameters:
Methods