45 return a + (mean -
b) * (mean -
b);
48 std_dev = std::sqrt(std_dev / num_elements);
50 return std::make_pair(mean, std_dev);
SimpleTensor< T2 > accumulate(const SimpleTensor< T1 > &src, DataType output_data_type)
Copyright (c) 2017-2022 Arm Limited.
Simple tensor object that stores elements in a consecutive chunk of memory.
int num_elements() const override
Number of elements of the tensor.
std::pair< float, float > mean_and_standard_deviation(const SimpleTensor< T > &in)
const T * data() const
Constant pointer to the underlying buffer.