From 4102773d83e236448130b43b1747621ace00160f Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Wed, 25 May 2022 17:52:29 +0100 Subject: Add support for uint16_t Signed-off-by: Jeremy Johnson Change-Id: Ieab5c56db49549726dd5efb0d9b728713fc6f86a --- python/serializer/tosa_serializer.py | 1 + python/tosa/DType.py | 1 + 2 files changed, 2 insertions(+) (limited to 'python') diff --git a/python/serializer/tosa_serializer.py b/python/serializer/tosa_serializer.py index b29f963..660619b 100644 --- a/python/serializer/tosa_serializer.py +++ b/python/serializer/tosa_serializer.py @@ -53,6 +53,7 @@ DTypeNames = [ "INT32", "INT48", "FLOAT", + "UINT16", ] ByteMask = np.uint64(0xFF) diff --git a/python/tosa/DType.py b/python/tosa/DType.py index 65432db..ad9048b 100644 --- a/python/tosa/DType.py +++ b/python/tosa/DType.py @@ -12,4 +12,5 @@ class DType(object): INT32 = 6 INT48 = 7 FLOAT = 8 + UINT16 = 9 -- cgit v1.2.1