diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-05-25 15:26:38 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-05-26 09:53:44 +0100 |
commit | f7f78ae236e623a57919f9450e8b2043e681ddb3 (patch) | |
tree | 0456c0006fbce5efbebe93818398b3a0cd7cd76c /verif/generator/tosa_utils.py | |
parent | 0e6218e22f25901aa208fbec44c9b14e14a68ba7 (diff) | |
download | reference_model-f7f78ae236e623a57919f9450e8b2043e681ddb3.tar.gz |
Add support for uint16_t to RESCALE
Update ref-model RESCALE op to support UINT16 conversions
Add testing for RESCALE UINT16 and ERROR_IFs
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ic6e6e53de1f0b054bedb9e6ba3856e7475498aba
Diffstat (limited to 'verif/generator/tosa_utils.py')
-rw-r--r-- | verif/generator/tosa_utils.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/verif/generator/tosa_utils.py b/verif/generator/tosa_utils.py index ca115a2..a4ef31a 100644 --- a/verif/generator/tosa_utils.py +++ b/verif/generator/tosa_utils.py @@ -59,9 +59,11 @@ def allDTypes(*, excludes=None): def usableDTypes(*, excludes=None): """Get a set of usable DType values, optionally excluding some values. - Excludes (DType.UNKNOWN, DType.UINT8) in addition to the excludes - specified by the caller, as the serializer lib does not support them. - If you wish to include 'UNKNOWN' or 'UINT8' use allDTypes instead. + Excludes uncommon types (DType.UNKNOWN, DType.UINT16, DType.UINT8) in + addition to the excludes specified by the caller, as the serializer lib + does not support them. + If you wish to include 'UNKNOWN', 'UINT8' or 'UINT16' use allDTypes + instead. Args: excludes: iterable of DType values (e.g. [DType.INT8, DType.BOOL]) @@ -69,7 +71,7 @@ def usableDTypes(*, excludes=None): Returns: A set of DType values """ - omit = {DType.UNKNOWN, DType.UINT8} + omit = {DType.UNKNOWN, DType.UINT8, DType.UINT16} omit.update(excludes if excludes else ()) return allDTypes(excludes=omit) |