Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LayerNormalization broadcast (limited support for axis=2) #23297

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tianleiwu
Copy link
Contributor

@tianleiwu tianleiwu commented Jan 9, 2025

Description

Spec of LayerNormalization supports unidirectional broadcasting (tensors Scale and B should be unidirectional broadcastable to tensor X).
https://onnx.ai/onnx/operators/onnx__LayerNormalization.html

Here we add limited support: axis=2; scale/bias has same shape; scale/bias/X have same number of dimensions.

Motivation and Context

@tianleiwu tianleiwu marked this pull request as draft January 9, 2025 07:26
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.

1 participant