26 #if defined(FIXED_POINT_POSITION) 28 #endif // FIXED_POINT_POSITION 30 #if defined(DATA_TYPE) 58 __kernel
void reshape_to_columns(
64 uint width, uint height, uint depth, uint total_filters)
67 bool is_last_thread = (get_global_id(0) == (get_global_size(0) - 1) && get_global_id(1) == (get_global_size(1) - 1) && get_global_id(2) == (get_global_size(2) - 1));
69 __global uchar *tmp_src_ptr = src.
ptr;
70 __global uchar *tmp_dst_ptr = dst_ptr + dst_offset_first_element_in_bytes + get_global_id(0) * dst_stride_y + get_global_id(1) * width * dst_stride_y + get_global_id(
71 2) * width * height * dst_stride_y;
73 __global uchar *tmp_bias_ptr = bias_ptr + bias_offset_first_element_in_bytes;
78 for(uint i = 0; i < total_filters; ++i)
83 *((__global
DATA_TYPE *)(tmp_dst_ptr + dst_stride_y)) = *((__global
DATA_TYPE *)(tmp_bias_ptr));
84 tmp_bias_ptr += bias_stride_x;
86 tmp_src_ptr += depth * src_stride_z;
87 tmp_dst_ptr += dst_stride_x;
92 for(uint i = 0; i < total_filters; ++i)
95 tmp_src_ptr += depth * src_stride_z;
96 tmp_dst_ptr += dst_stride_x;
100 #endif // defined(DATA_TYPE) #define CONVERT_TO_TENSOR3D_STRUCT(name)
#define IMAGE_DECLARATION(name)
Structure to hold 3D tensor information.
#define VECTOR_DECLARATION(name)
#define TENSOR3D_DECLARATION(name)
__global uchar * ptr
Pointer to the starting postion of the buffer.
convolution configure & src