Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
9ed2fa3c
Unverified
Commit
9ed2fa3c
authored
Apr 03, 2020
by
Francisco Massa
Committed by
GitHub
Apr 03, 2020
Browse files
Fix C++ lint (#2059)
parent
3c2c0022
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
torchvision/csrc/cpu/nms_cpu.cpp
torchvision/csrc/cpu/nms_cpu.cpp
+4
-2
No files found.
torchvision/csrc/cpu/nms_cpu.cpp
View file @
9ed2fa3c
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment