Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close #21: Fix strides calculation in vxMapTensorPatch #22

Open
wants to merge 1 commit into
base: openvx_1.3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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