From 630bb2a576c937aa3e4b81829509002422d9341c Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 6 Mar 2023 11:52:48 +0800 Subject: [PATCH 1/3] [Frontend][PaddlePaddle] Fix but in tests for upgrading paddlepaddle to 2.4.2 --- tests/python/frontend/paddlepaddle/test_forward.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/python/frontend/paddlepaddle/test_forward.py b/tests/python/frontend/paddlepaddle/test_forward.py index 70fbf6aee554..28867848e133 100755 --- a/tests/python/frontend/paddlepaddle/test_forward.py +++ b/tests/python/frontend/paddlepaddle/test_forward.py @@ -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]] @@ -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") From 2a8a0527d8853c6500882a3182fca46e2bcbe72f Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 6 Mar 2023 11:56:40 +0800 Subject: [PATCH 2/3] Update ubuntu_install_paddle.sh --- docker/install/ubuntu_install_paddle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/install/ubuntu_install_paddle.sh b/docker/install/ubuntu_install_paddle.sh index 386d0fa6e797..6cbd6289a16b 100755 --- a/docker/install/ubuntu_install_paddle.sh +++ b/docker/install/ubuntu_install_paddle.sh @@ -20,4 +20,4 @@ set -e set -u set -o pipefail -pip install paddlepaddle==2.4.1 +pip install paddlepaddle==2.4.2 From 3f4a396f57767c4e4bd1527e7a8b1abd7d203c95 Mon Sep 17 00:00:00 2001 From: pangyoki Date: Mon, 6 Mar 2023 19:52:24 +0800 Subject: [PATCH 3/3] trigger ci