diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-11-15 13:19:53 +0000 |
---|---|---|
committer | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-11-16 09:42:15 +0000 |
commit | 302ce432829ae7c25e100a5cca718f0aadbe4fd4 (patch) | |
tree | 96e31bc88f795752ecaa6a9672fe512f8b0d9041 /src/mlia/cli/main.py | |
parent | 47fc50576e7040680c19e152592b2c5e5cc297f5 (diff) | |
download | mlia-302ce432829ae7c25e100a5cca718f0aadbe4fd4.tar.gz |
MLIA-649 Support tosa-checker as a backend
- Add new type of the backend based on python packages
- Add installation class for TOSA checker
- Update documentation
- Extend support of the parameter "force" in the
"install" command
Change-Id: I95567b75e1cfe85daa1f1c3d359975bb67b2504e
Diffstat (limited to 'src/mlia/cli/main.py')
-rw-r--r-- | src/mlia/cli/main.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mlia/cli/main.py b/src/mlia/cli/main.py index 61b8f05..6c74a11 100644 --- a/src/mlia/cli/main.py +++ b/src/mlia/cli/main.py @@ -33,6 +33,8 @@ from mlia.cli.options import add_output_options from mlia.cli.options import add_target_options from mlia.cli.options import add_tflite_model_options from mlia.core.context import ExecutionContext +from mlia.core.errors import ConfigurationError +from mlia.core.errors import InternalError logger = logging.getLogger(__name__) @@ -219,6 +221,10 @@ def run_command(args: argparse.Namespace) -> int: return 0 except KeyboardInterrupt: logger.error("Execution has been interrupted") + except InternalError as err: + logger.error("Internal error: %s", err) + except ConfigurationError as err: + logger.error(err) except Exception as err: # pylint: disable=broad-except logger.error( "\nExecution finished with error: %s", |