-
Notifications
You must be signed in to change notification settings - Fork 164
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 isinf #868
Merged
Merged
Add isinf #868
Changes from all commits
Commits
Show all changes
113 commits
Select commit
Hold shift + click to select a range
cffcfd5
Update onnx_decoder.py
qqj1130247885 a05f36e
Update opset.py
qqj1130247885 ae260eb
Update opset.py
qqj1130247885 02355da
Update opset.py
qqj1130247885 451b43a
Update onnx_decoder.py
qqj1130247885 99e7599
Merge remote-tracking branch 'upstream/develop' into fix
qqj1130247885 392a9db
fix gemm and resize
qqj1130247885 1118bef
Merge remote-tracking branch 'op_test/add_autoscan_test' into develop
qqj1130247885 48a9ae9
Merge branch 'fix_resize_gemm' into develop
qqj1130247885 96ebd16
Merge remote-tracking branch 'upstream/develop' into auto_test
qqj1130247885 1756aaf
add auto_test of 1 input ops
qqj1130247885 d22c3ea
Update onnx_decoder.py
qqj1130247885 3beef68
Update opset_legacy.py
qqj1130247885 43f1fa8
Update opset_legacy.py
qqj1130247885 ca1fb1f
Update onnx_decoder.py
qqj1130247885 1780f92
Update opset_legacy.py
qqj1130247885 6327cea
Update opset_legacy.py
qqj1130247885 8f70001
Update opset_legacy.py
qqj1130247885 0a16de1
Update test_auto_scan_one_input_ops_float32.py
qqj1130247885 63e2f4f
Delete test_auto_scan_one_input_ops_float32.py
qqj1130247885 4e3bd88
Create test_auto_scan_one_input_ops_float32.py
qqj1130247885 f93208c
Update opset_legacy.py
qqj1130247885 6b7ae08
test
qqj1130247885 d359f2c
add test of Tan
qqj1130247885 2383ae7
rename
qqj1130247885 0e0e287
add ops in directly map
qqj1130247885 4e75ad1
keep op_legacy
qqj1130247885 dfb332d
Delete test_auto_scan_one_input_ops_float32.py
qqj1130247885 9e412cf
modify the name
qqj1130247885 6278660
Merge branch 'auto_test' of https://github.com/qqj1130247885/X2Paddle…
qqj1130247885 fff2ce4
fix
qqj1130247885 86b8736
add ceil op
qqj1130247885 90441af
modify opset7
qqj1130247885 10e142c
Delete test_auto_scan_unarray_ops.py
qqj1130247885 72a69ec
add test of elu
qqj1130247885 4f88ea3
Update test_auto_scan_unary_ops.py
qqj1130247885 b83c145
Update test_auto_scan_elu.py
qqj1130247885 3cee6e3
Update test_auto_scan_elu.py
qqj1130247885 c74102a
fixx
qqj1130247885 806aed4
test
qqj1130247885 c7d7322
test
qqj1130247885 aa30f6a
test
qqj1130247885 019f43c
test
qqj1130247885 1636677
add ref
qqj1130247885 2bb1c06
add sinh + tanh
qqj1130247885 70e11e8
add sinh + tanh
qqj1130247885 100c9ff
add sinh + tanh
qqj1130247885 48b899e
add sin Sinh tang
qqj1130247885 cda4839
Update opset7.py
qqj1130247885 f41ee72
add :cosh,acosh,sinh,acosh
qqj1130247885 0ef8816
try
qqj1130247885 a43dd08
try
qqj1130247885 9433d2e
add Atanh
qqj1130247885 92e0f68
add Atanh
qqj1130247885 3836727
s
qqj1130247885 db318c8
s
qqj1130247885 ebf9a89
add Sqrt
qqj1130247885 cc8a9d0
s
qqj1130247885 f1dbe66
add shape
qqj1130247885 67a1e3f
s
qqj1130247885 69b1ac2
add sign
qqj1130247885 d695daf
add_celu
qqj1130247885 5587931
Delete test_auto_scan_elu.py
qqj1130247885 0451348
Delete test_auto_scan_unary_ops.py
qqj1130247885 a3937ed
Delete opset7.py
qqj1130247885 abd1260
复原
qqj1130247885 f50943f
add Celu
qqj1130247885 00ca749
Update opset7.py
qqj1130247885 dae3943
Update opset9.py
qqj1130247885 916f69b
Merge branch 'PaddlePaddle:develop' into develop
qqj1130247885 8b4b423
add selu
qqj1130247885 47b9979
Update opset7.py
qqj1130247885 39162be
add relu
qqj1130247885 e352bde
update relu datatype
qqj1130247885 0e9be71
Update opset14.py
qqj1130247885 5f9174d
fix code style
qqj1130247885 409be3c
fix code style
qqj1130247885 613fd35
Merge branch 'PaddlePaddle:develop' into develop
qqj1130247885 6f8693e
add_hardsigmoid
qqj1130247885 21935f8
add_reduce_op
qqj1130247885 62d5a01
fix
qqj1130247885 0fc1532
fix
qqj1130247885 721dab2
add reduceL2
qqj1130247885 92f616c
add relu
qqj1130247885 ff84e33
test
qqj1130247885 9885114
remove log and exp
qqj1130247885 46657e0
add selu in opset7
qqj1130247885 374f0e5
Delete test_auto_scan_celu.py
qqj1130247885 944b7ab
Delete test_auto_scan_relu.py
qqj1130247885 48088dd
Delete test_auto_scan_reduce_ops.py
qqj1130247885 12a8ec1
Delete test_auto_scan_hardsigmoid.py
qqj1130247885 b613e43
add selu in opset7
qqj1130247885 2b00d7b
add selu in opset12
qqj1130247885 24e66c0
add selu in opset14
qqj1130247885 0ab5230
Update opset7.py
qqj1130247885 d72db35
Update opset12.py
qqj1130247885 60c500c
Update opset14.py
qqj1130247885 2718c0b
Update test_auto_scan_unary_ops.py
qqj1130247885 77a8e08
Update opset14.py
qqj1130247885 076999f
add elu
qqj1130247885 d0738fa
Merge branch 'auto_test' of https://github.com/qqj1130247885/X2Paddle…
qqj1130247885 2ff088b
fix style
qqj1130247885 59d3758
fix style
qqj1130247885 a024017
add test auto scan of isinf
qqj1130247885 a86ae5a
add op_mapper of isinf
qqj1130247885 0792193
Delete test_auto_scan_elu.py
qqj1130247885 802d7a8
Delete test_auto_scan_unary_ops.py
qqj1130247885 ef59555
remove
qqj1130247885 3903850
remove
qqj1130247885 fa4bb82
Merge branch 'add_isinf' of https://github.com/qqj1130247885/X2Paddle…
qqj1130247885 22f003e
add default value
qqj1130247885 a9b58d9
retest
qqj1130247885 30240e0
try
qqj1130247885 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License" | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from auto_scan_test import OPConvertAutoScanTest | ||
from hypothesis import reproduce_failure | ||
import hypothesis.strategies as st | ||
import numpy as np | ||
import unittest | ||
import random | ||
|
||
|
||
class TestIsInfConvert(OPConvertAutoScanTest): | ||
""" | ||
ONNX op: IsInf | ||
OPset version: 10~15 | ||
""" | ||
|
||
def sample_convert_config(self, draw): | ||
input_shape = draw( | ||
st.lists( | ||
st.integers( | ||
min_value=20, max_value=30), min_size=3, max_size=5)) | ||
input_dtype = draw(st.sampled_from(["float32"])) | ||
config = { | ||
"op_names": ["IsInf"], | ||
"test_data_shapes": [input_shape], | ||
"test_data_types": [input_dtype], | ||
"inputs_shape": [input_shape], | ||
"min_opset_version": 10, | ||
"max_opset_version": 15, | ||
"inputs_name": ["x"], | ||
"outputs_name": ["y"], | ||
"delta": 1e-4, | ||
"rtol": 1e-4, | ||
"run_dynamic": True, | ||
} | ||
|
||
attrs = {} | ||
return (config, attrs) | ||
|
||
def test(self): | ||
self.run_and_statis(max_examples=50) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
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.
如果这两个属性为默认值,非None,这里是否也会raise Exception呢,但默认值是否是支持的呢
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.
Done.