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
Pytorch-Encoding
Commits
90c6a951
Unverified
Commit
90c6a951
authored
Mar 15, 2020
by
Hang Zhang
Committed by
GitHub
Mar 15, 2020
Browse files
1.4.0 patch (#246)
parent
ae218bf9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
encoding/lib/cpu/nms_cpu.cpp
encoding/lib/cpu/nms_cpu.cpp
+2
-2
encoding/lib/gpu/nms_kernel.cu
encoding/lib/gpu/nms_kernel.cu
+2
-2
No files found.
encoding/lib/cpu/nms_cpu.cpp
View file @
90c6a951
...
...
@@ -32,8 +32,8 @@ std::vector<at::Tensor> Non_Max_Suppression_CPU(
AT_ASSERT
(
input
.
size
(
2
)
==
4
);
AT_ASSERT
(
input
.
is_contiguous
());
AT_ASSERT
(
scores
.
is_contiguous
());
AT_ASSERT
(
input
.
type
().
scalarType
()
==
at
::
kFloat
||
input
.
type
().
scalarType
()
==
at
::
kDouble
)
AT_ASSERT
(
scores
.
type
().
scalarType
()
==
at
::
kFloat
||
scores
.
type
().
scalarType
()
==
at
::
kDouble
)
AT_ASSERT
(
input
.
type
().
scalarType
()
==
at
::
kFloat
||
input
.
type
().
scalarType
()
==
at
::
kDouble
)
;
AT_ASSERT
(
scores
.
type
().
scalarType
()
==
at
::
kFloat
||
scores
.
type
().
scalarType
()
==
at
::
kDouble
)
;
AT_ASSERT
(
input
.
is_contiguous
());
AT_ASSERT
(
scores
.
is_contiguous
());
...
...
encoding/lib/gpu/nms_kernel.cu
View file @
90c6a951
...
...
@@ -71,8 +71,8 @@ std::vector<at::Tensor> Non_Max_Suppression_CUDA(
AT_ASSERT
(
input
.
size
(
2
)
==
4
);
AT_ASSERT
(
input
.
is_contiguous
());
AT_ASSERT
(
scores
.
is_contiguous
());
AT_ASSERT
(
input
.
type
().
scalarType
()
==
at
::
kFloat
||
input
.
type
().
scalarType
()
==
at
::
kDouble
)
AT_ASSERT
(
scores
.
type
().
scalarType
()
==
at
::
kFloat
||
scores
.
type
().
scalarType
()
==
at
::
kDouble
)
AT_ASSERT
(
input
.
type
().
scalarType
()
==
at
::
kFloat
||
input
.
type
().
scalarType
()
==
at
::
kDouble
)
;
AT_ASSERT
(
scores
.
type
().
scalarType
()
==
at
::
kFloat
||
scores
.
type
().
scalarType
()
==
at
::
kDouble
)
;
auto
num_boxes
=
input
.
size
(
1
);
auto
batch_size
=
input
.
size
(
0
);
...
...
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