未验证 提交 8b1b214f 编写于 作者: T tianshuo78520a 提交者: GitHub

Change Paddle CI-Cverage Python3.8 (#32515)

上级 a259076d

<p align="center">
<p align="center">
<img align="center" src="doc/imgs/logo.png", width=1600>
<p>
......
......@@ -1450,6 +1450,7 @@ function parallel_test() {
mkdir -p ${PADDLE_ROOT}/build
cd ${PADDLE_ROOT}/build
pip install ${PADDLE_ROOT}/build/python/dist/*whl
cp ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/op_test.py ${PADDLE_ROOT}/build/python
if [ "$WITH_GPU" == "ON" ] || [ "$WITH_ROCM" == "ON" ];then
parallel_test_base_gpu
else
......
......@@ -19,7 +19,6 @@ import numpy as np
import struct
import paddle.fluid.core as core
from paddle.fluid.tests.unittests.op_test import OpTest, convert_float_to_uint16
from paddle.fluid.tests.unittests.op_test import OpTest
from paddle.fluid.tests.unittests.test_fusion_gru_op import fusion_gru
from paddle.fluid.tests.unittests.test_fusion_lstm_op import fc, ACTIVATION
......
......@@ -18,8 +18,8 @@ import unittest
import numpy as np
import math
from op_test import OpTest
from test_gru_op import gru
from test_fusion_lstm_op import fc, ACTIVATION
from paddle.fluid.tests.unittests.test_gru_op import gru
from paddle.fluid.tests.unittests.test_fusion_lstm_op import fc, ACTIVATION
def fusion_gru(
......
......@@ -17,7 +17,7 @@ from __future__ import print_function
import unittest
import numpy as np
from op_test import OpTest
from test_lstm_op import lstm, ACTIVATION
from paddle.fluid.tests.unittests.test_lstm_op import lstm, ACTIVATION
def fc(x, w, b):
......
......@@ -19,7 +19,7 @@ import numpy as np
import math
import functools
from op_test import OpTest
from test_lstm_op import ACTIVATION
from paddle.fluid.tests.unittests.test_lstm_op import ACTIVATION
from paddle import fluid
from paddle.fluid import Program, program_guard
......
......@@ -10,3 +10,4 @@ scipy>=0.19.0, <=1.2.1 ; python_version<"3.5"
scipy<=1.3.1 ; python_version=="3.5"
scipy ; python_version>"3.5"
prettytable
distro
......@@ -13,6 +13,7 @@
# limitations under the License.
import os
import sys
import distro
import platform
import subprocess
......@@ -47,8 +48,8 @@ def get_os_info():
plat = "macOs"
ver = platform.mac_ver()[0]
elif platform.system() == "Linux":
plat = platform.linux_distribution()[0]
ver = platform.linux_distribution()[1]
plat = distro.linux_distribution()[0]
ver = distro.linux_distribution()[1]
elif platform.system() == "Windows":
plat = "Windows"
ver = platform.win32_ver()[0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册