24.02.1
|
Go to the documentation of this file.
24 #ifndef ACL_SRC_CORE_HELPERS_UTILS_H
25 #define ACL_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>
120 #endif // ACL_SRC_CORE_HELPERS_UTILS_H
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.
Strides of an item in bytes.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
bool has_holes(const ITensorInfo &info)
Check if the tensor has any holes.
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.