X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=documentation%2Fpooling__layer_8cl.xhtml;h=ec758408a1430967e2d2687e1b1a41095388ef5d;hb=b3a371bc429d2ba45e56baaf239d8200c2662a74;hp=d1795b23db0b40740d47270f781909d11bdad144;hpb=871448ee8eff790c4ccc3250008dd71170cc78b2;p=platform%2Fupstream%2Farmcl.git diff --git a/documentation/pooling__layer_8cl.xhtml b/documentation/pooling__layer_8cl.xhtml index d1795b2..ec75840 100644 --- a/documentation/pooling__layer_8cl.xhtml +++ b/documentation/pooling__layer_8cl.xhtml @@ -6,7 +6,7 @@ -
Functions | |
float | calculate_avg_scale (const int pool_size, const int upper_bound_w, const int upper_bound_h, const int pad_x, const int pad_y, const int stride_x, const int stride_y) |
__kernel void | pooling_layer_2 (__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 *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_offset_first_element_in_bytes, int2 max_dims, int2 strides, int2 paddings) |
Performs a pooling function of pool size equal to 2. More... | |
__kernel void | pooling_layer_3 (__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 *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_offset_first_element_in_bytes, int2 max_dims, int2 strides, int2 paddings) |
Performs a pooling function of pool size equal to 3. More... | |
DATA_TYPE | calculate_avg_scale (const int pool_size_x, const int pool_size_y, const int upper_bound_w, const int upper_bound_h, const int pad_x, const int pad_y, const int stride_x, const int stride_y) |
__kernel void | pooling_layer_2 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_stride_z, uint input_step_z, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_stride_z, uint output_step_z, uint output_offset_first_element_in_bytes) |
Performs a pooling function of pool size equal to 2. More... | |
__kernel void | pooling_layer_3 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_stride_z, uint input_step_z, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_stride_z, uint output_step_z, uint output_offset_first_element_in_bytes) |
Performs a pooling function of pool size equal to 3. More... | |
DATA_TYPE | calculate_avg_scale_nhwc (const int pool_size_x, const int pool_size_y, int upper_bound_w, int upper_bound_h, const int pad_x, const int pad_y, const int stride_x, const int stride_y) |
__kernel void | pooling_layer_MxN_nhwc (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_stride_z, uint input_step_z, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_stride_z, uint output_step_z, uint output_offset_first_element_in_bytes) |
Performs a pooling function of pool size equal to N (NHWC) More... | |
#define DIV_OP | +( | ++ | x, | +
+ | + | + | y | +
+ | ) | +(x * (1.f / y)) | +
Definition at line 60 of file pooling_layer.cl.
+ +Referenced by pooling_layer_2(), and pooling_layer_3().
+ +#define DIV_OP_NHWC | +( | ++ | x, | +
+ | + | + | y | +
+ | ) | +(x * (VEC_DATA_TYPE(DATA_TYPE, 8))(1.f / y)) | +
Definition at line 65 of file pooling_layer.cl.
+ +Referenced by pooling_layer_MxN_nhwc().
+ +Definition at line 27 of file pooling_layer.cl.
+Definition at line 49 of file pooling_layer.cl.
+ +Referenced by pooling_layer_2(), pooling_layer_3(), and pooling_layer_MxN_nhwc().
+ +#define POOLING3x3_STRIDE1 | +( | ++ | res, | +
+ | + | + | input, | +
+ | + | + | output | +
+ | ) | ++ |
Definition at line 75 of file pooling_layer.cl.
+ +#define POOLING3x3_STRIDE2 | +( | ++ | res, | +
+ | + | + | input, | +
+ | + | + | output | +
+ | ) | ++ |
Definition at line 118 of file pooling_layer.cl.
-Referenced by pooling_layer_2(), and pooling_layer_3().
+#define POOLING3x3_STRIDE3 | +( | ++ | res, | +
+ | + | + | input, | +
+ | + | + | output | +
+ | ) | ++ |
Definition at line 158 of file pooling_layer.cl.
+ +#define POW2_OP | +( | ++ | x, | +
+ | + | + | vec_size | +
+ | ) | +(x) | +
Definition at line 57 of file pooling_layer.cl.
+ +Referenced by pooling_layer_2(), and pooling_layer_3().
+ +#define SQRT_OP | +( | ++ | x | ) | +sqrt((x)) | +
Definition at line 61 of file pooling_layer.cl.
+ +Referenced by pooling_layer_2(), pooling_layer_3(), and pooling_layer_MxN_nhwc().
float calculate_avg_scale | +DATA_TYPE calculate_avg_scale | ( | const int | -pool_size, | +pool_size_x, | +
+ | + | const int | +pool_size_y, | ||
@@ -225,13 +468,87 @@ Functions |
Definition at line 32 of file pooling_layer.cl.
+Definition at line 188 of file pooling_layer.cl.
+ +References arm_compute::test::fixed_point_arithmetic::detail::max(), and arm_compute::test::fixed_point_arithmetic::detail::min().
-Referenced by pooling_layer_2(), and pooling_layer_3().
-Referenced by pooling_layer_2(), and pooling_layer_3().
+DATA_TYPE calculate_avg_scale_nhwc | +( | +const int | +pool_size_x, | +
+ | + | const int | +pool_size_y, | +
+ | + | int | +upper_bound_w, | +
+ | + | int | +upper_bound_h, | +
+ | + | const int | +pad_x, | +
+ | + | const int | +pad_y, | +
+ | + | const int | +stride_x, | +
+ | + | const int | +stride_y | +
+ | ) | ++ |
Definition at line 518 of file pooling_layer.cl.
+ +References arm_compute::test::fixed_point_arithmetic::detail::max(), and arm_compute::test::fixed_point_arithmetic::detail::min().
+ +Referenced by pooling_layer_MxN_nhwc().
+uint | +input_stride_z, | + +||||
+ | + | uint | +input_step_z, | +||
+ | + | uint | input_offset_first_element_in_bytes, | ||
uint | -output_offset_first_element_in_bytes, | +output_stride_z, | |||
- | int2 | -max_dims, | -|||
- | - | int2 | -strides, | +uint | +output_step_z, |
- | int2 | -paddings | +uint | +output_offset_first_element_in_bytes | |
@@ -334,47 +657,49 @@ Functions |
[in] | input_ptr | Pointer to the source image. Supported data types: F16, F32 |
[in] | input_ptr | Pointer to the source image. Supported data types: QS8/QS16/F16/F32 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | input_step_z | input_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported data types: F16, F32 |
[out] | output_ptr | Pointer to the destination image. Supported data types: same as input_ptr |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | output_step_z | output_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | max_dims | The maximum index that can be accessed in x and y dimension (width + pad) |
[in] | strides | The pooling operation strides in each dimension |
[in] | paddings | The pooling operation paddings in each dimension |
Definition at line 64 of file pooling_layer.cl.
+Definition at line 228 of file pooling_layer.cl.
-References calculate_avg_scale(), CONVERT_TO_IMAGE_STRUCT, DATA_TYPE, offset(), POOL_OP, Image::ptr, and VEC_DATA_TYPE.
-References calculate_avg_scale(), CONVERT_TO_TENSOR3D_STRUCT, DATA_TYPE, DIV_OP, POOL_OP, POW2_OP, Tensor3D::ptr, SQRT_OP, tensor3D_offset(), and VEC_DATA_TYPE.
+uint | +input_stride_z, | + +||||
+ | + | uint | +input_step_z, | +||
+ | + | uint | input_offset_first_element_in_bytes, | ||
uint | -output_offset_first_element_in_bytes, | +output_stride_z, | |||
- | int2 | -max_dims, | +uint | +output_step_z, | |
- | int2 | -strides, | +uint | +output_offset_first_element_in_bytes | +|
+ | ) | ++ |
Performs a pooling function of pool size equal to 3.
+[in] | input_ptr | Pointer to the source image. Supported data types: QS8/QS16/F16/F32 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | input_step_z | input_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported data types: same as input_ptr |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | output_step_z | output_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 292 of file pooling_layer.cl.
+ +References calculate_avg_scale(), CONVERT_TO_TENSOR3D_STRUCT, DATA_TYPE, DIV_OP, POOL_OP, POW2_OP, Tensor3D::ptr, SQRT_OP, tensor3D_offset(), and VEC_DATA_TYPE.
+__kernel void pooling_layer_MxN_nhwc | +( | +__global uchar * | +input_ptr, | +||
+ | + | uint | +input_stride_x, | +||
+ | + | uint | +input_step_x, | +||
+ | + | uint | +input_stride_y, | +||
+ | + | uint | +input_step_y, | +||
+ | + | uint | +input_stride_z, | +||
+ | + | uint | +input_step_z, | +||
+ | + | uint | +input_offset_first_element_in_bytes, | ||
- | int2 | -paddings | +__global uchar * | +output_ptr, | +|
+ | + | uint | +output_stride_x, | +||
+ | + | uint | +output_step_x, | +||
+ | + | uint | +output_stride_y, | +||
+ | + | uint | +output_step_y, | +||
+ | + | uint | +output_stride_z, | +||
+ | + | uint | +output_step_z, | +||
+ | + | uint | +output_offset_first_element_in_bytes | ||
@@ -476,44 +958,55 @@ In case of average pooling -DPOOL_AVG must be provided otherwise max pooling wil |
Performs a pooling function of pool size equal to 3.
-Performs a pooling function of pool size equal to N (NHWC)
+[in] | input_ptr | Pointer to the source image. Supported data types: F16, F32 |
[in] | input_ptr | Pointer to the source image. Supported data types: F16/F32 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | input_step_z | input_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported data types: F16, F32 |
[out] | output_ptr | Pointer to the destination image. Supported data types: same as input_ptr |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | output_step_z | output_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | max_dims | The maximum index that can be accessed in x and y dimension (width + pad) |
[in] | strides | The pooling operation strides in each dimension |
[in] | paddings | The pooling operation paddings in each dimension |
Definition at line 118 of file pooling_layer.cl.
+Definition at line 565 of file pooling_layer.cl.
-References calculate_avg_scale(), CONVERT_TO_IMAGE_STRUCT, DATA_TYPE, offset(), POOL_OP, Image::ptr, and VEC_DATA_TYPE.
-References calculate_avg_scale_nhwc(), CONVERT_TO_TENSOR3D_STRUCT, DIV_OP_NHWC, POOL_OP, Tensor3D::ptr, SQRT_OP, tensor3D_offset(), and VEC_DATA_TYPE.
+