Skip to content

Commit

Permalink
add public_python_api
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguoguo626807 committed Mar 20, 2023
1 parent f62047d commit fe764e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/paddle/fluid/tests/unittests/test_activation_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,7 @@ class TestCos(TestActivation):
def setUp(self):
self.op_type = "cos"
self.python_api = paddle.cos
self.public_python_api = paddle.cos
self.prim_op_type = "prim"
self.init_dtype()
self.init_shape()
Expand Down Expand Up @@ -1599,6 +1600,7 @@ class TestSin(TestActivation, TestParameter):
def setUp(self):
self.op_type = "sin"
self.python_api = paddle.sin
self.public_python_api = paddle.sin
self.prim_op_type = "prim"
self.init_dtype()
self.init_shape()
Expand Down

0 comments on commit fe764e3

Please sign in to comment.