From 2fa40ae3e0e17c899e847c8ad8decd1ec0d9bfcd Mon Sep 17 00:00:00 2001 From: Michael McGeagh Date: Wed, 2 Dec 2020 10:55:04 +0000 Subject: MLBEDSW-3333 New CLI: --verbose-all Added a new CLI option which simply force-enables all the other verbose options available to vela Signed-off-by: Michael McGeagh Change-Id: I0dddbc86a76ea0de57266452f39fd0a5ca57eeb3 --- ethosu/vela/vela.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ethosu/vela/vela.py') diff --git a/ethosu/vela/vela.py b/ethosu/vela/vela.py index 08ab4831..37de1ed2 100644 --- a/ethosu/vela/vela.py +++ b/ethosu/vela/vela.py @@ -221,6 +221,7 @@ def main(args=None): parser.add_argument( "--config", type=str, action="append", help="Vela configuration file(s) in Python ConfigParser .ini file format" ) + parser.add_argument("--verbose-all", action="store_true", help="Enable all verbose options") parser.add_argument("--verbose-config", action="store_true", help="Verbose system configuration and memory mode") parser.add_argument("--verbose-graph", action="store_true", help="Verbose graph rewriter") parser.add_argument("--verbose-quantization", action="store_true", help="Verbose quantization") @@ -384,6 +385,11 @@ def main(args=None): if args.memory_mode == ArchitectureFeatures.DEFAULT_CONFIG: print(f"Warning: Using {ArchitectureFeatures.DEFAULT_CONFIG} values for memory mode") + if args.verbose_all: + for v in vars(args): + if v.startswith("verbose") and v != "verbose_all": + setattr(args, v, True) + arch = architecture_features.ArchitectureFeatures( vela_config_files=args.config, system_config=args.system_config, -- cgit v1.2.1