From 7e2458f429f6d0fda918697007e2dd23fbc91e9e Mon Sep 17 00:00:00 2001 From: Henrik G Olsson Date: Thu, 18 Mar 2021 17:16:45 +0100 Subject: Handle absent weights_compression_ration when printing Change-Id: Iafb31af73d80adcc901b241c34dda78be360bc14 Signed-off-by: Henrik G Olsson --- ethosu/vela/stats_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ethosu/vela') 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, ) -- cgit v1.2.1