Skip to content

Commit 9fc13fd

Browse files
committed
Remove python3 relative import of unittest
1 parent 35e6abd commit 9fc13fd

File tree

166 files changed

+178
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+178
-178
lines changed

python/paddle/fluid/tests/unittests/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import paddle.fluid as fluid
2121
import paddle.fluid.core as core
2222
from paddle.fluid.op import Operator
23-
from .op_test import OpTest
23+
from op_test import OpTest
2424

2525

2626
class BenchmarkSuite(OpTest):

python/paddle/fluid/tests/unittests/benchmark_sum_op.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import numpy as np
1717

1818
import paddle.fluid as fluid
19-
from .benchmark import BenchmarkSuite
20-
from .op_test import OpTest
19+
from benchmark import BenchmarkSuite
20+
from op_test import OpTest
2121

2222
# This is a demo op test case for operator benchmarking and high resolution number stability alignment.
2323

python/paddle/fluid/tests/unittests/op_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from paddle.fluid.op import Operator
2626
from paddle.fluid.executor import Executor
2727
from paddle.fluid.framework import Program, OpProtoHolder, Variable
28-
from .testsuite import create_op, set_input, append_input_output, append_loss_ops
28+
from testsuite import create_op, set_input, append_input_output, append_loss_ops
2929
from functools import reduce
3030
from six.moves import zip
3131

python/paddle/fluid/tests/unittests/test_accuracy_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616
import numpy as np
17-
from .op_test import OpTest
17+
from op_test import OpTest
1818

1919

2020
class TestAccuracyOp(OpTest):

python/paddle/fluid/tests/unittests/test_activation_mkldnn_op.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
import unittest
1616
import numpy as np
1717
import paddle.fluid.core as core
18-
from .op_test import OpTest
18+
from op_test import OpTest
1919
from scipy.special import expit
20-
from .test_activation_op import TestRelu, TestTanh, TestSqrt, TestAbs
20+
from test_activation_op import TestRelu, TestTanh, TestSqrt, TestAbs
2121

2222

2323
class TestMKLDNNReluDim2(TestRelu):

python/paddle/fluid/tests/unittests/test_activation_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import unittest
1616
import numpy as np
1717
import paddle.fluid.core as core
18-
from .op_test import OpTest
18+
from op_test import OpTest
1919
from scipy.special import expit
2020

2121

python/paddle/fluid/tests/unittests/test_adadelta_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616
import numpy as np
17-
from .op_test import OpTest
17+
from op_test import OpTest
1818

1919

2020
class TestAdadeltaOp1(OpTest):

python/paddle/fluid/tests/unittests/test_adagrad_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import numpy as np
1717
import paddle.fluid.core as core
1818
from paddle.fluid.op import Operator
19-
from .op_test import OpTest
19+
from op_test import OpTest
2020
import math
2121

2222

python/paddle/fluid/tests/unittests/test_adam_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616
import numpy as np
17-
from .op_test import OpTest
17+
from op_test import OpTest
1818
from paddle.fluid import core
1919
from paddle.fluid.op import Operator
2020

python/paddle/fluid/tests/unittests/test_adamax_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616
import numpy as np
17-
from .op_test import OpTest
17+
from op_test import OpTest
1818

1919

2020
class TestAdamaxOp1(OpTest):

0 commit comments

Comments
 (0)