Skip to content

Commit 47af10a

Browse files
author
Dmitry Vorotnev
committed
Close #21: Fix strides calculation in vxMapTensorPatch
1 parent d929202 commit 47af10a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sample/framework/vx_tensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ VX_API_ENTRY vx_status VX_API_CALL vxMapTensorPatch(vx_tensor tensor, vx_size nu
632632
stride[0] = ownSizeOfType(tensor->data_type);
633633
for (vx_uint32 i = 1; i < number_of_dims; i++)
634634
{
635-
stride[i] = stride[i - 1] * (view_end[i] - view_start[i]);
635+
stride[i] = stride[i - 1] * (view_end[i - 1] - view_start[i - 1]);
636636
}
637637
//vx_map_id * map_id, vx_size * stride, void ** ptr
638638
size = ComputePatchSize(view_start, view_end, number_of_dims);

0 commit comments

Comments
 (0)