44 #pragma omp parallel for 48 intermediate_type val = std::abs(static_cast<intermediate_type>(src1[i]) - static_cast<intermediate_type>(src2[i]));
TensorShape shape() const override
Shape of the tensor.
Copyright (c) 2017-2021 Arm Limited.
Simple tensor object that stores elements in a consecutive chunk of memory.
T saturate_cast(T val)
Saturate a value of type T against the numeric limits of type U.
int num_elements() const override
Number of elements of the tensor.
SimpleTensor< T > absolute_difference(const SimpleTensor< T > &src1, const SimpleTensor< T > &src2, DataType dst_data_type)
DataType
Available data types.