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

[python] Make module imports relative in fx.py and compiler_utils.py #3925

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions python/torch_mlir/compiler_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from typing import Union, List

import torch
from torch_mlir.passmanager import PassManager
from torch_mlir.ir import StringAttr
from .passmanager import PassManager
from .ir import StringAttr


class TensorPlaceholder:
Expand Down
10 changes: 5 additions & 5 deletions python/torch_mlir/fx.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
import torch.nn as nn
from torch.export import ExportedProgram

from torch_mlir.extras.fx_importer import FxImporter, FxImporterHooks
from torch_mlir import ir
from torch_mlir.dialects import torch as torch_d
from torch_mlir.extras.fx_decomp_util import get_decomposition_table
from torch_mlir.compiler_utils import (
from .extras.fx_importer import FxImporter, FxImporterHooks
from . import ir
from .dialects import torch as torch_d
from .extras.fx_decomp_util import get_decomposition_table
from .compiler_utils import (
OutputType,
run_pipeline_with_repro_report,
lower_mlir_module,
Expand Down
Loading