Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@xadupre
Copy link
Contributor

@xadupre xadupre commented Nov 10, 2023

Description

Investigate issue #5750. This is caused by an optional number of iterations. This case is not covered by the backend test series.

The PR also introduces method _check_output_run. It ensures all outputs after a node execution are consistent. It also replaces every single number by an array of one element to get an consistent API.

Motivation and Context

Have better error messages or fix the implementation.

@xadupre xadupre marked this pull request as ready for review November 13, 2023 13:56
@xadupre xadupre requested review from a team as code owners November 13, 2023 13:56
@xadupre xadupre changed the title [WIP] Fix issue in reference implementation for loops Fix reference implementation for loops with optional number of iterations Nov 13, 2023
@codecov
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (a5f13c4) 56.06% compared to head (328ff8a) 56.25%.

Files Patch % Lines
onnx/backend/test/runner/__init__.py 50.00% 5 Missing and 2 partials ⚠️
onnx/reference/ops/op_loop.py 66.66% 1 Missing and 1 partial ⚠️
onnx/reference/reference_evaluator.py 50.00% 1 Missing and 1 partial ⚠️
onnx/test/reference_evaluator_model_test.py 95.91% 1 Missing and 1 partial ⚠️
onnx/reference/ops/op_constant.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5752      +/-   ##
==========================================
+ Coverage   56.06%   56.25%   +0.18%     
==========================================
  Files         501      502       +1     
  Lines       29366    29495     +129     
  Branches     4404     4417      +13     
==========================================
+ Hits        16463    16591     +128     
- Misses      12091    12092       +1     
  Partials      812      812              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xadupre xadupre requested a review from justinchuby November 13, 2023 13:59
Signed-off-by: Xavier Dupre <[email protected]>
@justinchuby justinchuby self-assigned this Nov 13, 2023
@xadupre xadupre enabled auto-merge November 13, 2023 17:03
Co-authored-by: Justin Chu <[email protected]>
Signed-off-by: Xavier Dupré <[email protected]>
xadupre and others added 3 commits November 13, 2023 22:59
Co-authored-by: Justin Chu <[email protected]>
Signed-off-by: Xavier Dupré <[email protected]>
Co-authored-by: Justin Chu <[email protected]>
Signed-off-by: Xavier Dupré <[email protected]>
Co-authored-by: Justin Chu <[email protected]>
Signed-off-by: Xavier Dupré <[email protected]>
xadupre and others added 5 commits November 13, 2023 23:09
Co-authored-by: Justin Chu <[email protected]>
Signed-off-by: Xavier Dupré <[email protected]>
Co-authored-by: Justin Chu <[email protected]>
Signed-off-by: Xavier Dupré <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
Copy link
Member

@justinchuby justinchuby left a comment

Choose a reason for hiding this comment

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

LGTM with comments. Thanks for the fix! 🎁

@xadupre xadupre added this pull request to the merge queue Nov 16, 2023
Merged via the queue into onnx:main with commit 37b4749 Nov 16, 2023
@xadupre xadupre deleted the refbug branch November 16, 2023 11:59
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
…ions (onnx#5752)

### Description
Investigate issue onnx#5750. This is caused by an optional number of
iterations. This case is not covered by the backend test series.

The PR also introduces method `_check_output_run`. It ensures all
outputs after a node execution are consistent. It also replaces every
single number by an array of one element to get an consistent API.

### Motivation and Context
Have better error messages or fix the implementation.

---------

Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupré <[email protected]>
Co-authored-by: Justin Chu <[email protected]>
Signed-off-by: Linsho Kaku <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants