// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include #include #include namespace armnn { template bool CompatibleTypes(DataType) { return false; } template<> inline bool CompatibleTypes(DataType dataType) { return dataType == DataType::Float32; } template<> inline bool CompatibleTypes(DataType dataType) { return dataType == DataType::Float16; } template<> inline bool CompatibleTypes(DataType dataType) { return dataType == DataType::BFloat16; } template<> inline bool CompatibleTypes(DataType dataType) { return dataType == DataType::Boolean || dataType == DataType::QAsymmU8; } template<> inline bool CompatibleTypes(DataType dataType) { ARMNN_NO_DEPRECATE_WARN_BEGIN return dataType == DataType::QSymmS8 || dataType == DataType::QuantizedSymm8PerAxis || dataType == DataType::QAsymmS8; ARMNN_NO_DEPRECATE_WARN_END } template<> inline bool CompatibleTypes(DataType dataType) { return dataType == DataType::QSymmS16; } template<> inline bool CompatibleTypes(DataType dataType) { return dataType == DataType::Signed32; } } //namespace armnn