// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include "armnn/Types.hpp" #include "Half.hpp" namespace armnn { template bool CompatibleTypes(DataType 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::Boolean || dataType == DataType::QuantisedAsymm8; } template<> inline bool CompatibleTypes(DataType dataType) { return dataType == DataType::QuantisedSymm16; } template<> inline bool CompatibleTypes(DataType dataType) { return dataType == DataType::Signed32; } } //namespace armnn