Skip to content
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

Open
wants to merge 112 commits into
base: develop
Choose a base branch
from

Conversation

qqj1130247885
Copy link
Collaborator

@qqj1130247885 qqj1130247885 commented Aug 2, 2022

Create A Good Pull Request

下面的文字请保留在PR说明的最后面,并在提完PR后,根据实际情况勾选确认以下情况

Please check the follow step before merging this pull request

  • Python code style verification
  • Review all the code diff by yourself
  • All models(TensorFLow/Caffe/ONNX/PyTorch) testing passed
  • Details about your pull request, releated issues

If this PR add new model support, please update model_zoo.md and add model to out test model zoos(@wjj19950828)

  • New Model Supported
  • No New Model Supported

主要贡献

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的单测程序

import random

min_opset_version_map = {
"IsInf": 10,
Copy link
Collaborator

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,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elu去掉,同理

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}


class TestUnarrayOpsConcert(OPConvertAutoScanTest):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TestUnaryopsConvert

Copy link
Collaborator Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unary

Copy link
Collaborator Author

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)
],
Copy link
Collaborator

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即可

Copy link
Collaborator Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去掉

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants