mirror of https://github.com/llvm/torch-mlir
Conform to Python custom exception api
parent
3f843c8fd9
commit
0650efe7c0
|
@ -23,13 +23,7 @@ def get_module_name_for_debug_dump(module):
|
|||
|
||||
|
||||
class TorchMlirCompilerError(Exception):
|
||||
def __init__(self, value: str):
|
||||
super().__init__()
|
||||
self.value = value
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.value
|
||||
|
||||
pass
|
||||
|
||||
def run_pipeline_with_repro_report(module,
|
||||
pipeline: str,
|
||||
|
|
Loading…
Reference in New Issue