Skip to content

Commit

Permalink
Remove reference to internals in torch.onnx in test (#17550)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby authored Sep 19, 2023
1 parent f969e7f commit d350ab3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions onnxruntime/test/python/test_pytorch_export_contrib_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ def to_numpy(tensor):
# These set of tests verify ONNX model export and compares outputs between
# PyTorch and ORT.
class ONNXExporterTest(unittest.TestCase):
from torch.onnx.symbolic_helper import _export_onnx_opset_version

opset_version = _export_onnx_opset_version
opset_version = 17
keep_initializers_as_inputs = True # For IR version 3 type export.

def setUp(self):
Expand Down

0 comments on commit d350ab3

Please sign in to comment.