Unverified Commit 7de62659 authored by David Fan's avatar David Fan Committed by GitHub
Browse files

Import ONNX utils from symbolic_opset11 module (#4230)

parent 7d52be76
...@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment