diff --git a/python/paddle/fluid/contrib/slim/tests/test_imperative_qat_lsq.py b/python/paddle/fluid/contrib/slim/tests/test_imperative_qat_lsq.py index 07600425866f81cf56778536d01af94537282eb9..8269abbab4deeb9ab78874d22fd0f4a45f77c7ad 100644 --- a/python/paddle/fluid/contrib/slim/tests/test_imperative_qat_lsq.py +++ b/python/paddle/fluid/contrib/slim/tests/test_imperative_qat_lsq.py @@ -12,8 +12,6 @@ # see the license for the specific language governing permissions and # limitations under the license. -from __future__ import print_function - import os import numpy as np import random diff --git a/python/paddle/fluid/tests/unittests/mkldnn/test_fc_int8_mkldnn_op.py b/python/paddle/fluid/tests/unittests/mkldnn/test_fc_int8_mkldnn_op.py index ebbbab7f3b33c580fa8d3646fcbdb6dcdb25d4ae..5cecbf159cc05efa280846734b49e267a15b7b25 100644 --- a/python/paddle/fluid/tests/unittests/mkldnn/test_fc_int8_mkldnn_op.py +++ b/python/paddle/fluid/tests/unittests/mkldnn/test_fc_int8_mkldnn_op.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function - import unittest import numpy as np from paddle.fluid.tests.unittests.op_test import OpTest, OpTestTool diff --git a/python/paddle/fluid/tests/unittests/mlu/test_huber_loss_op_mlu.py b/python/paddle/fluid/tests/unittests/mlu/test_huber_loss_op_mlu.py index 6839f8ab6f01df1db013dba74457e586fcc789dc..40e0dab0803028308195a63a25a212fb8dfd6ead 100644 --- a/python/paddle/fluid/tests/unittests/mlu/test_huber_loss_op_mlu.py +++ b/python/paddle/fluid/tests/unittests/mlu/test_huber_loss_op_mlu.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function - import unittest import numpy as np import sys diff --git a/python/paddle/fluid/tests/unittests/mlu/test_yolo_box_op_mlu.py b/python/paddle/fluid/tests/unittests/mlu/test_yolo_box_op_mlu.py index 443ad4b22365c582e61e7dface516f7f0f2e96d9..86bc314eafcd80b49a8342499c7e4664309d7a9d 100644 --- a/python/paddle/fluid/tests/unittests/mlu/test_yolo_box_op_mlu.py +++ b/python/paddle/fluid/tests/unittests/mlu/test_yolo_box_op_mlu.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import division import sys sys.path.append("..") diff --git a/python/paddle/fluid/tests/unittests/xpu/test_index_select_op_xpu.py b/python/paddle/fluid/tests/unittests/xpu/test_index_select_op_xpu.py index 766ebdd25675297b7d360a3405a2b621336060d7..3eb8ff49f7fd56572092dde5aefb942f03dfc73a 100644 --- a/python/paddle/fluid/tests/unittests/xpu/test_index_select_op_xpu.py +++ b/python/paddle/fluid/tests/unittests/xpu/test_index_select_op_xpu.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function import unittest import sys import paddle.fluid as fluid diff --git a/python/setup.py.in b/python/setup.py.in index 0e25a34f801d58e790422bd3a7ff9b8895112b06..35da6880b2b5d1a841199a0e623c0026f8ce4646 100755 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -233,7 +233,7 @@ os.environ['CUDA_CACHE_MAXSIZE'] = '805306368' write_cuda_env_config_py(filename='@PADDLE_BINARY_DIR@/python/paddle/cuda_env.py') def write_distributed_training_mode_py(filename='paddle/fluid/incubate/fleet/parameter_server/version.py'): - cnt = '''from __future__ import print_function + cnt = ''' # THIS FILE IS GENERATED FROM PADDLEPADDLE SETUP.PY