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 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")