未验证 提交 a073d6e8 编写于 作者: W WJJ1995 提交者: GitHub

Optimize Pow op for caffe (#721)

* fixed split bug

* fixed concat bug

* fixed node_name bugs

* fixed node_name bugs

* fixed CI bugs

* Interpolate for dynamic

* fixed for CI

* fixed for codestyle

* Optimize pow op

* fixed for code style

* fixed for code style
上级 2a420846
......@@ -966,11 +966,12 @@ class CaffeOpMapper():
inputs={"x": input.name},
outputs=[node.layer_name],
**layer_attrs)
self.paddle_graph.add_layer(
"paddle.pow",
inputs={"x": node.layer_name},
outputs=[node.layer_name],
exponent=params.power)
if params.power != 1:
self.paddle_graph.add_layer(
"paddle.pow",
inputs={"x": node.layer_name,
"y": params.power},
outputs=[node.layer_name])
def Reduction(self, node):
assert len(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册