24 #ifndef SRC_CORE_HELPERS_UTILS_H 25 #define SRC_CORE_HELPERS_UTILS_H 40 template <
typename T,
typename... Ts>
46 Strides strides(stride_x, fixed_strides...);
48 for(
size_t i = 1 +
sizeof...(Ts); i <
info.num_dimensions(); ++i)
50 strides.
set(i,
shape[i - 1] * strides[i - 1]);
62 template <
typename... Ts>
void set(size_t dimension, T value, bool increase_dim_unit=true)
Accessor to set the value of one of the dimensions.
unsigned int get_next_power_two(unsigned int x)
Given an integer value, this function returns the next power of two.
Store the tensor's metadata.
Copyright (c) 2017-2021 Arm Limited.
Strides compute_strides(const ITensorInfo &info, T stride_x, Ts &&... fixed_strides)
Create a strides object based on the provided strides and the tensor dimensions.
Strides of an item in bytes.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)