Skip to content

Commit cc61977

Browse files
Fix mlir printer arguments to match new signatures (#392)
The function signatures seem to have changed after llvm/llvm-project#75099
1 parent a176f99 commit cc61977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/shark_turbine/aot/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def save_mlir(self, file_path: Union[str, Path]):
7979
if file_path.suffix == ".mlirbc":
8080
self.mlir_module.write_bytecode(f)
8181
else:
82-
self.mlir_module.print(f, binary=True)
82+
self.mlir_module.print(file=f, binary=True)
8383

8484
def _run_import(self):
8585
CompiledModule.run_import(self.compiled_module)

0 commit comments

Comments
 (0)