Repository Analysis

onnx/onnx

Open standard for machine learning interoperability

13.2 Low AI signal View on GitHub
13.2
Adjusted Score
13.2
Raw Score
100%
Time Factor
2026-05-29
Last Push
20,910
Stars
Python
Language
164,634
Lines of Code
818
Files
2053
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 90MEDIUM 32LOW 1931

Pattern Findings

2053 matches across 14 categories. Click a row to expand file-level details.

Unused Imports849 hits · 720 pts
SeverityFileLineSnippet
LOWtools/pixi-shim.py15
LOWtools/gen_coverage_report.py6
LOWtools/pretty_clang_tidy.py5
LOWtools/check_namespace.py10
LOWonnx/model_container.py8
LOWonnx/gen_proto.py6
LOWonnx/version.py10
LOWonnx/version.py14
LOWonnx/compose.py4
LOWonnx/__init__.py5
LOWonnx/__init__.py82
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py88
LOWonnx/__init__.py125
LOWonnx/__init__.py125
LOWonnx/__init__.py126
LOWonnx/__init__.py126
LOWonnx/__init__.py126
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/__init__.py130
LOWonnx/parser.py4
LOWonnx/shape_inference.py10
LOWonnx/utils.py4
789 more matches not shown…
Hyper-Verbose Identifiers886 hits · 718 pts
SeverityFileLineSnippet
LOWonnx/model_container.py120 def is_in_memory_external_initializer(self, name: str) -> bool:
LOWonnx/__init__.py462def _operator_set_protos_repr(protos: Sequence[OperatorSetIdProto]) -> str:
LOWonnx/shape_inference.py159def infer_function_output_types(
LOWonnx/utils.py66 def _dfs_search_reachable_nodes(
LOWonnx/utils.py109 def _collect_referred_local_functions(
LOWonnx/utils.py132 def _collect_reachable_tensors(
LOWonnx/helper.py84def _create_op_set_id_version_map(table: VersionTableType) -> VersionMapType:
LOWonnx/helper.py757def make_empty_tensor_value_info(name: str) -> ValueInfoProto:
LOWonnx/helper.py826def make_sparse_tensor_type_proto(
LOWonnx/helper.py871def make_sparse_tensor_value_info(
LOWonnx/helper.py949def make_tensor_sequence_value_info(
LOWonnx/helper.py1261def tensor_dtype_to_storage_tensor_dtype(tensor_dtype: int) -> int:
LOWonnx/inliner.py30def inline_selected_functions(
LOWonnx/external_data_helper.py109def _validate_external_data_file_bounds(
LOWonnx/external_data_helper.py144def load_external_data_for_tensor(tensor: TensorProto, base_dir: str) -> None:
LOWonnx/external_data_helper.py160def load_external_data_for_model(model: ModelProto, base_dir: str) -> None:
LOWonnx/external_data_helper.py204def convert_model_to_external_data(
LOWonnx/external_data_helper.py262def convert_model_from_external_data(model: ModelProto) -> None:
LOWonnx/external_data_helper.py317def _recursive_attribute_processor(
LOWonnx/external_data_helper.py328def _get_initializer_tensors_from_graph(graph: GraphProto, /) -> Iterable[TensorProto]:
LOWonnx/external_data_helper.py343def _get_attribute_tensors_from_graph(
LOWonnx/external_data_helper.py379def remove_external_data_field(tensor: TensorProto, field_key: str) -> None:
LOWonnx/external_data_helper.py393def write_external_data_tensors(model: ModelProto, filepath: str) -> ModelProto:
LOWonnx/serialization.py82 def get_format_from_file_extension(self, file_extension: str) -> str | None:
LOWonnx/tools/net_drawer.py45def _form_and_sanitize_docstring(s: str) -> str:
LOWonnx/tools/replace_constants.py71def _replace_constant_of_shape_with_range(
LOWonnx/tools/replace_constants.py157def _replace_constant_of_shape_value(
LOWonnx/tools/replace_constants.py210def replace_initializer_by_constant_of_shape( # noqa: PLR0911
LOWonnx/tools/update_model_dims.py12def update_inputs_outputs_dims(
LOWonnx/test/checker_test.py441 def test_check_tensor_zero_elem(self) -> None:
LOWonnx/test/checker_test.py445 def test_check_removed_experimental_op(self) -> None:
LOWonnx/test/checker_test.py449 def test_skip_schema_check_on_non_standard_domain(self) -> None:
LOWonnx/test/checker_test.py467 def test_check_sparse_tensor_invalid_index(self) -> None:
LOWonnx/test/checker_test.py472 def test_check_sparse_tensor_unordered(self) -> None:
LOWonnx/test/checker_test.py477 def test_check_sparse_tensor_coo_format(self) -> None:
LOWonnx/test/checker_test.py481 def test_check_sparse_tensor_coo_format_invalid_index(self) -> None:
LOWonnx/test/checker_test.py485 def test_check_sparse_tensor_coo_format_invalid_shape(self) -> None:
LOWonnx/test/checker_test.py66 def test_check_node_input_marked_optional(self) -> None:
LOWonnx/test/checker_test.py79 def test_check_function_nested(self) -> None:
LOWonnx/test/checker_test.py196 def test_check_graph_empty_initializer_name(self) -> None:
LOWonnx/test/checker_test.py211 def test_check_graph_empty_sparse_initializer_name(self) -> None:
LOWonnx/test/checker_test.py226 def test_check_graph_duplicate_init_names(self) -> None:
LOWonnx/test/checker_test.py244 def test_check_graph_optional_input(self) -> None:
LOWonnx/test/checker_test.py270 def test_check_graph_topologically_sorted(self) -> None:
LOWonnx/test/checker_test.py294 def test_check_serialized_model(self) -> None:
LOWonnx/test/checker_test.py306 def test_check_model_protobuf_size_boundary(self) -> None:
LOWonnx/test/checker_test.py320 def test_check_model_protobuf_size_over_limit_raises(self) -> None:
LOWonnx/test/checker_test.py370 def test_check_tensor_mismatched_field(self) -> None:
LOWonnx/test/checker_test.py402 def test_nested_graph_without_subgraph_input_shape(self) -> None:
LOWonnx/test/checker_test.py510 def test_check_model_unsupported_input_type(self) -> None:
LOWonnx/test/checker_test.py523 def test_check_model_inconsistent_type(self) -> None:
LOWonnx/test/checker_test.py536 def test_check_model_unsupported_output_type(self) -> None:
LOWonnx/test/checker_test.py1071 def test_empty_list_attribute(self):
LOWonnx/test/checker_test.py1101 def test_check_model_supports_unicode_path(self):
LOWonnx/test/checker_test.py1117 def test_graph_output_is_defined(self):
LOWonnx/test/checker_test.py1130 def test_graph_output_is_defined_within_sub_graph(self):
LOWonnx/test/checker_test.py1150 def test_check_model_rejects_self_recursive_function(self) -> None:
LOWonnx/test/checker_test.py1163 def test_check_model_rejects_indirect_cycle(self) -> None:
LOWonnx/test/checker_test.py1178 def test_check_tensor_invalid_dims(self) -> None:
LOWonnx/test/model_container_refeval_test.py88 def common_check_reference_evaluator(self, container):
826 more matches not shown…
Cross-File Repetition85 hits · 425 pts
SeverityFileLineSnippet
HIGHonnx/test/checker_test.py0<ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opset
HIGHonnx/test/inliner_test.py0<ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opset
HIGHonnx/test/shape_inference_test.py0<ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opset
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2]
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2]
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2]
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2]
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2]
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2]
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axis
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axis
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31]
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31]
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31]
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31]
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31]
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31]
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10]
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10]
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10]
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10]
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10]
25 more matches not shown…
Deep Nesting97 hits · 96 pts
SeverityFileLineSnippet
LOWtools/check_namespace.py15
LOWonnx/gen_proto.py41
LOWonnx/compose.py91
LOWonnx/compose.py446
LOWonnx/compose.py569
LOWonnx/compose.py221
LOWonnx/numpy_helper.py306
LOWonnx/numpy_helper.py385
LOWonnx/numpy_helper.py547
LOWonnx/helper.py84
LOWonnx/helper.py363
LOWonnx/helper.py506
LOWonnx/helper.py568
LOWonnx/helper.py606
LOWonnx/helper.py763
LOWonnx/helper.py826
LOWonnx/helper.py969
LOWonnx/helper.py1207
LOWonnx/external_data_helper.py204
LOWonnx/external_data_helper.py58
LOWonnx/tools/replace_constants.py210
LOWonnx/test/reference_evaluator_test.py237
LOWonnx/test/test_backend_test.py38
LOWonnx/test/test_backend_reference.py29
LOWonnx/test/shape_inference_test.py178
LOWonnx/test/compose_test.py486
LOWonnx/test/compose_test.py620
LOWonnx/test/model_container_test.py115
LOW…st/version_converter/automatic_conversion_test_base.py43
LOWonnx/backend/test/stat_coverage.py40
LOWonnx/backend/test/stat_coverage.py152
LOWonnx/backend/test/cmd_tools.py20
LOWonnx/backend/test/runner/__init__.py123
LOWonnx/backend/test/runner/__init__.py254
LOWonnx/backend/test/runner/__init__.py341
LOWonnx/backend/test/runner/__init__.py504
LOWonnx/backend/test/runner/__init__.py346
LOWonnx/backend/test/loader/__init__.py16
LOWonnx/backend/test/case/node/cast.py27
LOWonnx/backend/test/case/node/cast.py321
LOWonnx/backend/test/case/node/__init__.py37
LOWonnx/backend/test/case/node/__init__.py264
LOWonnx/backend/test/case/node/scatternd.py13
LOWonnx/backend/test/case/node/scatterelements.py19
LOWonnx/backend/test/case/node/castlike.py23
LOWonnx/backend/test/report/coverage.py147
LOWonnx/reference/op_run.py157
LOWonnx/reference/op_run.py232
LOWonnx/reference/op_run.py387
LOWonnx/reference/reference_evaluator.py195
LOWonnx/reference/reference_evaluator.py395
LOWonnx/reference/ops_optimized/op_conv_optimized.py50
LOWonnx/reference/ops/op_scatter_elements.py11
LOWonnx/reference/ops/op_constant.py71
LOWonnx/reference/ops/op_roi_align.py28
LOWonnx/reference/ops/op_roi_align.py117
LOWonnx/reference/ops/op_grid_sample.py286
LOWonnx/reference/ops/op_sequence_insert.py41
LOWonnx/reference/ops/op_conv.py11
LOWonnx/reference/ops/_op_common_pool.py64
37 more matches not shown…
Over-Commented Block83 hits · 81 pts
SeverityFileLineSnippet
LOW.pre-commit-config.yaml1# Copyright (c) ONNX Project Contributors
LOW.lintrunner.toml1# Configuration for lintrunner https://github.com/suo/lintrunner
LOW.lintrunner.toml21#
LOWonnx/onnx_pb.h1// Copyright (c) ONNX Project Contributors
LOWonnx/onnx_pb.h21#define ONNX_EXPORT __attribute__((__visibility__("default")))
LOWonnx/onnx_pb.h41//
LOWonnx/checker.h1// Copyright (c) ONNX Project Contributors
LOWonnx/onnx-operators_pb.h1// Copyright (c) ONNX Project Contributors
LOWonnx/proto_utils.h1// Copyright (c) ONNX Project Contributors
LOWonnx/version_converter/convert.h1// Copyright (c) ONNX Project Contributors
LOWonnx/version_converter/convert.h21#include "onnx/version_converter/adapters/axes_attribute_to_input.h"
LOWonnx/version_converter/convert.h41#include "onnx/version_converter/adapters/reshape_4_5.h"
LOWonnx/version_converter/BaseConverter.h1// Copyright (c) ONNX Project Contributors
LOWonnx/version_converter/BaseConverter.h41 // adapter_lookup should be called in convert_version when the user would
LOWonnx/version_converter/adapters/q_dq_21_20.h1// Copyright (c) ONNX Project Contributors
LOWonnx/version_converter/adapters/type_restriction.h1// Copyright (c) ONNX Project Contributors
LOWonnx/version_converter/adapters/adapter.h1// Copyright (c) ONNX Project Contributors
LOW…_converter/adapters/broadcast_backward_compatibility.h1// Copyright (c) ONNX Project Contributors
LOWonnx/version_converter/adapters/upsample_9_8.h1// Copyright (c) ONNX Project Contributors
LOWonnx/version_converter/adapters/scatter_16_15.h1// Copyright (c) ONNX Project Contributors
LOW…nx/version_converter/adapters/extend_supported_types.h1// Copyright (c) ONNX Project Contributors
LOWonnx/version_converter/adapters/transformers.h1// Copyright (c) ONNX Project Contributors
LOWonnx/tools/__init__.py1# Copyright (c) ONNX Project Contributors
LOWonnx/tools/net_drawer.py1# Copyright (c) ONNX Project Contributors
LOWonnx/frontend/__init__.py1# Copyright (c) ONNX Project Contributors
LOWonnx/test/function_test.py21 for f in extracted_model.functions
LOWonnx/test/function_test.py41 # add function_nested_identity_add add function_nested_identity_add
LOWonnx/bin/__init__.py1# Copyright (c) ONNX Project Contributors
LOWonnx/shape_inference/implementation.h1// Copyright (c) ONNX Project Contributors
LOWonnx/backend/__init__.py1# Copyright (c) ONNX Project Contributors
LOWonnx/backend/test/case/node/unique.py141 )
LOWonnx/backend/test/case/node/resize.py401 )
LOWonnx/backend/test/case/node/resize.py541
LOWonnx/backend/test/case/node/resize.py641 # 3.96160918 4.50364964 4.75976814]
LOWonnx/backend/test/case/node/resize.py741 # [ 2.625 3.03125 3.625 4.125 4.625 5.21875 5.625
LOWonnx/backend/test/case/node/trilu.py141 outputs=["y"],
LOWonnx/backend/test/case/node/trilu.py201 x = np.random.randint(10, size=(3, 1, 5)).astype(np.int64)
LOWonnx/backend/test/case/node/trilu.py361
LOWonnx/backend/test/case/node/trilu.py421 x = np.random.randint(10, size=(3, 1, 5)).astype(np.int64)
LOWonnx/common/file_utils.h1// Copyright (c) ONNX Project Contributors
LOWonnx/common/path.h1// Copyright (c) ONNX Project Contributors
LOWonnx/common/ir.h1// Copyright (c) ONNX Project Contributors
LOWonnx/common/ir.h21#include <unordered_set>
LOWonnx/common/ir.h581 //
LOWonnx/common/ir.h601 // 'newValue', returning the old node.
LOWonnx/common/ir.h641 // Given: %3 = f(%1, %2)
LOWonnx/common/ir.h701 // WARNING: This is O(n) in the number of inputs, so avoid repeatedly calling
LOWonnx/common/ir.h741 // Invariant: no outputs of 'this' may have any uses.
LOWonnx/common/scoped_resource.h1// Copyright (c) ONNX Project Contributors
LOWonnx/common/graph_node_list.h1// Copyright (c) ONNX Project Contributors
LOWonnx/common/graph_node_list.h21//
LOWonnx/common/common.h21
LOWonnx/common/safe_math.h1// Copyright (c) ONNX Project Contributors
LOWonnx/common/proto_util.h1// Copyright (c) ONNX Project Contributors
LOWonnx/common/tensor.h1// Copyright (c) ONNX Project Contributors
LOWonnx/common/array_ref.h1// Copyright (c) ONNX Project Contributors
LOWonnx/common/array_ref.h21// removed a bunch of slice variants for simplicity...
LOWonnx/common/model_helpers.h1// Copyright (c) ONNX Project Contributors
LOWonnx/inliner/inliner.h1// Copyright (c) ONNX Project Contributors
LOWonnx/reference/ops/op_attention.py181 # Interleave-repeat each KV head: [h0, h0, h1, h1, ...]
23 more matches not shown…
Self-Referential Comments19 hits · 55 pts
SeverityFileLineSnippet
MEDIUMonnx/gen_proto.py214 # This file is generated by 'gen_proto.py'. DO NOT EDIT!
MEDIUMonnx/numpy_helper.py122 # Create a 1D copy
MEDIUMonnx/numpy_helper.py159 # Create a 1D copy
MEDIUMonnx/test/test_external_data.py974 # Create a target file and replace external data with a symlink to it
MEDIUMonnx/test/test_external_data.py1024 # Create a model directory with a real subdir for saving
MEDIUMonnx/test/test_external_data.py1070 # Create a hardlink to the external data file
MEDIUMonnx/test/version_converter_test.py2425 # Create a model with external data
MEDIUMonnx/test/test_env_python_executable.py89 # Create a temporary directory structure for testing
MEDIUMonnx/test/test_env_python_executable.py115 # Create a temporary directory structure for testing
MEDIUMonnx/test/shape_inference_test.py6060 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraph
MEDIUMonnx/test/shape_inference_test.py6104 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraph
MEDIUMonnx/test/shape_inference_test.py6146 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraph
MEDIUMonnx/test/shape_inference_test.py6244 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraph
MEDIUMonnx/test/shape_inference_test.py8044 # Create a TensorProto with incorrect data type for `delta`.
MEDIUMonnx/test/shape_inference_test.py8069 # Create a TensorProto with empty raw data for `delta`.
MEDIUMonnx/test/training_tool_test.py71 # Create a model with both inference and training information.
MEDIUMonnx/backend/test/case/node/image_decoder.py16 # Create an empty RGB image
MEDIUMonnx/backend/test/case/node/_image_decoder_data.py5# This file contains freeze NumPy array for ImageDecoder backend test's input/output
MEDIUMonnx/reference/ops/op_pool_common.py176 """This function is used to calculate the pooling result of a padded tensor
Decorative Section Separators12 hits · 36 pts
SeverityFileLineSnippet
MEDIUMonnx/backend/test/case/node/gridsample.py303 # ============================================================================
MEDIUMonnx/backend/test/case/node/linear_attention.py59 # ------------------------------------------------------------------
MEDIUMonnx/backend/test/case/node/linear_attention.py61 # ------------------------------------------------------------------
MEDIUMonnx/backend/test/case/node/linear_attention.py260 # ------------------------------------------------------------------
MEDIUMonnx/backend/test/case/node/linear_attention.py262 # ------------------------------------------------------------------
MEDIUMonnx/backend/test/case/node/linear_attention.py329 # ------------------------------------------------------------------
MEDIUMonnx/backend/test/case/node/linear_attention.py331 # ------------------------------------------------------------------
MEDIUMonnx/backend/test/case/node/linear_attention.py437 # ------------------------------------------------------------------
MEDIUMonnx/backend/test/case/node/linear_attention.py439 # ------------------------------------------------------------------
MEDIUMonnx/backend/test/case/node/linear_attention.py509 # ------------------------------------------------------------------
MEDIUMonnx/backend/test/case/node/linear_attention.py511 # ------------------------------------------------------------------
MEDIUMdocs/TestCoverage.md11097# ============================================================================
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippet
HIGHonnx/serialization.py64Get a serializer for a format. Args: fmt: The format to get a serializer for. Returns:
HIGHonnx/reference/op_run.py388Calls method ``_run``, catches exceptions, displays a longer error message. Args: *args: in
HIGHonnx/reference/reference_evaluator.py557Executes the onnx model. Args: output_names: requested outputs by names, None for all f
HIGHonnx/reference/ops/op_resize.py135Return the n nearest indexes to x among `[0, limit)`, prefer the indexes smaller than x. As a result, the ratio
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippet
LOWonnx/test/training_tool_test.py73 # Check if the inference-only part is correct.
LOWonnx/test/basic_test.py226 # Check if the version is correct.
LOWonnx/test/basic_test.py230 # Check if the __repr__ methods work without error
LOWonnx/test/compose_test.py479 # Check if all inputs are prefixed even if input is not connected to node. e.g., 'unused_input'.
LOWonnx/reference/ops/op_string_split.py30 # Add padding to lists that are shorter than the maximum length
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippet
HIGHonnx/reference/op_run.py269 # default value is undefined, it depends on the inputs
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippet
LOWonnx/reference/ops/op_causal_conv_with_state.py41 # Step 1: build the left-padded input (B, C, L + k - 1).
LOWonnx/reference/ops/op_causal_conv_with_state.py48 # Step 2: depthwise Conv1d (group = channels, valid padding).
LOWonnx/reference/ops/op_causal_conv_with_state.py61 # Step 3: optional fused SiLU/Swish activation.
LOWonnx/reference/ops/op_causal_conv_with_state.py68 # Step 4: present_state = last (k - 1) positions of the padded input.
Excessive Try-Catch Wrapping6 hits · 4 pts
SeverityFileLineSnippet
LOWonnx/test/reference_evaluator_test.py289 except Exception as e:
LOWonnx/backend/test/runner/__init__.py49 except Exception: # noqa: PERF203
LOWonnx/backend/test/runner/__init__.py249 except Exception as e:
LOWdocs/docsgen/source/intro/python.md1168 except Exception as e:
LOWdocs/docsgen/source/intro/python.md1585 except Exception as e:
LOWdocs/docsgen/source/intro/python.md1592 except Exception as e:
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMonnx/reference/ops/op_lp_pool.py24 # utilize AvgPool the same fashion Pytorch does. Note that there is a difference in computation.
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippet
LOWonnx/test/test_external_data.py852 def test_function(self) -> None: