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 on Mac #20676

Open
fatcat-z opened this issue May 14, 2024 · 1 comment
Open

LayerNormalization doesnt' work as expected on Mac #20676

fatcat-z opened this issue May 14, 2024 · 1 comment
Labels
converter:dynamo issues related supporting the PyTorch Dynamo exporter core runtime issues related to core runtime ep:CUDA issues related to the CUDA execution provider

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
Copy link
Contributor

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.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Jun 13, 2024
@justinchuby justinchuby removed the stale issues that have not been addressed in a while; categorized by a bot label Jun 13, 2024
@justinchuby justinchuby changed the title LayerNormalization doesnt' work as expected in MAC. LayerNormalization doesnt' work as expected on Mac Jun 13, 2024
@github-actions github-actions bot added the ep:CUDA issues related to the CUDA execution provider label Jun 13, 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 ep:CUDA issues related to the CUDA execution provider
Projects
None yet
Development

No branches or pull requests

2 participants