44 dst[i] = 1.f / std::sqrt(src[i]);
47 dst[i] = std::exp(src[i]);
53 dst[i] = std::log(src[i]);
56 dst[i] = std::abs(src[i]);
59 dst[i] = std::sin(src[i]);
SimpleTensor< T > elementwise_unary(const SimpleTensor< T > &src, ElementWiseUnary op)
#define ARM_COMPUTE_ERROR(msg)
Print the given message then throw an std::runtime_error.
T nearbyint(T value)
Rounds the floating-point argument arg to an integer value in floating-point format, using the current rounding mode.
DataType data_type() const override
Data type of the tensor.
TensorShape shape() const override
Shape of the tensor.
SimpleTensor< float > src
Copyright (c) 2017-2021 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.
ElementWiseUnary
Available element wise unary operations.