Skip to content

Commit

Permalink
Extract the Python APIs in the pt1 dir back to the root (llvm#3237)
Browse files Browse the repository at this point in the history
  • Loading branch information
penguin-wwy authored and archana-ramalingam committed May 8, 2024
1 parent 1a020fb commit a763f77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/pt1/python/torch_mlir/torchscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,4 @@ def compile(
enable_ir_printing=enable_ir_printing,
)

return lower_mlir_module(verbose, output_type, mb.module)
return lower_mlir_module(verbose, output_type, mb.module)
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ def compile(self, imported_module: Module):

def load(self, module):
"""Loads a compiled artifact into the runtime."""
return self.refbackend.load(module)
return self.refbackend.load(module)
2 changes: 1 addition & 1 deletion python/torch_mlir/compiler_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ def lower_mlir_module(verbose, output_type, module):
print("StableHLO Backend IR")
print(module)
return module
raise Exception(f"Unknown OutputType: {output_type}")
raise Exception(f"Unknown OutputType: {output_type}")

0 comments on commit a763f77

Please sign in to comment.