aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/weight_compressor.py
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2020-07-07 12:04:37 +0100
committertim.hall <tim.hall@arm.com>2020-07-07 15:24:49 +0000
commitea4994517f84475dab99f7dc3226b937da7f6b96 (patch)
tree055c8df926a16cd309bdaac2cf80a31ae8c1f9c5 /ethosu/vela/weight_compressor.py
parent3ab9452881a15d88710f4b5d7c14ba5069e74948 (diff)
downloadethos-u-vela-ea4994517f84475dab99f7dc3226b937da7f6b96.tar.gz
MLBEDSW-2615: MLCE: Ethos-U55 Flash usage increases due to Yoda Beta
- Fixed bug with the size of the scale and bias tensor Signed-off-by: Tim Hall <tim.hall@arm.com> Change-Id: I4d267d4c918a5c834ebdff82de4f021717e95203
Diffstat (limited to 'ethosu/vela/weight_compressor.py')
-rw-r--r--ethosu/vela/weight_compressor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethosu/vela/weight_compressor.py b/ethosu/vela/weight_compressor.py
index 2554b7c8..df7ff751 100644
--- a/ethosu/vela/weight_compressor.py
+++ b/ethosu/vela/weight_compressor.py
@@ -424,7 +424,8 @@ def calc_scales_and_pack_biases(tens, arch, ofm_depth_step, rescale_for_faf=Fals
tens.compressed_values.append(stream)
tens.compressed_values_substream_offsets.append(substream_offsets)
- tens.storage_shape = [total_elements * tens.element_size_bytes]
+ tens.storage_shape = [total_elements]
+
def update_pass_weight_and_scale_tensors(nng, arch):