KEMBAR78
[ONNX][dynamo_export] Turn off opmath for type promotion by BowenBao · Pull Request #113780 · pytorch/pytorch · GitHub
Skip to content

Conversation

@BowenBao
Copy link
Collaborator

@BowenBao BowenBao commented Nov 15, 2023

Stack from ghstack (oldest at bottom):

Although opmath is the right thing to do to retain on-par precision, it inserts
upcasts everywhere in the graph. This is particularly hard for backend to optimize
since there is no way to differentiate between inserted upcasts and model code
casts. Hence we consolidate the input dtype to the result dtype to avoid this.

@pytorch-bot pytorch-bot bot added the release notes: onnx torch.onnx related changes that should show up in the release notes label Nov 15, 2023
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 15, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/113780

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 726d6bc with merge base aeb5fd5 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

BowenBao added a commit that referenced this pull request Nov 15, 2023
@BowenBao BowenBao marked this pull request as ready for review November 15, 2023 22:40
BowenBao added a commit that referenced this pull request Nov 16, 2023
"native_batch_norm",
"dot",
"logit",
"rsub",
Copy link
Collaborator

Choose a reason for hiding this comment

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

At some point we can refactor this file to follow what’s in ONNX Script so the meta data is clearer

…ime' on "[ONNX][dynamo_export] Turn off opmath for type promotion"

[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Nov 16, 2023
@titaiwangms titaiwangms added the module: onnx Related to torch.onnx label Nov 22, 2023
"nn.functional.celu",
dtypes=(torch.float16,),
reason=onnx_test_common.reason_onnx_does_not_support("Celu", "float16"),
),
Copy link
Collaborator

@titaiwangms titaiwangms Nov 22, 2023

Choose a reason for hiding this comment

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

pytorchmergebot pushed a commit that referenced this pull request Nov 22, 2023
Such that even if failures occur during model run, the sample inputs
are accessible for later investigation.

Pull Request resolved: #114163
Approved by: https://github.com/thiagocrepaldi
ghstack dependencies: #113780
@facebook-github-bot facebook-github-bot deleted the gh/BowenBao/318/head branch November 25, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: onnx Related to torch.onnx open source release notes: onnx torch.onnx related changes that should show up in the release notes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants