Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Some error occur when doing the forward process #9

Open
staochun opened this issue Oct 16, 2018 · 0 comments
Open

Some error occur when doing the forward process #9

staochun opened this issue Oct 16, 2018 · 0 comments

Comments

@staochun
Copy link

slice_pool_layer.slice_pool_max_forward_cuda(input, slice_idx_mat, num_slice, num_batch, channels, num_points, out, pool_mask)
ctypes.ArgumentError: argument 1: <class 'TypeError'>: Don't know how to convert parameter 1

I changed the original code of "slice_pool_layer.py" from "from _ext import slice_pool_layer" to implementing ctypes module to import "_slice_pool_layer.so" because of the ImportModuleNotFoundError (cannot find the _ext). However, I encountered the problem above. I don't know how to address it. Could you please give me some advice? Thanks a lot!
(Actually, because I am unfamiliar with CUDA programming, I initially think that maybe it is the end of some functions in "slice_pool_layer.c" and "slice_pool_layer_cuda.c", which is "return 1", that causes the problem because I see "convert parameter 1". So I modify the source code to adapt to my understanding, which in fact may be wrong. LOL.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant