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

error: ‘AT_CHECK’ was not declared in this scope #97

Closed
XunshanMan opened this issue Oct 9, 2020 · 3 comments
Closed

error: ‘AT_CHECK’ was not declared in this scope #97

XunshanMan opened this issue Oct 9, 2020 · 3 comments

Comments

@XunshanMan
Copy link

Hi, I met a problem and have solved it. Hope it helps those meeting the same problems.

Environments:

Ubuntu 16.04
Pytorch 1.6.0

Problem description:

Error comes out when running :
cd pointnet2
python setup.py install

_ext_src/include/utils.h:17:66: error: ‘AT_CHECK’ was not declared in this scope
AT_CHECK(x.is_contiguous(), #x " must be a contiguous tensor"); \

Solve Methods:

Replace the function names "AT_CHECK" to "AT_ASSERT" of the files under ./pointcloud2/.

All the files are shown as below. Recommend using VSCode to replace all of them at once.
Screenshot from 2020-10-09 23-09-13

References:
#83
erikwijmans/Pointnet2_PyTorch@1d5dca2

abahnasy added a commit to abahnasy/votenet that referenced this issue Oct 21, 2020
@hhd-shuai
Copy link

Hi, I met a problem and have solved it. Hope it helps those meeting the same problems.

Environments:

Ubuntu 16.04
Pytorch 1.6.0

Problem description:

Error comes out when running :
cd pointnet2
python setup.py install

_ext_src/include/utils.h:17:66: error: ‘AT_CHECK’ was not declared in this scope
AT_CHECK(x.is_contiguous(), #x " must be a contiguous tensor"); \

Solve Methods:

Replace the function names "AT_CHECK" to "AT_ASSERT" of the files under ./pointcloud2/.

All the files are shown as below. Recommend using VSCode to replace all of them at once.
Screenshot from 2020-10-09 23-09-13

References:
#83
erikwijmans/Pointnet2_PyTorch@1d5dca2

thanks

EricWiener added a commit to EricWiener/votenet that referenced this issue Dec 12, 2020
@XunshanMan
Copy link
Author

You're welcome, and I'll close this one.

@lijain
Copy link

lijain commented Jul 23, 2021

You're welcome, and I'll close this one.

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

3 participants