Skip to content

[ONNX] Enable true_divide scripting export with ONNX shape inference#43991

Closed
BowenBao wants to merge 2 commits intopytorch:masterfrom
BowenBao:onnx_true_divide
Closed

[ONNX] Enable true_divide scripting export with ONNX shape inference#43991
BowenBao wants to merge 2 commits intopytorch:masterfrom
BowenBao:onnx_true_divide

Conversation

@BowenBao
Copy link
Copy Markdown
Collaborator

@BowenBao BowenBao commented Sep 1, 2020

Fixes the true_divide symbolic to cast tensors correctly.
The logic depends on knowing input types at export time, which is a known gap for exporting scripted modules. On that end we are improving exporter by enabling ONNX shape inference #40628, and starting to increase coverage for scripting support.

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 2, 2020

Codecov Report

Merging #43991 into master will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #43991   +/-   ##
=======================================
  Coverage   69.24%   69.24%           
=======================================
  Files         378      378           
  Lines       46866    46866           
=======================================
+ Hits        32453    32454    +1     
+ Misses      14413    14412    -1     
Impacted Files Coverage Δ
torch/onnx/symbolic_opset9.py 35.81% <0.00%> (ø)
torch/testing/_internal/expecttest.py 78.57% <0.00%> (+1.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f73ba88...d1ea9fc. Read the comment docs.

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Sep 2, 2020

💊 CI failures summary and remediations

As of commit d1ea9fc (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 2/2 non-CircleCI failure(s)

Extra GitHub checks: 1 failed


codecov.io: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 3 times.

@smessmer smessmer added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Sep 2, 2020
Comment thread test/onnx/test_pytorch_onnx_onnxruntime.py
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@bzinodev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@bzinodev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@bzinodev merged this pull request in e535fb3.

xuzhao9 pushed a commit that referenced this pull request Sep 18, 2020
…43991)

Summary:
Fixes the `true_divide` symbolic to cast tensors correctly.
The logic depends on knowing input types at export time, which is a known gap for exporting scripted modules. On that end we are improving exporter by enabling ONNX shape inference #40628, and starting to increase coverage for scripting support.

Pull Request resolved: #43991

Reviewed By: mruberry

Differential Revision: D23674614

Pulled By: bzinodev

fbshipit-source-id: 1b1b85340eef641f664a14c4888781389c886a8b
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…ytorch#43991)

Summary:
Fixes the `true_divide` symbolic to cast tensors correctly.
The logic depends on knowing input types at export time, which is a known gap for exporting scripted modules. On that end we are improving exporter by enabling ONNX shape inference pytorch#40628, and starting to increase coverage for scripting support.

Pull Request resolved: pytorch#43991

Reviewed By: mruberry

Differential Revision: D23674614

Pulled By: bzinodev

fbshipit-source-id: 1b1b85340eef641f664a14c4888781389c886a8b
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 triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants