diff --git a/onnxoptimizer/test/ir_test.py b/onnxoptimizer/test/ir_test.py new file mode 100644 index 000000000..455cb759c --- /dev/null +++ b/onnxoptimizer/test/ir_test.py @@ -0,0 +1,16 @@ +# Copyright (c) ONNX Project Contributors +# +# SPDX-License-Identifier: Apache-2.0 + +import onnx +import onnx.backend.test.loader + +import onnxoptimizer + + +def test_seq_type(): + orig = onnx.load( + onnx.backend.test.loader.DATA_DIR + "/node/test_sequence_insert_at_back/model.onnx" + ) + optimized = onnxoptimizer.optimize(orig) + assert optimized.graph.input[0].type == orig.graph.input[0].type diff --git a/third_party/onnx b/third_party/onnx index 9c31fa6d3..82d3af2e7 160000 --- a/third_party/onnx +++ b/third_party/onnx @@ -1 +1 @@ -Subproject commit 9c31fa6d39400d444c6b1a4de2a247ad32174f63 +Subproject commit 82d3af2e77e15207b9e753b35d17141c208e840a