Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions torchvision/csrc/ops/quantized/cpu/qnms_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ at::Tensor qnms_kernel(
" and ",
scores.size(0));

TORCH_WARN_ONCE(
"Quantized NMS support is deprecated since torchvision 0.27 and will ",
"be removed in torchvision 0.28. Please dequantize your tensors before ",
"calling NMS.");

auto result = at::empty({0});

AT_DISPATCH_QINT_TYPES(dets.scalar_type(), "qnms_kernel", [&] {
Expand Down
5 changes: 5 additions & 0 deletions torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ at::Tensor qroi_align_forward_kernel(
input.size(0) == 1,
"Only one image per batch is allowed in roi_align when quantized tensors are passed.");

TORCH_WARN_ONCE(
"Quantized roi_align support is deprecated since torchvision 0.27 and ",
"will be removed in torchvision 0.28. Please dequantize your tensors ",
"before calling roi_align.");

at::TensorArg input_t{input, "input", 1}, rois_t{rois, "rois", 2};

at::CheckedFrom c = "qroi_align_forward_kernel";
Expand Down
Loading