-
Notifications
You must be signed in to change notification settings - Fork 160
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
auto_scan_test_unary_ops & Elu #857
base: develop
Are you sure you want to change the base?
Conversation
import random | ||
|
||
min_opset_version_map = { | ||
"IsInf": 10, |
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.
IsInf去掉,非unary op,有具体属性变量,需要测到
|
||
min_opset_version_map = { | ||
"IsInf": 10, | ||
"Elu": 7, |
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.
Elu去掉,同理
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
} | ||
|
||
|
||
class TestUnarrayOpsConcert(OPConvertAutoScanTest): |
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.
TestUnaryopsConvert
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
|
||
class TestUnarrayOpsConcert(OPConvertAutoScanTest): | ||
""" | ||
ONNX op: unarray ops |
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.
unary
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
'LogSoftmax': [ | ||
'paddle.nn.functional.log_softmax', dict(axis='axis'), | ||
dict(axis=1) | ||
], |
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.
不需要把之前的拷贝过来,有继承关系,直接self.directly_map_ops.update即可
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
@@ -13,6 +13,7 @@ | |||
# limitations under the License. | |||
|
|||
from .opset_legacy import OpSet | |||
import sys |
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.
done
…into auto_test
…into auto_test
Create A Good Pull Request
Please check the follow step before merging this pull request
If this PR add new model support, please update
model_zoo.md
and add model to out test model zoos(@wjj19950828)主要贡献
1 tests/onnx下 增加了针对一元输入,且输入对象为float32类型的OP的单测程序。
包括: "Cos", "Atan", "Asinh", "Asin","Acosh","Acos", "Cosh", "Exp","Floor", "Tan", "Erf","Sin", "Sinh", "Tanh", "Atanh", "Sign"。
2 op_mapper增加了对若干OP 的map。
3 tests/onnx下,增加了对Elu的单测程序