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

Fixes to build on pytorch master and python 3.7 #286

Merged
merged 4 commits into from
Aug 29, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fixed dereferencing incomplete type compile error in nms_cuda layer
The `dereferencing pointer to incomplete type ‘THTensor {aka struct
THTensor}’` error is fixed in the nms_cuda layer. The pointer
references are changed to functions.
  • Loading branch information
ahmed-shariff committed Aug 29, 2018
commit b0406a8cdc0db8b005557135014fc4677e317e79
4 changes: 2 additions & 2 deletions lib/model/nms/src/nms_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ int nms_cuda(THCudaIntTensor *keep_out, THCudaTensor *boxes_host,
nms_cuda_compute(THCudaIntTensor_data(state, keep_out),
THCudaIntTensor_data(state, num_out),
THCudaTensor_data(state, boxes_host),
boxes_host->size[0],
boxes_host->size[1],
THCudaTensor_size(state, boxes_host, 0),
THCudaTensor_size(state, boxes_host, 1),
nms_overlap_thresh);

return 1;
Expand Down