Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Frontend][PaddlePaddle] Fix bug in tests for upgrading paddlepaddle to 2.4.2 #14206

Merged
merged 3 commits into from
Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/install/ubuntu_install_paddle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ set -e
set -u
set -o pipefail

pip install paddlepaddle==2.4.1
pip install paddlepaddle==2.4.2
5 changes: 2 additions & 3 deletions tests/python/frontend/paddlepaddle/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,8 +1062,7 @@ def __init__(self, api_name):

@paddle.jit.to_static
def forward(self, x, y):
out = paddle.to_tensor([True, True, True])
z = self.func(x, y, out=out)
z = self.func(x, y)
return paddle.cast(z, "int32")

x_shapes = [[128], [8, 20], [4, 20, 3], [2, 3, 8, 8], [2, 3, 3, 9, 9]]
Expand Down Expand Up @@ -1268,7 +1267,7 @@ def __init__(self, perm):

@paddle.jit.to_static
def forward(self, inputs):
inputs = inputs + inputs.size()
inputs = inputs * 2
return paddle.transpose(inputs, perm=self.perm)

input_data = paddle.rand([1, 3, 5, 4, 3], dtype="float32")
Expand Down