Compute Library
 22.11
deconvolution_layer.cl File Reference
#include "helpers.h"

Go to the source code of this file.

Functions

__kernel void deconvolution_upsample (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_stride_z, uint src_step_z, uint src_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_stride_z, uint dst_step_z, uint dst_offset_first_element_in_bytes)
 This function applies upsample on an input image. More...
 

Function Documentation

◆ deconvolution_upsample()

__kernel void deconvolution_upsample ( __global uchar *  src_ptr,
uint  src_stride_x,
uint  src_step_x,
uint  src_stride_y,
uint  src_step_y,
uint  src_stride_z,
uint  src_step_z,
uint  src_offset_first_element_in_bytes,
__global uchar *  dst_ptr,
uint  dst_stride_x,
uint  dst_step_x,
uint  dst_stride_y,
uint  dst_step_y,
uint  dst_stride_z,
uint  dst_step_z,
uint  dst_offset_first_element_in_bytes 
)

This function applies upsample on an input image.

Parameters
[in]src_ptrPointer to the source image. Supported data types: All.
[in]src_stride_xStride of the source image in X dimension (in bytes)
[in]src_step_xsrc_stride_x * number of elements along X processed per workitem(in bytes)
[in]src_stride_yStride of the source image in Y dimension (in bytes)
[in]src_step_ysrc_stride_y * number of elements along Y processed per workitem(in bytes)
[in]src_stride_zStride of the source tensor in Z dimension (in bytes)
[in]src_step_zsrc_stride_z * number of elements along Z processed per workitem(in bytes)
[in]src_offset_first_element_in_bytesThe offset of the first element in the source image
[out]dst_ptrPointer to the destination image. Supported data types: same as src_ptr
[in]dst_stride_xStride of the destination image in X dimension (in bytes)
[in]dst_step_xdst_stride_x * number of elements along X processed per workitem(in bytes)
[in]dst_stride_yStride of the destination image in Y dimension (in bytes)
[in]dst_step_ydst_stride_y * number of elements along Y processed per workitem(in bytes)
[in]dst_stride_zStride of the source tensor in Z dimension (in bytes)
[in]dst_step_zdst_stride_z * number of elements along Z processed per workitem(in bytes)
[in]dst_offset_first_element_in_bytesThe offset of the first element in the destination image

Definition at line 45 of file deconvolution_layer.cl.

References bias, CONVERT_TO_TENSOR3D_STRUCT, CONVERT_TO_TENSOR3D_STRUCT_NO_STEP, CONVERT_TO_VECTOR_STRUCT_NO_STEP, arm_compute::test::validation::dst, Tensor3D::ptr, arm_compute::test::validation::src, TENSOR3D_DECLARATION, tensor3D_offset(), VECTOR_DECLARATION, and vector_offset().

48 {
51 
52  // Store result
53  *((__global DATA_TYPE *)dst.ptr) = *((__global DATA_TYPE *)src.ptr);
54 }
Structure to hold 3D tensor information.
Definition: helpers.h:906
SimpleTensor< float > src
Definition: DFT.cpp:155
#define CONVERT_TO_TENSOR3D_STRUCT(name)
Definition: helpers.h:870
__global uchar * ptr
Pointer to the starting postion of the buffer.
Definition: helpers.h:908