-
Notifications
You must be signed in to change notification settings - Fork 64
feat(atenlib): add, sub, mul #235
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
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
2c8ee88
feat(atenlib): establish the aten-lib directory
justinchuby 40af0b4
Update base for Update on "feat(atenlib): establish the aten-lib dire…
justinchuby ee554d7
Update on "feat(atenlib): establish the aten-lib directory"
justinchuby fa8ce18
feat(atenlib): Create sample functions and tests
justinchuby 6d426b5
Update base for Update on "feat(atenlib): Create sample functions and…
justinchuby bb9fbee
Update on "feat(atenlib): Create sample functions and tests with OpInfo"
justinchuby 0aed28e
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 91aa327
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 00a081b
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby fce8072
Update on "feat(atenlib): create tests with OpInfo"
justinchuby af56008
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 8c0b370
Update on "feat(atenlib): create tests with OpInfo"
justinchuby bfeaefc
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 8dc3d15
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 46aa719
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby d87f309
Update on "feat(atenlib): create tests with OpInfo"
justinchuby f7555e5
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby c80ad0e
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 01ac14f
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby b730aa9
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 1d57934
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 407da68
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 2d1e9aa
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 4c3e9c2
Update on "feat(atenlib): create tests with OpInfo"
justinchuby cede59b
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 98bd90c
Update on "feat(atenlib): create tests with OpInfo"
justinchuby b7144a6
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 49fc7f1
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 891fbd1
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 63d4775
Update on "feat(atenlib): create tests with OpInfo"
justinchuby add75f1
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 2c38122
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 907a77a
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby d6dfd3d
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 035c0e2
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 69facc6
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 0c4e631
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 23771ab
Update on "feat(atenlib): create tests with OpInfo"
justinchuby e99fac7
feat(atenlib): add, sub, mul
justinchuby 89e67ac
Update base for Update on "feat(atenlib): add, sub, mul"
justinchuby 6b5c50b
Update on "feat(atenlib): add, sub, mul"
justinchuby e1ba56e
Update base for Update on "feat(atenlib): add, sub, mul"
justinchuby 3f35a2c
Update on "feat(atenlib): add, sub, mul"
justinchuby fa9dde3
Update base for Update on "feat(atenlib): add, sub, mul"
justinchuby 6c1baf4
Update on "feat(atenlib): add, sub, mul"
justinchuby c6b2cc4
Update base for Update on "feat(atenlib): add, sub, mul"
justinchuby 0d13e27
Update on "feat(atenlib): add, sub, mul"
justinchuby 1184f6b
Merge branch 'main' into gh/justinchuby/7/head
justinchuby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,14 +157,19 @@ def wrapped(fn): | |
|
||
# Ops to be tested for numerical consistency between onnx and pytorch | ||
OPINFO_FUNCTION_MAPPING = { | ||
"add": core_ops.aten_add, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For my own knowledge: what is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I see it's just an alias for the same |
||
"mul": core_ops.aten_mul, | ||
"nn.functional.elu": nn_ops.aten_elu, | ||
"nn.functional.relu6": nn_ops.aten_relu6, | ||
"nn.functional.selu": core_ops.aten_selu, | ||
"sub": core_ops.aten_sub, | ||
} | ||
|
||
TESTED_OPS = frozenset(OPINFO_FUNCTION_MAPPING) | ||
|
||
EXPECTED_SKIPS_OR_FAILS = ( | ||
xfail("add", dtypes=BOOL_TYPES, reason="Add is not defined on bool tensors"), | ||
xfail("mul", dtypes=BOOL_TYPES, reason="Mul is not defined on bool tensors"), | ||
xfail( | ||
"nn.functional.elu", | ||
dtypes=dtypes_except(torch.float16, torch.float32), | ||
|
@@ -180,6 +185,7 @@ def wrapped(fn): | |
dtypes=dtypes_except(torch.float16, torch.float32), | ||
reason="ONNX Runtime doesn't support float64 for Selu", | ||
), | ||
xfail("sub", dtypes=BOOL_TYPES, reason="Sub is not defined on bool tensors"), | ||
) | ||
# END OF SECTION TO MODIFY ##################################################### | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
BOOL[...]
instead ofBOOL
? Unless the type-annotation-design is going to change the meaning ofBOOL
, which is currently a tensor of rank-0There 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.
yeah but mypy complains about BOOL[...]
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.
I’ll see if I can turn it off
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.
Couldn't make it to work. I will leave it as is for now as update when things fit together. Currently the types for the ops are also BOOL etc. I think?