[ONNX] Add checks in ONNXSetDynamicInputShape#49366
Closed
jiafatom wants to merge 17 commits intopytorch:onnx_ms_1from
Closed
[ONNX] Add checks in ONNXSetDynamicInputShape#49366jiafatom wants to merge 17 commits intopytorch:onnx_ms_1from
jiafatom wants to merge 17 commits intopytorch:onnx_ms_1from
Conversation
Contributor
💊 CI failures summary and remediationsAs of commit 0fe3504 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
KsenijaS
reviewed
Dec 16, 2020
KsenijaS
reviewed
Dec 16, 2020
Codecov Report
@@ Coverage Diff @@
## onnx_ms_1 #49366 +/- ##
=============================================
+ Coverage 80.63% 80.65% +0.01%
=============================================
Files 1875 1875
Lines 202714 202966 +252
=============================================
+ Hits 163453 163695 +242
- Misses 39261 39271 +10 |
neginraoof
reviewed
Dec 17, 2020
| auto shape_ref = input_tensor_type->symbolic_sizes().sizes(); | ||
| TORCH_CHECK( | ||
| shape_ref.has_value(), "Input tensor shape should have value."); | ||
| auto shape = shape_ref.value(); |
Contributor
There was a problem hiding this comment.
Do we have tests to verify this part?
Contributor
Author
There was a problem hiding this comment.
No, currently we don't have a proper designed test for it. (1) All existing tests passed (2) Will add the test once we find a proper one.
Summary: Pull Request resolved: pytorch#49013 I don't know why this works. I know, this is never a good way to start a PR description :P I know that Generator is a dispatch relevant argument when called from an unboxed API and is ignored for dispatch purposes when called from a boxed API. This should break something, but maybe we don't have test cases for that. We likely need to align the unboxed and boxed dispatch behavior before landing this. The best solution would be to make Generator not dispatch relevant in unboxing. But that might be a bigger change. An acceptable solution could be to make Generator dispatch relevant in boxing, but that needs perf measurements. This PR needs further discussion. ghstack-source-id: 118619230 (Note: this ignores all push blocking failures!) Test Plan: waitforsandcastle Reviewed By: bhosmer Differential Revision: D25394998 fbshipit-source-id: f695c659ee6e3738f74cdf0af1a514ac0c30ebff
Contributor
Author
|
Unexpected conflict issue, closing this PR, duplicate one here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(1) This PR adds a exception check for ONNXSetDynamicInputShape.
(2) Import torch vision CI tests to pytorch CI tests, then we can monitor the test failure while submitting PRs.
This PR is originally a duplicate one from here
We need to merge towards pytorch:onnx_ms_1 now.