Skip to content

Commit 7216d9b

Browse files
authored
[CodeStyle][isort][F401] fix some regression issues (#48936)
* [CodeStyle][isort][F401] fix some regression issues * add import paddle to fix eval call
1 parent b409e51 commit 7216d9b

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

python/paddle/distributed/auto_parallel/tuner/rule_based_tuner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
import math
16-
1716
from abc import abstractmethod
17+
1818
from ..graph import Graph
1919

2020
_PATTERNS = {}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import warnings
1717

1818
import paddle
19-
import paddle.fluid as fluid
2019
import paddle.fluid.core as core
2120

2221
paddle.enable_static()

python/paddle/fluid/tests/unittests/xpu/test_device_guard_xpu.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import warnings
2121

2222
import paddle
23-
import paddle.fluid as fluid
2423
import paddle.fluid.core as core
2524

2625
paddle.enable_static()

python/paddle/utils/inplace_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
import warnings
16-
import paddle
17-
from paddle import _C_ops, _legacy_C_ops
16+
17+
import paddle # noqa: F401
1818
from paddle.fluid.framework import _non_static_mode
1919
from paddle.fluid.wrapped_decorator import wrap_decorator
2020

0 commit comments

Comments
 (0)