24 #ifndef __ARM_COMPUTE_TENSORSHAPE_H__ 25 #define __ARM_COMPUTE_TENSORSHAPE_H__ 41 #ifndef DOXYGEN_SKIP_THIS 46 template <
typename... Ts>
51 std::fill(_id.begin() + _num_dimensions, _id.end(), 1);
57 TensorShape &
operator=(
const TensorShape &) =
default;
61 TensorShape &
operator=(TensorShape &&) =
default;
70 const size_t size =
std::accumulate(_id.begin(), _id.end(), 1, std::multiplies<size_t>());
84 const size_t size =
std::accumulate(_id.begin() + dimension, _id.end(), 1, std::multiplies<size_t>());
TensorShape(const TensorShape &)=default
Allow instances of this class to be copy constructed.
TensorShape & operator=(const TensorShape &)=default
Allow instances of this class to be copied.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
size_t total_size_upper(size_t dimension) const
Collapses given dimension and above.
Dimensions with dimensionality.
size_t total_size() const
Collapses all dimensions to a single linear total size.
__kernel void accumulate(__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *accu_ptr, uint accu_stride_x, uint accu_step_x, uint accu_stride_y, uint accu_step_y, uint accu_offset_first_element_in_bytes)
This function accumulates an input image into output image.
~TensorShape()=default
Default destructor.