Skip to content

Commit fe764e3

Browse files
add public_python_api
1 parent f62047d commit fe764e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/paddle/fluid/tests/unittests/test_activation_op.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,7 @@ class TestCos(TestActivation):
14641464
def setUp(self):
14651465
self.op_type = "cos"
14661466
self.python_api = paddle.cos
1467+
self.public_python_api = paddle.cos
14671468
self.prim_op_type = "prim"
14681469
self.init_dtype()
14691470
self.init_shape()
@@ -1599,6 +1600,7 @@ class TestSin(TestActivation, TestParameter):
15991600
def setUp(self):
16001601
self.op_type = "sin"
16011602
self.python_api = paddle.sin
1603+
self.public_python_api = paddle.sin
16021604
self.prim_op_type = "prim"
16031605
self.init_dtype()
16041606
self.init_shape()

0 commit comments

Comments
 (0)