-
Notifications
You must be signed in to change notification settings - Fork 173
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
【PaddlePaddle Hackathon】在Paddle2ONNX 新增11个 Paddle 2.0 API 支持 #362
Conversation
直接实现7以上的版本吧
…---原始邮件---
发件人: ***@***.***>
发送时间: 2021年10月8日(周五) 晚上10:04
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [PaddlePaddle/Paddle2ONNX] 【PaddlePaddle Hackathon】在Paddle2ONNX 新增11个 Paddle 2.0 API 支持 (#362)
@AndPuQing commented on this pull request.
In paddle2onnx/op_mapper/math.py:
> + + @classmethod + def opset_1(cls, graph, node, **kw): + ten = graph.make_node( + 'Constant', attrs={ + 'dtype': dtypes.ONNX.FLOAT, + 'value': [10] + }) + ln2 = graph.make_node('Log', inputs=[ten]) + lnx = graph.make_node('Log', inputs=node.input('X')) + graph.make_node('Div', inputs=[lnx, ln2], outputs=node.output('Out')) + + ***@***.***_mapper('log1p') +class Log1p(): + support_opset_verision_range = (7, 12)
尝试更低版本时,返回
NOT_IMPLEMENTED : Could not find an implementation for Add(1) node with name 'Add_0'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
好 |
Thanks for your contribution! |
PR types :New features
Describe:
Task: #344
在Paddle2ONNX 新增11个 Paddle 2.0 API 支持
11个API具体为: