54 #if defined(DATA_TYPE) && defined(WIDTH) && defined(HEIGHT) && defined(NUM_ANCHORS) && defined(STRIDE) && defined(NUM_ROI_FIELDS) && defined(OFFSET) && defined(SCALE) 55 __kernel
void generate_proposals_compute_all_anchors_quantized(
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;
70 const float shift_x = (float)(shift_idx % WIDTH) * STRIDE;
71 const float shift_y = (float)(shift_idx / WIDTH) * STRIDE;
74 shift = (
VEC_DATA_TYPE(
float, NUM_ROI_FIELDS))(shift_x, shift_y, shift_x, shift_y);
82 shifted_anchor = anchor + shift;
87 #endif //defined(DATA_TYPE) && defined(WIDTH) && defined(HEIGHT) && defined(NUM_ANCHORS) && defined(STRIDE) && defined(NUM_ROI_FIELDS) && defined(OFFSET) && defined(SCALE) Structure to hold Vector information.
#define CONVERT_TO_VECTOR_STRUCT(name)
#define DEQUANTIZE(input, offset, scale, type, size)
#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 QUANTIZE(input, offset, scale, type, size)
#define CONVERT_TO_VECTOR_STRUCT_NO_STEP(name)
#define VEC_DATA_TYPE(type, size)