Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeStyle][isort] introduce isort (part4) #48402

Merged
merged 4 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert conflicting files
  • Loading branch information
SigureMo committed Nov 29, 2022
commit c1ca29b29370dd37c9eb16fef753597de74cd856
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import sys
import unittest

import numpy as np

import paddle
Expand All @@ -23,8 +22,8 @@
sys.path.append("..")
import auto_parallel_gpt_model as modeling
from auto_parallel_gpt_model import (
GPTForPretraining,
GPTModel,
GPTForPretraining,
GPTPretrainingCriterion,
)

Expand Down Expand Up @@ -112,13 +111,13 @@ def test_gpt(self):
sequence_len,
vocab_size,
)
from paddle.distributed.auto_parallel.dist_context import (
DistributedContext,
)
from paddle.distributed.auto_parallel.tuner.rule_based_tuner import (
_PATTERNS,
RuleBasedTuner,
convert_to_graph,
_PATTERNS,
)
from paddle.distributed.auto_parallel.dist_context import (
DistributedContext,
)

dist_context = DistributedContext()
Expand Down
10 changes: 6 additions & 4 deletions python/paddle/static/nn/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
# limitations under the License.

import paddle
from paddle.fluid.initializer import Normal
from paddle.fluid.framework import static_only, Variable, _non_static_mode

from paddle.fluid.data_feeder import check_dtype

from paddle.common_ops_import import (
LayerHelper,
check_type,
check_variable_and_dtype,
utils,
LayerHelper,
)
from paddle.fluid.data_feeder import check_dtype
from paddle.fluid.framework import Variable, _non_static_mode, static_only
from paddle.fluid.initializer import Normal

__all__ = []

Expand Down