Skip to content

Commit c75211f

Browse files
committed
fix call to fx_importer.module
1 parent d176528 commit c75211f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/torch_mlir/fx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def export_and_import(
4141
else:
4242
fx_importer.import_frozen_program(prog, func_name=func_name)
4343

44-
return fx_importer.module
44+
return fx_importer.module_op
4545

4646

4747
def stateless_fx_import(
@@ -55,4 +55,4 @@ def stateless_fx_import(
5555
if fx_importer is None:
5656
fx_importer = FxImporter(context=context, hooks=hooks)
5757
fx_importer.import_stateless_graph(gm.graph, func_name=model_name)
58-
return fx_importer.module
58+
return fx_importer.module_op

test/python/fx_importer/sparse_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def export_and_import(f, *args, **kwargs):
130130
fx_importer = FxImporter(context=context)
131131
prog = sparse_export(f, args, kwargs)
132132
fx_importer.import_frozen_program(prog)
133-
return fx_importer.module
133+
return fx_importer.module_op
134134

135135

136136
def sparse_jit(f, *args, **kwargs):

0 commit comments

Comments
 (0)