Julie-tang00 / Point-BERT

[CVPR 2022] Pre-Training 3D Point Cloud Transformers with Masked Point Modeling
MIT License
541 stars 65 forks source link

fix TORCH_CHECK_EQ macro undefined #62

Closed henryzhengr closed 1 year ago

henryzhengr commented 1 year ago

This PR fixes the error when building the emd_kernel extension with some older versions of Pytorch. The problem is caused by the previous PR #58, which change CHECK_EQ to the new TORCH_CHECK_EQ macro. However, TORCH_CHECK_EQ is only introduced in the newer version of Pytorch. See Pytorch PR 82032

tomas-aftalion commented 1 year ago

Yes, ran into the same.

Ma-Weijian commented 1 year ago

Met the same issue. But I really wonder why it also happens when using pytorch 1.12.1

yuxumin commented 1 year ago

Thanks for your contribution to the repo, we merge the commit into the master. Best!