Skip to content

Commit

Permalink
change to_variable to to_tensor in test, test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
qili93 committed Aug 18, 2020
1 parent 8eb7aff commit 2f405ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/paddle/fluid/tests/unittests/test_activation_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_static_api(self):

def test_dygraph_api(self):
paddle.disable_static(self.place)
x = paddle.to_variable(self.x_np)
x = paddle.to_tensor(self.x_np)
out1 = F.logsigmoid(x)
m = paddle.nn.LogSigmoid()
out2 = m(x)
Expand Down Expand Up @@ -716,7 +716,7 @@ def test_static_api(self):

def test_dygraph_api(self):
paddle.disable_static(self.place)
x = paddle.to_variable(self.x_np)
x = paddle.to_tensor(self.x_np)
out1 = F.relu(x)
m = paddle.nn.ReLU()
out2 = m(x)
Expand Down Expand Up @@ -836,7 +836,7 @@ def test_static_api(self):

def test_dygraph_api(self):
paddle.disable_static(self.place)
x = paddle.to_variable(self.x_np)
x = paddle.to_tensor(self.x_np)
out1 = F.gelu(x)
m = paddle.nn.GELU()
out2 = m(x)
Expand Down Expand Up @@ -1059,7 +1059,7 @@ def test_static_api(self):

def test_dygraph_api(self):
paddle.disable_static(self.place)
x = paddle.to_variable(self.x_np)
x = paddle.to_tensor(self.x_np)
out1 = F.elu(x)
m = paddle.nn.ELU()
out2 = m(x)
Expand Down

1 comment on commit 2f405ed

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 2f405ed Aug 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 Commit ID: 2f405ed contains failed CI.

Please sign in to comment.