-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add erfinv FP16 test and BF16 test #53101
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
96cabb3
'erfinv'
superwinner1 130378e
'fix'
superwinner1 baa619d
'fix'
superwinner1 ae104e6
Merge branch 'PaddlePaddle:develop' into erfinv
superwinner1 d6fba43
'fix'
superwinner1 27150c2
Merge remote-tracking branch 'origin/erfinv' into erfinv
superwinner1 7c83d84
'fix'
superwinner1 b63f67b
'fix'
superwinner1 8476867
'fix'
superwinner1 3a318ed
'fix'
superwinner1 2f82e65
'fix'
superwinner1 76069e0
'fix'
superwinner1 90453f3
'fix'
superwinner1 124dcc2
'fix'
superwinner1 39d83ec
'fix'
superwinner1 4344b21
'fix'
superwinner1 4703dca
'fix'
superwinner1 c714ae4
'fix'
superwinner1 0801b57
'fix'
superwinner1 ac977a9
'fix'
superwinner1 1112ac8
'fix'
superwinner1 a12b7df
'fix'
superwinner1 ac8aaed
'fix'
superwinner1 aefcf35
'fix'
superwinner1 6128db4
'fix'
superwinner1 58bd2b6
'fix'
superwinner1 26dc177
'fix'
superwinner1 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4374,7 +4374,9 @@ def erfinv(x, name=None): | |
if in_dygraph_mode(): | ||
return _C_ops.erfinv(x) | ||
else: | ||
check_variable_and_dtype(x, 'x', ['float32', 'float64'], 'erfinv') | ||
check_variable_and_dtype( | ||
x, 'x', ['float32', 'float64', 'float16', 'uint16'], 'erfinv' | ||
) | ||
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. 这个文件4358行文档可以同步更新下支持的数据类型,另外可以解决下代码冲突,应该就可以合入了 |
||
helper = LayerHelper('erfinv', **locals()) | ||
out = helper.create_variable_for_type_inference(dtype=x.dtype) | ||
helper.append_op(type='erfinv', inputs={'X': x}, outputs={'Out': out}) | ||
|
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.
这里修改的原因是?
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.
根据CI错误提示这里应该修改为const常量