Skip to content

Commit

Permalink
[CodeStyle][isort][F401] fix some regression issues (PaddlePaddle#48936)
Browse files Browse the repository at this point in the history
* [CodeStyle][isort][F401] fix some regression issues

* add import paddle to fix eval call
  • Loading branch information
SigureMo authored Dec 12, 2022
1 parent cc204bc commit 4a88d7c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

import math

from abc import abstractmethod

from ..graph import Graph

_PATTERNS = {}
Expand Down
1 change: 0 additions & 1 deletion python/paddle/fluid/tests/unittests/test_device_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import warnings

import paddle
import paddle.fluid as fluid
import paddle.fluid.core as core

paddle.enable_static()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import warnings

import paddle
import paddle.fluid as fluid
import paddle.fluid.core as core

paddle.enable_static()
Expand Down
4 changes: 2 additions & 2 deletions python/paddle/utils/inplace_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

import warnings
import paddle
from paddle import _C_ops, _legacy_C_ops

import paddle # noqa: F401
from paddle.fluid.framework import _non_static_mode
from paddle.fluid.wrapped_decorator import wrap_decorator

Expand Down

0 comments on commit 4a88d7c

Please sign in to comment.