-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ReduceMean when a part of LayerNormalization is picked a newer version and fails Schema verification #18781
Comments
It would help to know where this LayerNorm is coming from, since there are the following 3 possibilities:
|
The function-op comes from the standard ONNX. I looked at the code, and yes, it is doing that. However, that code refers mostly on how to invoke P.S. this does not occur with CUDA EP because CUDA EP claims it has an implementation for LN, and it can run it. |
Potentially related? #16438 |
Right, thanks for the link! I think that explains it. |
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details. |
This issue has been automatically closed due to inactivity. Please reactivate if further support is needed. |
Describe the issue
LayerNormalization is defined as a function that has the latest version 17.
LN invokes ReduceMean that has the latest version 18.
The behavior of RM has changed between versions of 17 and 18. Specifically, axes attribute is no longer recognized in version 18 and instead, axes are represented by an optional input.
LN invokes RM per version 17 specification. When LN is inlined RM retains axes attribute.
However, due to the fact that the imported opsets include only version 18 for ONNX, schema validation fails for RM.
To reproduce
Urgency
No response
Platform
Windows
OS Version
Windows 11
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
9479ba5
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: