54 #if defined(DATA_TYPE) && defined(WIDTH) && defined(HEIGHT) && defined(NUM_ANCHORS) && defined(STRIDE) && defined(NUM_ROI_FIELDS) 55 __kernel
void generate_proposals_compute_all_anchors(
62 const size_t idx = get_global_id(0);
64 const size_t anchor_idx = idx % NUM_ANCHORS;
67 const size_t shift_idx = idx / NUM_ANCHORS;
71 shift_x = (
DATA_TYPE)(shift_idx % WIDTH) * STRIDE;
73 shift_y = (
DATA_TYPE)(shift_idx / WIDTH) * STRIDE;
84 shifted_anchor = anchor + shift;
86 vstore4(shifted_anchor, 0, (__global
DATA_TYPE *)rois.
ptr);
88 #endif //defined(DATA_TYPE) && defined(WIDTH) && defined(HEIGHT) && defined(NUM_ANCHORS) && defined(STRIDE) && defined(NUM_ROI_FIELDS) Structure to hold Vector information.
#define CONVERT_TO_VECTOR_STRUCT(name)
#define VECTOR_DECLARATION(name)
__global uchar * ptr
Pointer to the starting postion of the buffer.
__global const uchar * vector_offset(const Vector *vec, int x)
Get the pointer position of a Vector.
#define CONVERT_TO_VECTOR_STRUCT_NO_STEP(name)
#define VEC_DATA_TYPE(type, size)