2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
8 #include "armnn/Types.hpp"
15 bool CompatibleTypes(DataType dataType)
21 inline bool CompatibleTypes<float>(DataType dataType)
23 return dataType == DataType::Float32;
27 inline bool CompatibleTypes<Half>(DataType dataType)
29 return dataType == DataType::Float16;
33 inline bool CompatibleTypes<uint8_t>(DataType dataType)
35 return dataType == DataType::Boolean || dataType == DataType::QuantisedAsymm8;
39 inline bool CompatibleTypes<int32_t>(DataType dataType)
41 return dataType == DataType::Signed32;