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
7de62659
Unverified
Commit
7de62659
authored
Aug 12, 2021
by
David Fan
Committed by
GitHub
Aug 12, 2021
Browse files
Import ONNX utils from symbolic_opset11 module (#4230)
parent
7d52be76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
torchvision/ops/_register_onnx_ops.py
torchvision/ops/_register_onnx_ops.py
+2
-1
No files found.
torchvision/ops/_register_onnx_ops.py
View file @
7de62659
...
@@ -8,7 +8,8 @@ _onnx_opset_version = 11
...
@@ -8,7 +8,8 @@ _onnx_opset_version = 11
def
_register_custom_op
():
def
_register_custom_op
():
from
torch.onnx.symbolic_helper
import
parse_args
,
scalar_type_to_onnx
,
scalar_type_to_pytorch_type
,
\
from
torch.onnx.symbolic_helper
import
parse_args
,
scalar_type_to_onnx
,
scalar_type_to_pytorch_type
,
\
cast_pytorch_to_onnx
cast_pytorch_to_onnx
from
torch.onnx.symbolic_opset9
import
select
,
unsqueeze
,
squeeze
,
_cast_Long
,
reshape
from
torch.onnx.symbolic_opset9
import
_cast_Long
from
torch.onnx.symbolic_opset11
import
select
,
squeeze
,
unsqueeze
@
parse_args
(
'v'
,
'v'
,
'f'
)
@
parse_args
(
'v'
,
'v'
,
'f'
)
def
symbolic_multi_label_nms
(
g
,
boxes
,
scores
,
iou_threshold
):
def
symbolic_multi_label_nms
(
g
,
boxes
,
scores
,
iou_threshold
):
...
...
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