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
4676031c
Unverified
Commit
4676031c
authored
Jul 28, 2020
by
Cao Yuhang
Committed by
GitHub
Jul 28, 2020
Browse files
Move onnx op import inside symbolic (#453)
* add pat * move onnx op import to symbolic
parent
829d1e38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmcv/ops/nms.py
mmcv/ops/nms.py
+2
-1
No files found.
mmcv/ops/nms.py
View file @
4676031c
...
...
@@ -2,7 +2,6 @@ import sys
import
numpy
as
np
import
torch
from
torch.onnx.symbolic_opset9
import
select
,
squeeze
,
unsqueeze
from
mmcv.utils
import
deprecated_api_warning
from
..utils
import
ext_loader
...
...
@@ -21,6 +20,8 @@ class NMSop(torch.autograd.Function):
@
staticmethod
def
symbolic
(
g
,
bboxes
,
scores
,
iou_threshold
,
offset
):
from
torch.onnx.symbolic_opset9
import
select
,
squeeze
,
unsqueeze
boxes
=
unsqueeze
(
g
,
bboxes
,
0
)
scores
=
unsqueeze
(
g
,
unsqueeze
(
g
,
scores
,
0
),
0
)
max_output_per_class
=
g
.
op
(
...
...
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