File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ at::Tensor create_texture_image_cuda(
10
10
11
11
// C++ interface
12
12
13
- #define CHECK_CUDA (x ) AT_CHECK (x.type().is_cuda(), #x " must be a CUDA tensor" )
14
- #define CHECK_CONTIGUOUS (x ) AT_CHECK (x.is_contiguous(), #x " must be contiguous" )
13
+ #define CHECK_CUDA (x ) TORCH_CHECK (x.type().is_cuda(), #x " must be a CUDA tensor" )
14
+ #define CHECK_CONTIGUOUS (x ) TORCH_CHECK (x.is_contiguous(), #x " must be contiguous" )
15
15
#define CHECK_INPUT (x ) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
16
16
17
17
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ at::Tensor load_textures_cuda(
10
10
11
11
// C++ interface
12
12
13
- #define CHECK_CUDA (x ) AT_CHECK (x.type().is_cuda(), #x " must be a CUDA tensor" )
14
- #define CHECK_CONTIGUOUS (x ) AT_CHECK (x.is_contiguous(), #x " must be contiguous" )
13
+ #define CHECK_CUDA (x ) TORCH_CHECK (x.type().is_cuda(), #x " must be a CUDA tensor" )
14
+ #define CHECK_CONTIGUOUS (x ) TORCH_CHECK (x.is_contiguous(), #x " must be contiguous" )
15
15
#define CHECK_INPUT (x ) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
16
16
17
17
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ std::vector<at::Tensor> backward_soft_rasterize_cuda(
51
51
52
52
// C++ interface
53
53
54
- #define CHECK_CUDA (x ) AT_CHECK (x.type().is_cuda(), #x " must be a CUDA tensor" )
55
- #define CHECK_CONTIGUOUS (x ) AT_CHECK (x.is_contiguous(), #x " must be contiguous" )
54
+ #define CHECK_CUDA (x ) TORCH_CHECK (x.type().is_cuda(), #x " must be a CUDA tensor" )
55
+ #define CHECK_CONTIGUOUS (x ) TORCH_CHECK (x.is_contiguous(), #x " must be contiguous" )
56
56
#define CHECK_INPUT (x ) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
57
57
58
58
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ std::vector<at::Tensor> voxelize_sub4_cuda(
29
29
30
30
// C++ interface
31
31
32
- #define CHECK_CUDA (x ) AT_CHECK (x.type().is_cuda(), #x " must be a CUDA tensor" )
33
- #define CHECK_CONTIGUOUS (x ) AT_CHECK (x.is_contiguous(), #x " must be contiguous" )
32
+ #define CHECK_CUDA (x ) TORCH_CHECK (x.type().is_cuda(), #x " must be a CUDA tensor" )
33
+ #define CHECK_CONTIGUOUS (x ) TORCH_CHECK (x.is_contiguous(), #x " must be contiguous" )
34
34
#define CHECK_INPUT (x ) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
35
35
36
36
You can’t perform that action at this time.
0 commit comments