X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=documentation%2Fpooling__layer_8cl.xhtml;h=ec758408a1430967e2d2687e1b1a41095388ef5d;hb=HEAD;hp=1be3ec2ae469c65a814ef68b0fa016640ebe173c;hpb=8140e1e155d3430992fa46e04ef8938ff09ffd2d;p=platform%2Fupstream%2Farmcl.git diff --git a/documentation/pooling__layer_8cl.xhtml b/documentation/pooling__layer_8cl.xhtml index 1be3ec2..ec75840 100644 --- a/documentation/pooling__layer_8cl.xhtml +++ b/documentation/pooling__layer_8cl.xhtml @@ -40,7 +40,7 @@
Functions | |
DATA_TYPE | 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) |
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... | |
Definition at line 60 of file pooling_layer.cl.
-Referenced by pooling_layer_2(), and pooling_layer_3().
+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 49 of file pooling_layer.cl.
-Referenced by pooling_layer_2(), and pooling_layer_3().
+Referenced by pooling_layer_2(), pooling_layer_3(), and pooling_layer_MxN_nhwc().
@@ -243,7 +280,7 @@ FunctionsDefinition at line 73 of file pooling_layer.cl.
+Definition at line 75 of file pooling_layer.cl.
Definition at line 116 of file pooling_layer.cl.
+Definition at line 118 of file pooling_layer.cl.
Definition at line 156 of file pooling_layer.cl.
+Definition at line 158 of file pooling_layer.cl.
@@ -346,7 +383,7 @@ FunctionsDefinition at line 57 of file pooling_layer.cl.
-Referenced by pooling_layer_2(), and pooling_layer_3().
+Referenced by pooling_layer_2(), and pooling_layer_3().
@@ -366,12 +403,12 @@ FunctionsDefinition at line 61 of file pooling_layer.cl.
-Referenced by pooling_layer_2(), and pooling_layer_3().
+Referenced by pooling_layer_2(), pooling_layer_3(), and pooling_layer_MxN_nhwc().
DATA_TYPE calculate_avg_scale | ( | const int | -pool_size, | +pool_size_x, | + +
+ | + | const int | +pool_size_y, |
@@ -425,13 +468,83 @@ Functions |
Definition at line 186 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().
+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().
+Definition at line 226 of file pooling_layer.cl.
+Definition at line 228 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.
-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.
+Definition at line 290 of file pooling_layer.cl.
+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.
-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, | +
+ | + | __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)
+[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: 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 565 of file pooling_layer.cl.
+ +References calculate_avg_scale_nhwc(), CONVERT_TO_TENSOR3D_STRUCT, DIV_OP_NHWC, POOL_OP, Tensor3D::ptr, SQRT_OP, tensor3D_offset(), and VEC_DATA_TYPE.
+