Skip to content

Commit

Permalink
Enable SQRT operator for the nGraph Bridge (PaddlePaddle#17549)
Browse files Browse the repository at this point in the history
* Enable sqrt operator for the nGraph Bridge.

test=develop

* Update activation_op.h
  • Loading branch information
kbinias authored and luotao1 committed May 27, 2019
1 parent 96845d2 commit f34830e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions paddle/fluid/operators/ngraph/ops/activation_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,6 @@ void BuildTanhGradNode(
REGISTER_NG_OP(gelu, BuildGeluNode);
REGISTER_NG_OP(gelu_grad, BuildGeluGradNode);
REGISTER_NG_OP(relu_grad, BuildReluGradNode);
REGISTER_NG_OP(sqrt, BuildUnaryNode<ngraph::op::Sqrt>);
REGISTER_NG_OP(square, BuildSquareNode);
REGISTER_NG_OP(tanh_grad, BuildTanhGradNode);
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import numpy as np
import paddle.fluid.core as core
from paddle.fluid.tests.unittests.op_test import OpTest
from paddle.fluid.tests.unittests.test_activation_op import TestAbs, TestGelu, TestSigmoid, TestSquare, TestRelu, TestTanh
from paddle.fluid.tests.unittests.test_activation_op import TestAbs, TestGelu, TestSigmoid, TestSqrt, TestSquare, TestRelu, TestTanh


class TestNGRAPHReluDim4(TestRelu):
Expand Down

0 comments on commit f34830e

Please sign in to comment.