Skip to content

Remove the empty input guard on the fused norm ops - #169

Merged
hertschuh merged 1 commit into
mainfrom
drop-empty-norm-guard
Dec 1, 2026
Merged

hertschuh merged 1 commit into
mainfrom
drop-empty-norm-guard

Conversation

@MarcosAsh

Copy link
Copy Markdown
Collaborator

mlx 0.32.5 fixed the gradients of the fused norm kernels on an empty input, and the plugin has required 0.32.5 since #165, so empty inputs no longer need the composed op.

The test moves to metal_kernels_test.py and also covers an empty normalized axis.

On Metal with mlx 0.32.5 the keras suite gives the same results as main, the full suite with compile on and ops, layers, losses, metrics, models and trainers with compile off.

@hertschuh hertschuh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hertschuh
hertschuh merged commit 36371c1 into main Dec 1, 2026
10 checks passed
@hertschuh
hertschuh deleted the drop-empty-norm-guard branch December 1, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants