Skip to content

Commit

Permalink
Close #21: Fix strides calculation in vxMapTensorPatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Vorotnev committed May 19, 2020
1 parent d929202 commit 47af10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/framework/vx_tensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ VX_API_ENTRY vx_status VX_API_CALL vxMapTensorPatch(vx_tensor tensor, vx_size nu
stride[0] = ownSizeOfType(tensor->data_type);
for (vx_uint32 i = 1; i < number_of_dims; i++)
{
stride[i] = stride[i - 1] * (view_end[i] - view_start[i]);
stride[i] = stride[i - 1] * (view_end[i - 1] - view_start[i - 1]);
}
//vx_map_id * map_id, vx_size * stride, void ** ptr
size = ComputePatchSize(view_start, view_end, number_of_dims);
Expand Down

0 comments on commit 47af10a

Please sign in to comment.