|
template<typename Kernel , typename... T> |
std::unique_ptr< Kernel > | create_configure_kernel (T &&...args) |
| Helper function to create and return a unique_ptr pointed to a CL/GLES kernel object It also calls the kernel's configuration. More...
|
|
template<typename Kernel > |
std::unique_ptr< Kernel > | create_kernel () |
| Helper function to create and return a unique_ptr pointed to a CL/GLES kernel object. More...
|
|
template<typename T > |
T | delta_bilinear_c1 (const T *pixel_ptr, size_t stride, float dx, float dy) |
| Computes bilinear interpolation using the pointer to the top-left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More...
|
|
template<typename T > |
T | delta_linear_c1_y (const T *pixel_ptr, size_t stride, float dy) |
| Computes linear interpolation using the pointer to the top pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More...
|
|
template<typename T > |
T | delta_linear_c1_x (const T *pixel_ptr, float dx) |
| Computes linear interpolation using the pointer to the left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More...
|
|
template<typename T > |
T | pixel_bilinear_c1 (const T *first_pixel_ptr, size_t stride, float x, float y) |
| Return the pixel at (x,y) using bilinear interpolation. More...
|
|
template<typename T > |
uint8_t | pixel_bilinear_c1_clamp (const T *first_pixel_ptr, size_t stride, size_t width, size_t height, float x, float y) |
| Return the pixel at (x,y) using bilinear interpolation by clamping when out of borders. More...
|
|
uint8_t | pixel_area_c1u8_clamp (const uint8_t *first_pixel_ptr, size_t stride, size_t width, size_t height, float wr, float hr, int x, int y) |
| Return the pixel at (x,y) using area interpolation by clamping when out of borders. More...
|
|
template<typename L , typename... Ts> |
void | execute_window_loop (const Window &w, L &&lambda_function, Ts &&...iterators) |
| Iterate through the passed window, automatically adjusting the iterators and calling the lambda_functino for each element. More...
|
|
template<typename... Ts> |
bool | update_window_and_padding (Window &win, Ts &&...patterns) |
| Update window and padding size for each of the access patterns. More...
|
|
Window | calculate_max_window (const ValidRegion &valid_region, const Steps &steps=Steps(), bool skip_border=false, BorderSize border_size=BorderSize()) |
| Calculate the maximum window for a given tensor shape and border setting. More...
|
|
Window | calculate_max_window (const ITensorInfo &info, const Steps &steps=Steps(), bool skip_border=false, BorderSize border_size=BorderSize()) |
| Calculate the maximum window for a given tensor shape and border setting. More...
|
|
Window | calculate_max_window_horizontal (const ValidRegion &valid_region, const Steps &steps=Steps(), bool skip_border=false, BorderSize border_size=BorderSize()) |
| Calculate the maximum window used by a horizontal kernel for a given tensor shape and border setting. More...
|
|
Window | calculate_max_window_horizontal (const ITensorInfo &info, const Steps &steps=Steps(), bool skip_border=false, BorderSize border_size=BorderSize()) |
| Calculate the maximum window used by a horizontal kernel for a given tensor shape and border setting. More...
|
|
Window | calculate_max_enlarged_window (const ValidRegion &valid_region, const Steps &steps=Steps(), BorderSize border_size=BorderSize()) |
| Calculate the maximum window for a given tensor shape and border setting. More...
|
|
Window | calculate_max_enlarged_window (const ITensorInfo &info, const Steps &steps=Steps(), BorderSize border_size=BorderSize()) |
| Calculate the maximum window for a given tensor shape and border setting. More...
|
|
template<typename... Ts> |
ValidRegion | intersect_valid_regions (const Ts &...regions) |
| Intersect multiple valid regions. More...
|
|
template<typename T , typename... Ts> |
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. More...
|
|
template<typename... Ts> |
Strides | compute_strides (const ITensorInfo &info) |
| Create a strides object based on the tensor dimensions. More...
|
|
template<typename T > |
void | permute (Dimensions< T > &dimensions, const PermutationVector &perm) |
| Permutes given Dimensions according to a permutation vector. More...
|
|
void | permute (TensorShape &shape, const PermutationVector &perm) |
| Permutes given TensorShape according to a permutation vector. More...
|
|
bool | auto_init_if_empty (ITensorInfo &info, const TensorShape &shape, int num_channels, DataType data_type, int fixed_point_position, QuantizationInfo quantization_info=QuantizationInfo()) |
| Auto initialize the tensor info (shape, number of channels, data type and fixed point position) if the current assignment is empty. More...
|
|
bool | auto_init_if_empty (ITensorInfo &info_sink, const ITensorInfo &info_source) |
| Auto initialize the tensor info using another tensor info. More...
|
|
bool | set_shape_if_empty (ITensorInfo &info, const TensorShape &shape) |
| Set the shape to the specified value if the current assignment is empty. More...
|
|
bool | set_format_if_unknown (ITensorInfo &info, Format format) |
| Set the format, data type and number of channels to the specified value if the current data type is unknown. More...
|
|
bool | set_data_type_if_unknown (ITensorInfo &info, DataType data_type) |
| Set the data type and number of channels to the specified value if the current data type is unknown. More...
|
|
bool | set_data_layout_if_unknown (ITensorInfo &info, DataLayout data_layout) |
| Set the data layout to the specified value if the current data layout is unknown. More...
|
|
bool | set_fixed_point_position_if_zero (ITensorInfo &info, int fixed_point_position) |
| Set the fixed point position to the specified value if the current fixed point position is 0 and the data type is QS8 or QS16. More...
|
|
bool | set_quantization_info_if_empty (ITensorInfo &info, QuantizationInfo quantization_info) |
| Set the quantization info to the specified value if the current quantization info is empty and the data type of asymmetric quantized type. More...
|
|
ValidRegion | calculate_valid_region_scale (const ITensorInfo &src_info, const TensorShape &dst_shape, InterpolationPolicy interpolate_policy, SamplingPolicy sampling_policy, bool border_undefined) |
| Helper function to calculate the Valid Region for Scale. More...
|
|
Coordinates | index2coords (const TensorShape &shape, int index) |
| Convert a linear index into n-dimensional coordinates. More...
|
|
int | coords2index (const TensorShape &shape, const Coordinates &coord) |
| Convert n-dimensional coordinates into a linear index. More...
|
|
size_t | get_data_layout_dimension_index (const DataLayout data_layout, const DataLayoutDimension data_layout_dimension) |
| Get the index of the given dimension. More...
|
|