-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
[numpy] torch.erfinv
: promote integer inputs to float
#49155
Closed
kshitij12345
wants to merge
17
commits into
pytorch:master
from
kshitij12345:develop/numpy/unary-float-op/erfinv
Closed
Changes from 5 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
03f7ac1
erfinv: support int -> float promotion
kshitij12345 0759a06
update relevant test
kshitij12345 cea5d4f
skip test for scipy version less than 1.4.0
kshitij12345 0a671dd
remove redundant tests
kshitij12345 86b2ef5
Merge branch 'master' into develop/numpy/unary-float-op/erfinv
kshitij12345 327c5cc
move helper to common_utils
kshitij12345 c8c5794
pass required_version as named arg
kshitij12345 431e9b0
fix typo
kshitij12345 bfce787
fix condition for skip
kshitij12345 3617c29
use default value for handles_extremals and handles_large_floats
kshitij12345 6304dec
Merge branch 'master' into develop/numpy/unary-float-op/erfinv
kshitij12345 a17a769
remove bfloat16 skips
kshitij12345 40f5148
use LooseVersion
kshitij12345 72c0f9b
Merge branch 'master' into develop/numpy/unary-float-op/erfinv
kshitij12345 894a1ad
Merge branch 'master' into develop/numpy/unary-float-op/erfinv
kshitij12345 08a59d7
add bfloat16 skip
kshitij12345 c3166a1
Merge branch 'master' into develop/numpy/unary-float-op/erfinv
kshitij12345 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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 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 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 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 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 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
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.
I would revise this to be a helper in torch/testing/_internal/common_utils.py called "version_at_least" and it accepts a version string plus a required version string, and returns true if the given version string is after the required version string. For example:
The version strings can be compared left to right and test should just be that any of version's ints are greater than the corresponding int in required_version or the version strings are the same.
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.
Sure. Will move the helper.
Also, comparison of two tuple is left to right and short-circuits at the first difference.
https://stackoverflow.com/a/60303999/5602957