Skip to content

Fix label encoder definition in schema #5863

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 1 commit into from
Jan 25, 2024

Conversation

adityagoel4512
Copy link
Contributor

Description

The use of the OpSchema::Attr with conditionExplanation ends up having a default AttributeProto without a TensorProto field. The default_tensor attribute is optional and so should not be setting a default value.

cc @gramalingam

Motivation and Context

@adityagoel4512 adityagoel4512 requested a review from a team as a code owner January 18, 2024 16:55
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (463ca88) 56.45% compared to head (29f119c) 56.45%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5863   +/-   ##
=======================================
  Coverage   56.45%   56.45%           
=======================================
  Files         504      504           
  Lines       29868    29868           
  Branches     4488     4488           
=======================================
  Hits        16863    16863           
  Misses      12188    12188           
  Partials      817      817           

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

Signed-off-by: Aditya Goel <agoel4512@gmail.com>
@xadupre xadupre added this pull request to the merge queue Jan 25, 2024
Merged via the queue into onnx:main with commit 8a6b70f Jan 25, 2024
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
### Description
The use of the `OpSchema::Attr` with conditionExplanation ends up having
a default AttributeProto without a TensorProto field. The
`default_tensor` attribute is optional and so should not be setting a
default value.

cc @gramalingam

### Motivation and Context
<!-- - Why is this change required? What problem does it solve? -->
<!-- - If it fixes an open issue, please link to the issue here. -->

Signed-off-by: Aditya Goel <agoel4512@gmail.com>
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
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants