diff options
Diffstat (limited to 'reference_model/src/ops/template_types.h')
-rw-r--r-- | reference_model/src/ops/template_types.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/reference_model/src/ops/template_types.h b/reference_model/src/ops/template_types.h index 1859e03..0fe9a41 100644 --- a/reference_model/src/ops/template_types.h +++ b/reference_model/src/ops/template_types.h @@ -1,5 +1,5 @@ -// Copyright (c) 2020, ARM Limited. +// Copyright (c) 2020-2021, ARM Limited. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -84,11 +84,6 @@ struct GetEigenType<DType_BOOL> using type = bool; }; template <> -struct GetEigenType<DType_AINT8> -{ - using type = int32_t; -}; -template <> struct GetEigenType<DType_UINT8> { using type = int32_t; @@ -121,11 +116,6 @@ struct GetNumBits<DType_BOOL> static constexpr int32_t value = 1; }; template <> -struct GetNumBits<DType_AINT8> -{ - static constexpr int32_t value = 8; -}; -template <> struct GetNumBits<DType_UINT8> { static constexpr int32_t value = 8; @@ -163,11 +153,6 @@ struct GetQMin static constexpr int64_t value = 0L; }; template <> -struct GetQMin<DType_AINT8> -{ - static constexpr int64_t value = -128L; -}; -template <> struct GetQMin<DType_UINT8> { static constexpr int64_t value = 0L; @@ -204,11 +189,6 @@ struct GetQMax static constexpr int64_t value = 0L; }; template <> -struct GetQMax<DType_AINT8> -{ - static constexpr int64_t value = 127L; -}; -template <> struct GetQMax<DType_UINT8> { static constexpr int64_t value = 255L; @@ -242,17 +222,12 @@ struct GetQMax<DType_INT48> template <DType TIn1, DType TIn2> struct GetAccDType; template <> -struct GetAccDType<DType_AINT8, DType_AINT8> -{ - static constexpr DType value = DType_INT32; -}; -template <> -struct GetAccDType<DType_AINT8, DType_INT4> +struct GetAccDType<DType_INT8, DType_INT4> { static constexpr DType value = DType_INT32; }; template <> -struct GetAccDType<DType_AINT8, DType_INT8> +struct GetAccDType<DType_INT8, DType_INT8> { static constexpr DType value = DType_INT32; }; |