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

fix: support latest pytorch version and spconv version #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OrangeSodahub
Copy link

@OrangeSodahub OrangeSodahub commented Jan 12, 2023

Fix following errors when build pcdet (support newer pytorch version):

src/ball_query.cpp:22:27: error: ‘THCState_getCurrentStream’ was not declared in this scope
   22 |     cudaStream_t stream = THCState_getCurrentStream(state);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
src/roipool3d.cpp: In function ‘int roipool3d_cpu(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor)’:
src/roipool3d.cpp:6:29: error: ‘AT_CHECK’ was not declared in this scope; did you mean ‘DCHECK’?
    6 | #define CHECK_CONTIGUOUS(x) AT_CHECK(x.is_contiguous(), #x, " must be contiguous ")
      |                             ^~~~~~~~
src/roipool3d.cpp:6:29: note: in definition of macro ‘CHECK_CONTIGUOUS’
    6 | #define CHECK_CONTIGUOUS(x) AT_CHECK(x.is_contiguous(), #x, " must be contiguous ")
      |                             ^~~~~~~~

Fix AttributeError due to spconv v2:

AttributeError: module 'spconv' has no attribute 'SparseModule'

@OrangeSodahub OrangeSodahub changed the title fix: support latest pytorch version fix: support latest pytorch version and spconv version Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant