Conform to Python custom exception api

pull/2326/head
max 2023-07-19 17:34:27 -05:00 committed by Maksim Levental
parent 3f843c8fd9
commit 0650efe7c0
1 changed files with 1 additions and 7 deletions

View File

@ -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,