RSNet icon indicating copy to clipboard operation
RSNet copied to clipboard

Some error occur when doing the forward process

Open staochun opened this issue 7 years ago • 0 comments

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.)

staochun avatar Oct 16 '18 10:10 staochun