-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Fix ConstantOfShape type constraints #5961
Conversation
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 <[email protected]>
|
@cjvolzka thanks for pointing that out. Fixed in this PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
|
Looks like this failure is not related to my changes |
| "defaults to float32.", | ||
| "T2") | ||
| .TypeConstraint("T1", {"tensor(int64)"}, "Constrain input types.") | ||
| .TypeConstraint("T2", OpSchema::all_numeric_types_ir10(), "Constrain output types to be numerics.") |
There was a problem hiding this comment.
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?
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 <[email protected]> Signed-off-by: Linsho Kaku <[email protected]>
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.