aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/api.py
diff options
context:
space:
mode:
authorBenjamin Klimczak <benjamin.klimczak@arm.com>2022-06-27 09:10:49 +0100
committerBenjamin Klimczak <benjamin.klimczak@arm.com>2022-06-27 16:18:55 +0100
commit0ee201dfa023a9f42e1c8a282e96c231c6769e07 (patch)
treeabd0048d0f1922470e3fe6befcc32f62d38a52f5 /src/mlia/api.py
parent7faf2c4763f299ee53b1ed100025ba50021c8313 (diff)
downloadmlia-0ee201dfa023a9f42e1c8a282e96c231c6769e07.tar.gz
MLIA-522 No 'perf' in mode 'all' for TFLite files
Fix the issue that no performance information is shown for TFLite files when the mode 'all_tests' is used. Change-Id: I8b4df4ab84ba9783b582ad449a34bf6177037e14
Diffstat (limited to 'src/mlia/api.py')
-rw-r--r--src/mlia/api.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mlia/api.py b/src/mlia/api.py
index 53ea4c8..0f950db 100644
--- a/src/mlia/api.py
+++ b/src/mlia/api.py
@@ -93,8 +93,7 @@ def get_advice(
event_handlers = _get_event_handlers(output)
if context is not None:
- if context.advice_category is None:
- context.advice_category = advice_category
+ context.advice_category = advice_category
if context.config_parameters is None:
context.config_parameters = config_parameters