Skip to content
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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

<p align="center">
<p align="center">
<img align="center" src="doc/imgs/logo.png", width=1600>
<p>

Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
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

Expand Down
4 changes: 2 additions & 2 deletions python/paddle/fluid/tests/unittests/test_fusion_gru_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
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(
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/fluid/tests/unittests/test_fusion_lstm_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
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):
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/fluid/tests/unittests/test_gru_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
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

Expand Down
1 change: 1 addition & 0 deletions python/unittest_py/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions tools/summary_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.
import os
import sys
import distro
import platform
import subprocess

Expand Down Expand Up @@ -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]
Expand Down