Skip to content

Handle OneHot's depth value during shape inference #5963

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

Merged
merged 4 commits into from
Mar 27, 2024

Conversation

maekawatoshiki
Copy link
Contributor

@maekawatoshiki maekawatoshiki commented Feb 25, 2024

Description

  • Even if the depth value of OneHot is specified as an initializer, the value is ignored during shape inference currently.
  • This is a correct shape inference from my understanding, but let me if this is wrong.

@maekawatoshiki maekawatoshiki requested review from a team as code owners February 25, 2024 06:33
@maekawatoshiki maekawatoshiki changed the title Handle depth value for shape inference Handle OneHot's depth value during shape inference Feb 25, 2024
Copy link

codecov bot commented Feb 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.82%. Comparing base (fd744fa) to head (97ca007).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5963   +/-   ##
=======================================
  Coverage   56.81%   56.82%           
=======================================
  Files         506      506           
  Lines       30370    30376    +6     
  Branches     4592     4592           
=======================================
+ Hits        17256    17262    +6     
  Misses      12285    12285           
  Partials      829      829           

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

Signed-off-by: maekawatoshiki <maekawatoshiki1017@gmail.com>
Signed-off-by: maekawatoshiki <maekawatoshiki1017@gmail.com>
Signed-off-by: maekawatoshiki <maekawatoshiki1017@gmail.com>
@justinchuby justinchuby added the module: shape inference Issues related to shape inference label Mar 5, 2024
@justinchuby justinchuby added this to the 1.17 milestone Mar 5, 2024
@maekawatoshiki
Copy link
Contributor Author

How's the review process going?

@justinchuby
Copy link
Member

LGTM. I will leave this to @SIG-operators-approvers reviewers

@gramalingam gramalingam added this pull request to the merge queue Mar 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 26, 2024
@gramalingam gramalingam added this pull request to the merge queue Mar 27, 2024
Merged via the queue into onnx:main with commit df36ccc Mar 27, 2024
@maekawatoshiki maekawatoshiki deleted the fix branch March 31, 2024 10:40
andife pushed a commit to andife/onnx that referenced this pull request Jul 20, 2024
### Description

- Even if the `depth` value of `OneHot` is specified as an initializer,
the value is ignored during shape inference currently.
- This is a correct shape inference from my understanding, but let me if
this is wrong.

---------

Signed-off-by: maekawatoshiki <maekawatoshiki1017@gmail.com>
Co-authored-by: Ke Zhang <linkerzhang@yeah.net>
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
### Description

- Even if the `depth` value of `OneHot` is specified as an initializer,
the value is ignored during shape inference currently.
- This is a correct shape inference from my understanding, but let me if
this is wrong.

---------

Signed-off-by: maekawatoshiki <maekawatoshiki1017@gmail.com>
Co-authored-by: Ke Zhang <linkerzhang@yeah.net>
Signed-off-by: Linsho Kaku <linsho@preferred.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: shape inference Issues related to shape inference
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants