aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/tosa_serializer.py2
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: