Unverified Commit 9ed2fa3c authored by Francisco Massa's avatar Francisco Massa Committed by GitHub
Browse files

Fix C++ lint (#2059)

parent 3c2c0022
...@@ -6,9 +6,11 @@ at::Tensor nms_cpu_kernel( ...@@ -6,9 +6,11 @@ at::Tensor nms_cpu_kernel(
const at::Tensor& scores, const at::Tensor& scores,
const float iou_threshold) { const float iou_threshold) {
AT_ASSERTM(!dets.options().device().is_cuda(), "dets must be a CPU tensor"); AT_ASSERTM(!dets.options().device().is_cuda(), "dets must be a CPU tensor");
AT_ASSERTM(!scores.options().device().is_cuda(), "scores must be a CPU tensor");
AT_ASSERTM( AT_ASSERTM(
dets.scalar_type() == scores.scalar_type(), "dets should have the same type as scores"); !scores.options().device().is_cuda(), "scores must be a CPU tensor");
AT_ASSERTM(
dets.scalar_type() == scores.scalar_type(),
"dets should have the same type as scores");
if (dets.numel() == 0) if (dets.numel() == 0)
return at::empty({0}, dets.options().dtype(at::kLong)); return at::empty({0}, dets.options().dtype(at::kLong));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment