From fd8d92ca5c38c4444fc0e2d971279dbc4d49e577 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Mon, 10 Oct 2022 17:22:53 +0800 Subject: [PATCH] [CodeStyle][F401] remove unused imports in unittests/ipu (#46791) --- .../fluid/tests/unittests/ipu/test_fill_constant_op_ipu.py | 1 - .../paddle/fluid/tests/unittests/ipu/test_huber_loss_op_ipu.py | 1 - .../paddle/fluid/tests/unittests/ipu/test_identity_loss_ipu.py | 1 - .../paddle/fluid/tests/unittests/ipu/test_kldiv_loss_op_ipu.py | 1 - .../ipu/test_sigmoid_cross_entropy_with_logits_op_ipu.py | 1 - python/paddle/fluid/tests/unittests/ipu/test_warpctc_op_ipu.py | 1 - 6 files changed, 6 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/ipu/test_fill_constant_op_ipu.py b/python/paddle/fluid/tests/unittests/ipu/test_fill_constant_op_ipu.py index 7598b32581a..0e1e17cb65e 100644 --- a/python/paddle/fluid/tests/unittests/ipu/test_fill_constant_op_ipu.py +++ b/python/paddle/fluid/tests/unittests/ipu/test_fill_constant_op_ipu.py @@ -14,7 +14,6 @@ import unittest -import numpy as np import paddle import paddle.static from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest diff --git a/python/paddle/fluid/tests/unittests/ipu/test_huber_loss_op_ipu.py b/python/paddle/fluid/tests/unittests/ipu/test_huber_loss_op_ipu.py index 514b926dc82..613fbd944c2 100644 --- a/python/paddle/fluid/tests/unittests/ipu/test_huber_loss_op_ipu.py +++ b/python/paddle/fluid/tests/unittests/ipu/test_huber_loss_op_ipu.py @@ -18,7 +18,6 @@ import numpy as np import paddle import paddle.static from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest -import paddle.nn.functional as F class TestBase(IPUOpTest): diff --git a/python/paddle/fluid/tests/unittests/ipu/test_identity_loss_ipu.py b/python/paddle/fluid/tests/unittests/ipu/test_identity_loss_ipu.py index 187c63fef5b..53baf0de0ac 100644 --- a/python/paddle/fluid/tests/unittests/ipu/test_identity_loss_ipu.py +++ b/python/paddle/fluid/tests/unittests/ipu/test_identity_loss_ipu.py @@ -22,7 +22,6 @@ import paddle.optimizer import paddle.static from paddle.fluid.tests.unittests.ipu.op_test_ipu import (IPUOpTest, np_dtype_to_fluid_str) -from paddle.utils.cpp_extension import load paddle.enable_static() diff --git a/python/paddle/fluid/tests/unittests/ipu/test_kldiv_loss_op_ipu.py b/python/paddle/fluid/tests/unittests/ipu/test_kldiv_loss_op_ipu.py index 8af6664179a..ef3e173fded 100644 --- a/python/paddle/fluid/tests/unittests/ipu/test_kldiv_loss_op_ipu.py +++ b/python/paddle/fluid/tests/unittests/ipu/test_kldiv_loss_op_ipu.py @@ -18,7 +18,6 @@ import numpy as np import paddle import paddle.static from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest -import paddle.nn.functional as F class TestBase(IPUOpTest): diff --git a/python/paddle/fluid/tests/unittests/ipu/test_sigmoid_cross_entropy_with_logits_op_ipu.py b/python/paddle/fluid/tests/unittests/ipu/test_sigmoid_cross_entropy_with_logits_op_ipu.py index 997ae46ec82..7a6cf28d443 100644 --- a/python/paddle/fluid/tests/unittests/ipu/test_sigmoid_cross_entropy_with_logits_op_ipu.py +++ b/python/paddle/fluid/tests/unittests/ipu/test_sigmoid_cross_entropy_with_logits_op_ipu.py @@ -18,7 +18,6 @@ import numpy as np import paddle import paddle.static from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest -import paddle.nn.functional as F class TestBase(IPUOpTest): diff --git a/python/paddle/fluid/tests/unittests/ipu/test_warpctc_op_ipu.py b/python/paddle/fluid/tests/unittests/ipu/test_warpctc_op_ipu.py index 0e2de2817ea..d173ae77e5c 100644 --- a/python/paddle/fluid/tests/unittests/ipu/test_warpctc_op_ipu.py +++ b/python/paddle/fluid/tests/unittests/ipu/test_warpctc_op_ipu.py @@ -18,7 +18,6 @@ import numpy as np import paddle import paddle.static from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest -import paddle.nn.functional as F class TestBase(IPUOpTest): -- GitLab