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

Some error occur when doing the forward process #9

@staochun

Description

@staochun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions