Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions onnxoptimizer/test/ir_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import onnx
import onnx.backend.test.loader
import onnxoptimizer

Check failure on line 3 in onnxoptimizer/test/ir_test.py

View workflow job for this annotation

GitHub Actions / Ruff

Ruff (I001)

onnxoptimizer/test/ir_test.py:1:1: I001 Import block is un-sorted or un-formatted

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
2 changes: 1 addition & 1 deletion third_party/onnx
Submodule onnx updated 80 files
+25 −12 .clang-tidy
+1 −22 .github/workflows/codeql.yml
+9 −9 .github/workflows/create_release.yml
+22 −0 .github/workflows/dependency-review.yml
+11 −1 .github/workflows/lint.yml
+4 −1 .github/workflows/main.yml
+2 −2 .github/workflows/pr_checks.yml
+8 −7 .github/workflows/preview_source_dist_test.yml
+2 −2 .github/workflows/release_linux.yml
+10 −5 .github/workflows/release_mac.yml
+2 −30 .github/workflows/scorecard.yml
+13 −10 onnx/checker.h
+2 −4 onnx/common/array_ref.h
+2 −4 onnx/common/assertions.cc
+4 −6 onnx/common/assertions.h
+2 −5 onnx/common/common.h
+1 −1 onnx/common/constants.h
+2 −4 onnx/common/file_utils.h
+3 −5 onnx/common/graph_node_list.h
+3 −5 onnx/common/interned_strings.h
+18 −15 onnx/common/ir.h
+18 −7 onnx/common/ir_pb_converter.cc
+2 −4 onnx/common/ir_pb_converter.h
+3 −5 onnx/common/path.h
+2 −4 onnx/common/platform_helpers.h
+2 −4 onnx/common/proto_util.h
+2 −4 onnx/common/status.cc
+2 −4 onnx/common/status.h
+2 −4 onnx/common/tensor.h
+2 −4 onnx/common/version.h
+6 −8 onnx/common/visitor.h
+4 −4 onnx/defs/data_propagators.h
+2 −1 onnx/defs/data_type_utils.cc
+1 −1 onnx/defs/function.h
+6 −6 onnx/defs/math/defs.cc
+3 −3 onnx/defs/math/old.cc
+3 −3 onnx/defs/math/utils.cc
+3 −3 onnx/defs/math/utils.h
+3 −3 onnx/defs/parser.h
+3 −3 onnx/defs/quantization/defs.cc
+3 −3 onnx/defs/quantization/old.cc
+3 −3 onnx/defs/reduction/defs.cc
+3 −3 onnx/defs/reduction/old.cc
+3 −3 onnx/defs/reduction/utils.cc
+3 −3 onnx/defs/reduction/utils.h
+3 −3 onnx/defs/rnn/defs.cc
+3 −3 onnx/defs/rnn/old.cc
+6 −6 onnx/defs/schema.h
+3 −3 onnx/defs/sequence/defs.cc
+3 −3 onnx/defs/sequence/old.cc
+3 −3 onnx/defs/sequence/utils.cc
+3 −3 onnx/defs/sequence/utils.h
+27 −26 onnx/defs/shape_inference.h
+4 −7 onnx/defs/tensor/defs.cc
+12 −28 onnx/defs/tensor/old.cc
+2 −2 onnx/onnx_pb.h
+1 −1 onnx/shape_inference/attribute_binder.h
+4 −9 onnx/shape_inference/implementation.cc
+13 −13 onnx/shape_inference/implementation.h
+1 −1 onnx/string_utils.h
+1 −1 onnx/version_converter/adapters/Attention_24_23.h
+1 −1 onnx/version_converter/adapters/batch_normalization_13_14.h
+1 −1 onnx/version_converter/adapters/broadcast_backward_compatibility.h
+1 −1 onnx/version_converter/adapters/cast_9_8.h
+1 −1 onnx/version_converter/adapters/compatible.h
+1 −1 onnx/version_converter/adapters/gemm_6_7.h
+1 −1 onnx/version_converter/adapters/gemm_7_6.h
+1 −1 onnx/version_converter/adapters/gridsample_19_20.h
+1 −1 onnx/version_converter/adapters/maxpool_8_7.h
+1 −1 onnx/version_converter/adapters/no_previous_version.h
+2 −2 onnx/version_converter/adapters/q_dq_21_20.h
+1 −1 onnx/version_converter/adapters/remove_consumed_inputs.h
+1 −1 onnx/version_converter/adapters/scan_8_9.h
+1 −1 onnx/version_converter/adapters/scan_9_8.h
+2 −2 onnx/version_converter/adapters/softmax_13_12.h
+1 −1 onnx/version_converter/adapters/split_17_18.h
+1 −1 onnx/version_converter/adapters/sum_8_7.h
+1 −1 onnx/version_converter/adapters/type_restriction.h
+1 −1 onnx/version_converter/adapters/upsample_6_7.h
+2 −3 onnx/version_converter/convert.h
Loading