aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik G Olsson <henrik.olsson@arm.com>2021-03-18 17:16:45 +0100
committerpatrik.gustavsson <patrik.gustavsson@arm.com>2021-03-31 09:33:55 +0000
commit7e2458f429f6d0fda918697007e2dd23fbc91e9e (patch)
tree89038a20de20a2fda9f54e9ca2d2d1220c17691d
parent893780c576be1717504666b024e40005829c3e3e (diff)
downloadethos-u-vela-7e2458f429f6d0fda918697007e2dd23fbc91e9e.tar.gz
Handle absent weights_compression_ration when printing
Change-Id: Iafb31af73d80adcc901b241c34dda78be360bc14 Signed-off-by: Henrik G Olsson <henrik.olsson@arm.com>
-rw-r--r--ethosu/vela/stats_writer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/stats_writer.py b/ethosu/vela/stats_writer.py
index 3d92d2ce..9ccee72e 100644
--- a/ethosu/vela/stats_writer.py
+++ b/ethosu/vela/stats_writer.py
@@ -327,7 +327,7 @@ def print_performance_metrics_for_strat(
)
print(file=f)
- if weights_compression_ratio != 0:
+ if weights_compression_ratio:
print(
f"Weights Compression Ratio {weights_compression_ratio:12.2f}", file=f,
)