diff options
author | Kevin Cheng <kevin.cheng@arm.com> | 2021-10-13 23:12:50 -0700 |
---|---|---|
committer | Kevin Cheng <kevin.cheng@arm.com> | 2021-10-14 10:24:53 -0700 |
commit | 6b078cac3ff2b33fd6d01c5e849424fbd9b2ac58 (patch) | |
tree | bdd322c6ee3adc508525943753e84fa5a6fc75bb /python | |
parent | fea5a3736d18cb44a8bfb080b8e61d283c3e317c (diff) | |
download | serialization_lib-6b078cac3ff2b33fd6d01c5e849424fbd9b2ac58.tar.gz |
Fix bug when serializing INT32 constant data
Signed-off-by: Kevin Cheng <kevin.cheng@arm.com>
Change-Id: I5321aedb5766dd1b38fa8251ffb84fa880d4ecd5
Diffstat (limited to 'python')
-rw-r--r-- | python/tosa_serializer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tosa_serializer.py b/python/tosa_serializer.py index b1c5dae..04b2fc4 100644 --- a/python/tosa_serializer.py +++ b/python/tosa_serializer.py @@ -414,7 +414,7 @@ class TosaSerializerTensor: b0 = val_u32 & ByteMask b1 = (val_u32 >> np.uint32(8)) & ByteMask b2 = (val_u32 >> np.uint32(16)) & ByteMask - b3 = (val_u32 >> np.uint32(32)) & ByteMask + b3 = (val_u32 >> np.uint32(24)) & ByteMask u8_data.extend([b0, b1, b2, b3]) elif self.dtype == DType.INT48: for val in self.data: |