Skip to content

Commit 6cc26e7

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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

0 commit comments

Comments
 (0)