Compute Library
18.03
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
__kernel void | l2_normalize (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_offset_first_element_in_bytes, __global uchar *sum_ptr, uint sum_stride_x, uint sum_step_x, uint sum_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_offset_first_element_in_bytes, DATA_TYPE epsilon) |
This kernel performs reduction given an operation. More... | |
__kernel void l2_normalize | ( | __global uchar * | src_ptr, |
uint | src_stride_x, | ||
uint | src_step_x, | ||
uint | src_offset_first_element_in_bytes, | ||
__global uchar * | sum_ptr, | ||
uint | sum_stride_x, | ||
uint | sum_step_x, | ||
uint | sum_offset_first_element_in_bytes, | ||
__global uchar * | dst_ptr, | ||
uint | dst_stride_x, | ||
uint | dst_step_x, | ||
uint | dst_offset_first_element_in_bytes, | ||
DATA_TYPE | epsilon | ||
) |
This kernel performs reduction given an operation.
[in] | src_ptr | Pointer to the source tensor. Supported data types: QS8/F16/F32 |
[in] | src_stride_x | Stride of the source tensor in X dimension (in bytes) |
[in] | src_step_x | src_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | src_offset_first_element_in_bytes | The offset of the first element in the source tensor |
[in] | sum_ptr | Pointer to the source tensor. Supported data types: QS8/F16/F32 |
[in] | sum_stride_x | Stride of the source tensor in X dimension (in bytes) |
[in] | sum_step_x | sum_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | sum_offset_first_element_in_bytes | The offset of the first element in the source tensor |
[out] | dst_ptr | Pointer to the destination tensor. Supported data types: same as src_ptr |
[in] | dst_stride_x | Stride of the destination tensor in X dimension (in bytes) |
[in] | dst_step_x | dst_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | dst_offset_first_element_in_bytes | The offset of the first element in the destination tensor |
[in] | epsilon | Epsilon value |
Definition at line 45 of file l2_normalize.cl.
References CONVERT_TO_VECTOR_STRUCT, DATA_TYPE, arm_compute::test::validation::dst, Vector::ptr, arm_compute::test::validation::src, sum(), and VEC_DATA_TYPE.