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
MMCV
Commits
bfdd1f9c
"vscode:/vscode.git/clone" did not exist on "d493a5d523f4731457435548b255781367c1c92f"
Unverified
Commit
bfdd1f9c
authored
Apr 04, 2023
by
sherie
Committed by
GitHub
Apr 04, 2023
Browse files
[Fix] Fix boxes.scalar_type in nms_npu (#2731)
parent
bc727f71
Pipeline
#205
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/ops/csrc/pytorch/npu/nms_npu.cpp
mmcv/ops/csrc/pytorch/npu/nms_npu.cpp
+1
-1
No files found.
mmcv/ops/csrc/pytorch/npu/nms_npu.cpp
View file @
bfdd1f9c
...
...
@@ -4,7 +4,7 @@ using namespace NPU_NAME_SPACE;
using
namespace
std
;
Tensor
nms_npu
(
Tensor
boxes
,
Tensor
scores
,
float
iou_threshold
,
int
offset
)
{
TORCH_CHECK
((
boxes
.
scalar_type
==
at
::
ScalarType
::
Float
),
TORCH_CHECK
((
boxes
.
scalar_type
()
==
at
::
ScalarType
::
Float
),
"The type of boxes tensor passed in nms_npu should be float"
);
int64_t
offset_64
=
offset
;
at
::
Tensor
iou_threshold_y
=
at_npu
::
native
::
OpPreparation
::
ApplyTensor
(
...
...
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