24 #ifndef ARM_COMPUTE_UTILS_HELPERS_TENSOR_INFO_H 25 #define ARM_COMPUTE_UTILS_HELPERS_TENSOR_INFO_H 43 template <
typename... Ts>
48 const std::array <
const ITensorInfo *, 1 +
sizeof...(Ts) > tensor_infos_array{ { tensor_info_2, std::forward<Ts>(tensor_infos)... } };
49 return std::any_of(tensor_infos_array.begin(), tensor_infos_array.end(), [&](
const ITensorInfo * tensor_info)
51 return tensor_info->quantization_info() != first_quantization_info;
Store the tensor's metadata.
Copyright (c) 2017-2021 Arm Limited.
Quantization information.
virtual QuantizationInfo quantization_info() const =0
Get the quantization settings (scale and offset) of the tensor.
bool tensors_have_different_quantization_info(const ITensorInfo *tensor_info_1, const ITensorInfo *tensor_info_2, Ts... tensor_infos)
Checks if the quantization info of given tensors are different.