diff options
Diffstat (limited to 'src/core/CL/cl_kernels/bounding_box_transform.cl')
-rw-r--r-- | src/core/CL/cl_kernels/bounding_box_transform.cl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/CL/cl_kernels/bounding_box_transform.cl b/src/core/CL/cl_kernels/bounding_box_transform.cl index d33018847e..14a0fadc2f 100644 --- a/src/core/CL/cl_kernels/bounding_box_transform.cl +++ b/src/core/CL/cl_kernels/bounding_box_transform.cl @@ -28,11 +28,11 @@ /** Perform a padded copy of input tensor to the output tensor. Padding values are defined at compile time * * @attention The following variables must be passed at compile time: - * -# -DDATA_TYPE = Tensor data type. Supported data types: F16/F32 + * -# -DDATA_TYPE= Tensor data type. Supported data types: F16/F32 * -# -DWEIGHT{X,Y,W,H}= Weights [wx, wy, ww, wh] for the deltas * -# -DIMG_WIDTH= Original image width * -# -DIMG_HEIGHT= Original image height - * -# -DBOX_FIELDS=Number of fields that are used to represent a box in boxes + * -# -DBOX_FIELDS= Number of fields that are used to represent a box in boxes * * @param[in] boxes_ptr Pointer to the boxes tensor. Supported data types: F16/F32 * @param[in] boxes_stride_x Stride of the boxes tensor in X dimension (in bytes) @@ -97,7 +97,7 @@ __kernel void bounding_box_transform( // Useful vector constant definitions const VEC_DATA_TYPE(DATA_TYPE, 4) - max_values = (VEC_DATA_TYPE(DATA_TYPE, 4))(IMG_WIDTH, IMG_HEIGHT, IMG_WIDTH, IMG_HEIGHT); + max_values = (VEC_DATA_TYPE(DATA_TYPE, 4))(IMG_WIDTH - 1, IMG_HEIGHT - 1, IMG_WIDTH - 1, IMG_HEIGHT - 1); const VEC_DATA_TYPE(DATA_TYPE, 4) sign = (VEC_DATA_TYPE(DATA_TYPE, 4))(-1, -1, 1, 1); const VEC_DATA_TYPE(DATA_TYPE, 4) |