Skip to content

Fix ConstantOfShape type constraints #5961

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
Feb 25, 2024

Conversation

galagam
Copy link
Contributor

@galagam galagam commented Feb 23, 2024

Boolean type was unintentionally dropped in #5811.
Revert to previous version and add the new types uint4, int4.
Modify type constraint comment to mention boolean is allowed.

Boolean type was unintentionally dropped in onnx#5811.
Revert to previous version and add the new types uint4, int4.
Modify type constraint comment to mention boolean is allowed.

Signed-off-by: Gal Hubara Agam <ghubaraagam@nvidia.com>
@galagam galagam requested a review from a team as a code owner February 23, 2024 21:18
@galagam
Copy link
Contributor Author

galagam commented Feb 23, 2024

@cjvolzka thanks for pointing that out. Fixed in this PR.

Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.68%. Comparing base (06548e4) to head (a94e83f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5961   +/-   ##
=======================================
  Coverage   56.68%   56.68%           
=======================================
  Files         506      506           
  Lines       30231    30231           
  Branches     4566     4566           
=======================================
  Hits        17137    17137           
  Misses      12268    12268           
  Partials      826      826           

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

@gramalingam gramalingam added this to the 1.16 milestone Feb 23, 2024
@gramalingam gramalingam added this pull request to the merge queue Feb 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 23, 2024
@galagam
Copy link
Contributor Author

galagam commented Feb 24, 2024

Looks like this failure is not related to my changes
CI failure log

@justinchuby justinchuby added this pull request to the merge queue Feb 24, 2024
@@ -90,7 +90,28 @@ ONNX_OPERATOR_SET_SCHEMA(
"defaults to float32.",
"T2")
.TypeConstraint("T1", {"tensor(int64)"}, "Constrain input types.")
.TypeConstraint("T2", OpSchema::all_numeric_types_ir10(), "Constrain output types to be numerics.")
Copy link
Member

Choose a reason for hiding this comment

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

Possible to create a new function to generate this list?

Merged via the queue into onnx:main with commit 4a51870 Feb 25, 2024
cjvolzka added a commit that referenced this pull request Feb 26, 2024
* 'main' of https://github.com/onnx/onnx:
  Add attribute output_dtype to QuantizeLinear (#5956)
  Update inliner to propagate valueinfos (#5942)
  Fix ConstantOfShape type constraints (#5961)
  Support register custom OpSchema by python (#5906)
  Fix ReferenceEvaluator when run from a subclass (#5936)
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
Boolean type was unintentionally dropped in onnx#5811.
Revert to previous version and add the new types uint4, int4.
Modify type constraint comment to mention boolean is allowed.

Signed-off-by: Gal Hubara Agam <ghubaraagam@nvidia.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.

4 participants