Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
unknownuser6666
/
R2SE_model
like
0
arxiv:
2506.09800
Model card
Files
Files and versions
xet
Community
main
R2SE_model
/
mmdet3d_plugin
/
ops
/
iou_loss
/
src
/
utils.h
unknownuser6666
Upload folder using huggingface_hub
663494c
verified
3 months ago
raw
Copy download link
history
blame
contribute
delete
1.54 kB
#
pragma
once
#
include
<ATen/cuda/CUDAContext.h>
#
include
<torch/extension.h>
#
define
CHECK_CUDA(x) \
do { \
TORCH_CHECK(x.is_cuda(), #x
" must be a CUDA tensor"
); \
} while (0)
#
define
CHECK_CONTIGUOUS(x) \
do { \
TORCH_CHECK(x.is_contiguous(), #x
" must ne a contiguous tensor"
); \
} while (0)
#
define
CHECK_IS_INT(x) \
do { \
TORCH_CHECK(x.scalar_type()==at::ScalarType::Int, \
#x
" must be a int tensor"
); \
} while (0)
#
define
CHECK_IS_FLOAT(x) \
do { \
TORCH_CHECK(x.scalar_type()==at::ScalarType::Float, \
#x
" must be a float tensor"
); \
} while (0)
#
define
CHECK_IS_BOOL(x) \
do { \
TORCH_CHECK(x.scalar_type()==at::ScalarType::Bool, \
#x
" must be a bool tensor"
); \
} while (0)