Toggle training mode for MLX modules
mlx_set_training.Rdmlx_set_training() switches modules between training and evaluation modes.
Layers that do not implement training-specific behaviour ignore the call.
Examples
model <- mlx_sequential(mlx_linear(2, 4), mlx_dropout(0.5))
mlx_set_training(model, FALSE)