// // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include #include #include "BFloat16.hpp" #include "Half.hpp" using namespace armnn; namespace armnnUtils { template bool CompatibleTypes(DataType) { return false; } template<> bool CompatibleTypes(DataType dataType) { return dataType == DataType::Float32; } template<> bool CompatibleTypes(DataType dataType) { return dataType == DataType::Float16; } template<> bool CompatibleTypes(DataType dataType) { return dataType == DataType::BFloat16; } template<> bool CompatibleTypes(DataType dataType) { return dataType == DataType::Boolean || dataType == DataType::QAsymmU8; } template<> bool CompatibleTypes(DataType dataType) { return dataType == DataType::QSymmS8 || dataType == DataType::QAsymmS8; } template<> bool CompatibleTypes(DataType dataType) { return dataType == DataType::QSymmS16; } template<> bool CompatibleTypes(DataType dataType) { return dataType == DataType::Signed32; } } //namespace armnnUtils