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 doesnt' work as expected in MAC. #20676

Open
fatcat-z opened this issue May 14, 2024 · 0 comments
Open

LayerNormalization doesnt' work as expected in MAC. #20676

fatcat-z opened this issue May 14, 2024 · 0 comments
Labels
converter:dynamo issues related supporting the PyTorch Dynamo exporter core runtime issues related to core runtime

Comments

@fatcat-z
Copy link

Describe the issue

After converted a PyTorch model to ONNX model, the inferences results of these 2 models are same in CUDA/CPU environment. But in MAC, the result of converted ONNX model is different then PyTorch model's result.

To reproduce

native_layer_norm_issue_size_1.zip

Execute repro_issue.py file in attached zip file in CPU and MAC environments, you can see the results.

The expected results: The file should PASS in both environments.
Actual results: It fails in MAC environment.

Urgency

No response

Platform

Mac

OS Version

mac OS

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.17.3

ONNX Runtime API

Python

Architecture

Other / Unknown

Execution Provider

Default CPU

Execution Provider Library Version

No response

@github-actions github-actions bot added the ep:CUDA issues related to the CUDA execution provider label May 14, 2024
@justinchuby justinchuby added core runtime issues related to core runtime converter:dynamo issues related supporting the PyTorch Dynamo exporter and removed ep:CUDA issues related to the CUDA execution provider labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
converter:dynamo issues related supporting the PyTorch Dynamo exporter core runtime issues related to core runtime
Projects
None yet
Development

No branches or pull requests

2 participants