From 90059983170cd1a7efd907bde21ea7f689fda07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Marty?= <9808326+fxmarty@users.noreply.github.com> Date: Mon, 27 Mar 2023 20:19:55 +0200 Subject: [PATCH] fix comment exception --- optimum/exporters/onnx/__main__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/optimum/exporters/onnx/__main__.py b/optimum/exporters/onnx/__main__.py index 4c700d52af3..bf5be6cfcc0 100644 --- a/optimum/exporters/onnx/__main__.py +++ b/optimum/exporters/onnx/__main__.py @@ -508,12 +508,10 @@ def main_export( logger.warning( f"The ONNX export succeeded with the warning: {e}.\n The exported model was saved at: {output.as_posix()}" ) - """ except Exception as e: raise Exception( f"An error occured during validation, but the model was saved nonetheless at {output.as_posix()}. Detailed error: {e}." ) - """ def main():