Skip to content

Commit bc47687

Browse files
committed
typo
1 parent 9436b36 commit bc47687

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

csrc/cpu/fps_cpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ torch::Tensor fps_cpu(torch::Tensor src, torch::Tensor ptr, double ratio,
1212
CHECK_CPU(src);
1313
CHECK_CPU(ptr);
1414
CHECK_INPUT(ptr.dim() == 1);
15-
AT_ASSERTM(ratio > 0 and ratio < 1, "Invalid input");
15+
AT_ASSERTM(ratio > 0 && ratio < 1, "Invalid input");
1616

1717
src = src.view({src.size(0), -1}).contiguous();
1818
ptr = ptr.contiguous();

csrc/cuda/fps_cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ torch::Tensor fps_cuda(torch::Tensor src, torch::Tensor ptr, double ratio,
6969
CHECK_CUDA(src);
7070
CHECK_CUDA(ptr);
7171
CHECK_INPUT(ptr.dim() == 1);
72-
AT_ASSERTM(ratio > 0 and ratio < 1, "Invalid input");
72+
AT_ASSERTM(ratio > 0 && ratio < 1, "Invalid input");
7373
cudaSetDevice(src.get_device());
7474

7575
src = src.view({src.size(0), -1}).contiguous();

0 commit comments

Comments
 (0)