Skip to content

Commit

Permalink
Fix mlir printer arguments to match new signatures (#392)
Browse files Browse the repository at this point in the history
The function signatures seem to have changed after 
llvm/llvm-project#75099
  • Loading branch information
nirvedhmeshram authored Feb 4, 2024
1 parent a176f99 commit cc61977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/shark_turbine/aot/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def save_mlir(self, file_path: Union[str, Path]):
if file_path.suffix == ".mlirbc":
self.mlir_module.write_bytecode(f)
else:
self.mlir_module.print(f, binary=True)
self.mlir_module.print(file=f, binary=True)

def _run_import(self):
CompiledModule.run_import(self.compiled_module)
Expand Down

0 comments on commit cc61977

Please sign in to comment.