diff options
author | Tim Hall <tim.hall@arm.com> | 2020-07-07 12:04:37 +0100 |
---|---|---|
committer | tim.hall <tim.hall@arm.com> | 2020-07-07 15:24:49 +0000 |
commit | ea4994517f84475dab99f7dc3226b937da7f6b96 (patch) | |
tree | 055c8df926a16cd309bdaac2cf80a31ae8c1f9c5 /ethosu/vela | |
parent | 3ab9452881a15d88710f4b5d7c14ba5069e74948 (diff) | |
download | ethos-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')
-rw-r--r-- | ethosu/vela/weight_compressor.py | 3 |
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): |