Skip to content

Commit 860dcf2

Browse files
committed
more refactors
1 parent 6f4bb76 commit 860dcf2

File tree

5 files changed

+10
-22
lines changed

5 files changed

+10
-22
lines changed

ivy/transpiler/transformations/transformers/closure_transformer/base_transformer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# local
21
import gast
3-
from ...configurations.base_transformer_config import (
2+
3+
from ivy.transpiler.transformations.configurations.base_transformer_config import (
44
BaseTransformerConfig,
55
)
6-
from ...transformer import Transformer
7-
from ...transformers.base_transformer import (
6+
from ivy.transpiler.transformations.transformer import Transformer
7+
from ivy.transpiler.transformations.transformers.base_transformer import (
88
BaseTransformer,
99
)
1010

ivy/transpiler/transformations/transformers/decorator_transformer/base_transformer.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
# globals
2-
import types
1+
import gast
32

4-
# local
5-
from ...configurations.base_transformer_config import (
3+
from ivy.transpiler.transformations.configurations.base_transformer_config import (
64
BaseTransformerConfig,
75
)
8-
import gast
9-
from ...transformer import Transformer
10-
from ...transformers.base_transformer import (
6+
from ivy.transpiler.transformations.transformer import Transformer
7+
from ivy.transpiler.transformations.transformers.base_transformer import (
118
BaseTransformer,
129
)
13-
from ....utils.ast_utils import ast_to_source_code
14-
from ....utils.type_utils import Types
10+
from ivy.transpiler.utils.ast_utils import ast_to_source_code
11+
from ivy.transpiler.utils.type_utils import Types
1512

1613

1714
class BaseDecoratorRemover(BaseTransformer):

ivy/transpiler/transformations/transformers/decorator_transformer/frontend_torch_decorator_transformer.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# global
2-
3-
# local
41
from ivy.transpiler.transformations.configurations.base_transformer_config import (
52
BaseTransformerConfig,
63
)

ivy/transpiler/transformations/transformers/decorator_transformer/ivy_decorator_transformer.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# global
2-
3-
# local
41
from ivy.transpiler.transformations.configurations.base_transformer_config import (
52
BaseTransformerConfig,
63
)

ivy/transpiler/transformations/transformers/decorator_transformer/native_torch_decorator_transformer.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# global
2-
3-
# local
41
from ivy.transpiler.transformations.configurations.base_transformer_config import (
52
BaseTransformerConfig,
63
)

0 commit comments

Comments
 (0)