Open standard for machine learning interoperability
2053 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/pixi-shim.py | 15 | |
| LOW | tools/gen_coverage_report.py | 6 | |
| LOW | tools/pretty_clang_tidy.py | 5 | |
| LOW | tools/check_namespace.py | 10 | |
| LOW | onnx/model_container.py | 8 | |
| LOW | onnx/gen_proto.py | 6 | |
| LOW | onnx/version.py | 10 | |
| LOW | onnx/version.py | 14 | |
| LOW | onnx/compose.py | 4 | |
| LOW | onnx/__init__.py | 5 | |
| LOW | onnx/__init__.py | 82 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 88 | |
| LOW | onnx/__init__.py | 125 | |
| LOW | onnx/__init__.py | 125 | |
| LOW | onnx/__init__.py | 126 | |
| LOW | onnx/__init__.py | 126 | |
| LOW | onnx/__init__.py | 126 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/__init__.py | 130 | |
| LOW | onnx/parser.py | 4 | |
| LOW | onnx/shape_inference.py | 10 | |
| LOW | onnx/utils.py | 4 | |
| 789 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | onnx/model_container.py | 120 | def is_in_memory_external_initializer(self, name: str) -> bool: |
| LOW | onnx/__init__.py | 462 | def _operator_set_protos_repr(protos: Sequence[OperatorSetIdProto]) -> str: |
| LOW | onnx/shape_inference.py | 159 | def infer_function_output_types( |
| LOW | onnx/utils.py | 66 | def _dfs_search_reachable_nodes( |
| LOW | onnx/utils.py | 109 | def _collect_referred_local_functions( |
| LOW | onnx/utils.py | 132 | def _collect_reachable_tensors( |
| LOW | onnx/helper.py | 84 | def _create_op_set_id_version_map(table: VersionTableType) -> VersionMapType: |
| LOW | onnx/helper.py | 757 | def make_empty_tensor_value_info(name: str) -> ValueInfoProto: |
| LOW | onnx/helper.py | 826 | def make_sparse_tensor_type_proto( |
| LOW | onnx/helper.py | 871 | def make_sparse_tensor_value_info( |
| LOW | onnx/helper.py | 949 | def make_tensor_sequence_value_info( |
| LOW | onnx/helper.py | 1261 | def tensor_dtype_to_storage_tensor_dtype(tensor_dtype: int) -> int: |
| LOW | onnx/inliner.py | 30 | def inline_selected_functions( |
| LOW | onnx/external_data_helper.py | 109 | def _validate_external_data_file_bounds( |
| LOW | onnx/external_data_helper.py | 144 | def load_external_data_for_tensor(tensor: TensorProto, base_dir: str) -> None: |
| LOW | onnx/external_data_helper.py | 160 | def load_external_data_for_model(model: ModelProto, base_dir: str) -> None: |
| LOW | onnx/external_data_helper.py | 204 | def convert_model_to_external_data( |
| LOW | onnx/external_data_helper.py | 262 | def convert_model_from_external_data(model: ModelProto) -> None: |
| LOW | onnx/external_data_helper.py | 317 | def _recursive_attribute_processor( |
| LOW | onnx/external_data_helper.py | 328 | def _get_initializer_tensors_from_graph(graph: GraphProto, /) -> Iterable[TensorProto]: |
| LOW | onnx/external_data_helper.py | 343 | def _get_attribute_tensors_from_graph( |
| LOW | onnx/external_data_helper.py | 379 | def remove_external_data_field(tensor: TensorProto, field_key: str) -> None: |
| LOW | onnx/external_data_helper.py | 393 | def write_external_data_tensors(model: ModelProto, filepath: str) -> ModelProto: |
| LOW | onnx/serialization.py | 82 | def get_format_from_file_extension(self, file_extension: str) -> str | None: |
| LOW | onnx/tools/net_drawer.py | 45 | def _form_and_sanitize_docstring(s: str) -> str: |
| LOW | onnx/tools/replace_constants.py | 71 | def _replace_constant_of_shape_with_range( |
| LOW | onnx/tools/replace_constants.py | 157 | def _replace_constant_of_shape_value( |
| LOW | onnx/tools/replace_constants.py | 210 | def replace_initializer_by_constant_of_shape( # noqa: PLR0911 |
| LOW | onnx/tools/update_model_dims.py | 12 | def update_inputs_outputs_dims( |
| LOW | onnx/test/checker_test.py | 441 | def test_check_tensor_zero_elem(self) -> None: |
| LOW | onnx/test/checker_test.py | 445 | def test_check_removed_experimental_op(self) -> None: |
| LOW | onnx/test/checker_test.py | 449 | def test_skip_schema_check_on_non_standard_domain(self) -> None: |
| LOW | onnx/test/checker_test.py | 467 | def test_check_sparse_tensor_invalid_index(self) -> None: |
| LOW | onnx/test/checker_test.py | 472 | def test_check_sparse_tensor_unordered(self) -> None: |
| LOW | onnx/test/checker_test.py | 477 | def test_check_sparse_tensor_coo_format(self) -> None: |
| LOW | onnx/test/checker_test.py | 481 | def test_check_sparse_tensor_coo_format_invalid_index(self) -> None: |
| LOW | onnx/test/checker_test.py | 485 | def test_check_sparse_tensor_coo_format_invalid_shape(self) -> None: |
| LOW | onnx/test/checker_test.py | 66 | def test_check_node_input_marked_optional(self) -> None: |
| LOW | onnx/test/checker_test.py | 79 | def test_check_function_nested(self) -> None: |
| LOW | onnx/test/checker_test.py | 196 | def test_check_graph_empty_initializer_name(self) -> None: |
| LOW | onnx/test/checker_test.py | 211 | def test_check_graph_empty_sparse_initializer_name(self) -> None: |
| LOW | onnx/test/checker_test.py | 226 | def test_check_graph_duplicate_init_names(self) -> None: |
| LOW | onnx/test/checker_test.py | 244 | def test_check_graph_optional_input(self) -> None: |
| LOW | onnx/test/checker_test.py | 270 | def test_check_graph_topologically_sorted(self) -> None: |
| LOW | onnx/test/checker_test.py | 294 | def test_check_serialized_model(self) -> None: |
| LOW | onnx/test/checker_test.py | 306 | def test_check_model_protobuf_size_boundary(self) -> None: |
| LOW | onnx/test/checker_test.py | 320 | def test_check_model_protobuf_size_over_limit_raises(self) -> None: |
| LOW | onnx/test/checker_test.py | 370 | def test_check_tensor_mismatched_field(self) -> None: |
| LOW | onnx/test/checker_test.py | 402 | def test_nested_graph_without_subgraph_input_shape(self) -> None: |
| LOW | onnx/test/checker_test.py | 510 | def test_check_model_unsupported_input_type(self) -> None: |
| LOW | onnx/test/checker_test.py | 523 | def test_check_model_inconsistent_type(self) -> None: |
| LOW | onnx/test/checker_test.py | 536 | def test_check_model_unsupported_output_type(self) -> None: |
| LOW | onnx/test/checker_test.py | 1071 | def test_empty_list_attribute(self): |
| LOW | onnx/test/checker_test.py | 1101 | def test_check_model_supports_unicode_path(self): |
| LOW | onnx/test/checker_test.py | 1117 | def test_graph_output_is_defined(self): |
| LOW | onnx/test/checker_test.py | 1130 | def test_graph_output_is_defined_within_sub_graph(self): |
| LOW | onnx/test/checker_test.py | 1150 | def test_check_model_rejects_self_recursive_function(self) -> None: |
| LOW | onnx/test/checker_test.py | 1163 | def test_check_model_rejects_indirect_cycle(self) -> None: |
| LOW | onnx/test/checker_test.py | 1178 | def test_check_tensor_invalid_dims(self) -> None: |
| LOW | onnx/test/model_container_refeval_test.py | 88 | def common_check_reference_evaluator(self, container): |
| 826 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | onnx/test/checker_test.py | 0 | <ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opset |
| HIGH | onnx/test/inliner_test.py | 0 | <ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opset |
| HIGH | onnx/test/shape_inference_test.py | 0 | <ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opset |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2] |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2] |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2] |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axis |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axis |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31] |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31] |
| HIGH | onnx/backend/test/case/node/lppool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 31, 31] |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31] |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31] |
| HIGH | onnx/backend/test/case/node/lppool.py | 0 | input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31] |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis |
| HIGH | onnx/backend/test/case/node/lppool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [0, 1, 0, 1] by axis |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis |
| HIGH | onnx/backend/test/case/node/lppool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axis |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | onnx/backend/test/case/node/lppool.py | 0 | input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axis |
| HIGH | onnx/backend/test/case/node/averagepool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10] |
| HIGH | onnx/backend/test/case/node/maxpool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10] |
| HIGH | onnx/backend/test/case/node/lppool.py | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10] |
| HIGH | docs/TestCoverage.md | 0 | input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10] |
| 25 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/check_namespace.py | 15 | |
| LOW | onnx/gen_proto.py | 41 | |
| LOW | onnx/compose.py | 91 | |
| LOW | onnx/compose.py | 446 | |
| LOW | onnx/compose.py | 569 | |
| LOW | onnx/compose.py | 221 | |
| LOW | onnx/numpy_helper.py | 306 | |
| LOW | onnx/numpy_helper.py | 385 | |
| LOW | onnx/numpy_helper.py | 547 | |
| LOW | onnx/helper.py | 84 | |
| LOW | onnx/helper.py | 363 | |
| LOW | onnx/helper.py | 506 | |
| LOW | onnx/helper.py | 568 | |
| LOW | onnx/helper.py | 606 | |
| LOW | onnx/helper.py | 763 | |
| LOW | onnx/helper.py | 826 | |
| LOW | onnx/helper.py | 969 | |
| LOW | onnx/helper.py | 1207 | |
| LOW | onnx/external_data_helper.py | 204 | |
| LOW | onnx/external_data_helper.py | 58 | |
| LOW | onnx/tools/replace_constants.py | 210 | |
| LOW | onnx/test/reference_evaluator_test.py | 237 | |
| LOW | onnx/test/test_backend_test.py | 38 | |
| LOW | onnx/test/test_backend_reference.py | 29 | |
| LOW | onnx/test/shape_inference_test.py | 178 | |
| LOW | onnx/test/compose_test.py | 486 | |
| LOW | onnx/test/compose_test.py | 620 | |
| LOW | onnx/test/model_container_test.py | 115 | |
| LOW | …st/version_converter/automatic_conversion_test_base.py | 43 | |
| LOW | onnx/backend/test/stat_coverage.py | 40 | |
| LOW | onnx/backend/test/stat_coverage.py | 152 | |
| LOW | onnx/backend/test/cmd_tools.py | 20 | |
| LOW | onnx/backend/test/runner/__init__.py | 123 | |
| LOW | onnx/backend/test/runner/__init__.py | 254 | |
| LOW | onnx/backend/test/runner/__init__.py | 341 | |
| LOW | onnx/backend/test/runner/__init__.py | 504 | |
| LOW | onnx/backend/test/runner/__init__.py | 346 | |
| LOW | onnx/backend/test/loader/__init__.py | 16 | |
| LOW | onnx/backend/test/case/node/cast.py | 27 | |
| LOW | onnx/backend/test/case/node/cast.py | 321 | |
| LOW | onnx/backend/test/case/node/__init__.py | 37 | |
| LOW | onnx/backend/test/case/node/__init__.py | 264 | |
| LOW | onnx/backend/test/case/node/scatternd.py | 13 | |
| LOW | onnx/backend/test/case/node/scatterelements.py | 19 | |
| LOW | onnx/backend/test/case/node/castlike.py | 23 | |
| LOW | onnx/backend/test/report/coverage.py | 147 | |
| LOW | onnx/reference/op_run.py | 157 | |
| LOW | onnx/reference/op_run.py | 232 | |
| LOW | onnx/reference/op_run.py | 387 | |
| LOW | onnx/reference/reference_evaluator.py | 195 | |
| LOW | onnx/reference/reference_evaluator.py | 395 | |
| LOW | onnx/reference/ops_optimized/op_conv_optimized.py | 50 | |
| LOW | onnx/reference/ops/op_scatter_elements.py | 11 | |
| LOW | onnx/reference/ops/op_constant.py | 71 | |
| LOW | onnx/reference/ops/op_roi_align.py | 28 | |
| LOW | onnx/reference/ops/op_roi_align.py | 117 | |
| LOW | onnx/reference/ops/op_grid_sample.py | 286 | |
| LOW | onnx/reference/ops/op_sequence_insert.py | 41 | |
| LOW | onnx/reference/ops/op_conv.py | 11 | |
| LOW | onnx/reference/ops/_op_common_pool.py | 64 | |
| 37 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .pre-commit-config.yaml | 1 | # Copyright (c) ONNX Project Contributors |
| LOW | .lintrunner.toml | 1 | # Configuration for lintrunner https://github.com/suo/lintrunner |
| LOW | .lintrunner.toml | 21 | # |
| LOW | onnx/onnx_pb.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/onnx_pb.h | 21 | #define ONNX_EXPORT __attribute__((__visibility__("default"))) |
| LOW | onnx/onnx_pb.h | 41 | // |
| LOW | onnx/checker.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/onnx-operators_pb.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/proto_utils.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/version_converter/convert.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/version_converter/convert.h | 21 | #include "onnx/version_converter/adapters/axes_attribute_to_input.h" |
| LOW | onnx/version_converter/convert.h | 41 | #include "onnx/version_converter/adapters/reshape_4_5.h" |
| LOW | onnx/version_converter/BaseConverter.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/version_converter/BaseConverter.h | 41 | // adapter_lookup should be called in convert_version when the user would |
| LOW | onnx/version_converter/adapters/q_dq_21_20.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/version_converter/adapters/type_restriction.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/version_converter/adapters/adapter.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | …_converter/adapters/broadcast_backward_compatibility.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/version_converter/adapters/upsample_9_8.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/version_converter/adapters/scatter_16_15.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | …nx/version_converter/adapters/extend_supported_types.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/version_converter/adapters/transformers.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/tools/__init__.py | 1 | # Copyright (c) ONNX Project Contributors |
| LOW | onnx/tools/net_drawer.py | 1 | # Copyright (c) ONNX Project Contributors |
| LOW | onnx/frontend/__init__.py | 1 | # Copyright (c) ONNX Project Contributors |
| LOW | onnx/test/function_test.py | 21 | for f in extracted_model.functions |
| LOW | onnx/test/function_test.py | 41 | # add function_nested_identity_add add function_nested_identity_add |
| LOW | onnx/bin/__init__.py | 1 | # Copyright (c) ONNX Project Contributors |
| LOW | onnx/shape_inference/implementation.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/backend/__init__.py | 1 | # Copyright (c) ONNX Project Contributors |
| LOW | onnx/backend/test/case/node/unique.py | 141 | ) |
| LOW | onnx/backend/test/case/node/resize.py | 401 | ) |
| LOW | onnx/backend/test/case/node/resize.py | 541 | |
| LOW | onnx/backend/test/case/node/resize.py | 641 | # 3.96160918 4.50364964 4.75976814] |
| LOW | onnx/backend/test/case/node/resize.py | 741 | # [ 2.625 3.03125 3.625 4.125 4.625 5.21875 5.625 |
| LOW | onnx/backend/test/case/node/trilu.py | 141 | outputs=["y"], |
| LOW | onnx/backend/test/case/node/trilu.py | 201 | x = np.random.randint(10, size=(3, 1, 5)).astype(np.int64) |
| LOW | onnx/backend/test/case/node/trilu.py | 361 | |
| LOW | onnx/backend/test/case/node/trilu.py | 421 | x = np.random.randint(10, size=(3, 1, 5)).astype(np.int64) |
| LOW | onnx/common/file_utils.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/common/path.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/common/ir.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/common/ir.h | 21 | #include <unordered_set> |
| LOW | onnx/common/ir.h | 581 | // |
| LOW | onnx/common/ir.h | 601 | // 'newValue', returning the old node. |
| LOW | onnx/common/ir.h | 641 | // Given: %3 = f(%1, %2) |
| LOW | onnx/common/ir.h | 701 | // WARNING: This is O(n) in the number of inputs, so avoid repeatedly calling |
| LOW | onnx/common/ir.h | 741 | // Invariant: no outputs of 'this' may have any uses. |
| LOW | onnx/common/scoped_resource.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/common/graph_node_list.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/common/graph_node_list.h | 21 | // |
| LOW | onnx/common/common.h | 21 | |
| LOW | onnx/common/safe_math.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/common/proto_util.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/common/tensor.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/common/array_ref.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/common/array_ref.h | 21 | // removed a bunch of slice variants for simplicity... |
| LOW | onnx/common/model_helpers.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/inliner/inliner.h | 1 | // Copyright (c) ONNX Project Contributors |
| LOW | onnx/reference/ops/op_attention.py | 181 | # Interleave-repeat each KV head: [h0, h0, h1, h1, ...] |
| 23 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | onnx/gen_proto.py | 214 | # This file is generated by 'gen_proto.py'. DO NOT EDIT! |
| MEDIUM | onnx/numpy_helper.py | 122 | # Create a 1D copy |
| MEDIUM | onnx/numpy_helper.py | 159 | # Create a 1D copy |
| MEDIUM | onnx/test/test_external_data.py | 974 | # Create a target file and replace external data with a symlink to it |
| MEDIUM | onnx/test/test_external_data.py | 1024 | # Create a model directory with a real subdir for saving |
| MEDIUM | onnx/test/test_external_data.py | 1070 | # Create a hardlink to the external data file |
| MEDIUM | onnx/test/version_converter_test.py | 2425 | # Create a model with external data |
| MEDIUM | onnx/test/test_env_python_executable.py | 89 | # Create a temporary directory structure for testing |
| MEDIUM | onnx/test/test_env_python_executable.py | 115 | # Create a temporary directory structure for testing |
| MEDIUM | onnx/test/shape_inference_test.py | 6060 | # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraph |
| MEDIUM | onnx/test/shape_inference_test.py | 6104 | # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraph |
| MEDIUM | onnx/test/shape_inference_test.py | 6146 | # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraph |
| MEDIUM | onnx/test/shape_inference_test.py | 6244 | # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraph |
| MEDIUM | onnx/test/shape_inference_test.py | 8044 | # Create a TensorProto with incorrect data type for `delta`. |
| MEDIUM | onnx/test/shape_inference_test.py | 8069 | # Create a TensorProto with empty raw data for `delta`. |
| MEDIUM | onnx/test/training_tool_test.py | 71 | # Create a model with both inference and training information. |
| MEDIUM | onnx/backend/test/case/node/image_decoder.py | 16 | # Create an empty RGB image |
| MEDIUM | onnx/backend/test/case/node/_image_decoder_data.py | 5 | # This file contains freeze NumPy array for ImageDecoder backend test's input/output |
| MEDIUM | onnx/reference/ops/op_pool_common.py | 176 | """This function is used to calculate the pooling result of a padded tensor |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | onnx/backend/test/case/node/gridsample.py | 303 | # ============================================================================ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 59 | # ------------------------------------------------------------------ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 61 | # ------------------------------------------------------------------ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 260 | # ------------------------------------------------------------------ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 262 | # ------------------------------------------------------------------ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 329 | # ------------------------------------------------------------------ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 331 | # ------------------------------------------------------------------ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 437 | # ------------------------------------------------------------------ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 439 | # ------------------------------------------------------------------ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 509 | # ------------------------------------------------------------------ |
| MEDIUM | onnx/backend/test/case/node/linear_attention.py | 511 | # ------------------------------------------------------------------ |
| MEDIUM | docs/TestCoverage.md | 11097 | # ============================================================================ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | onnx/serialization.py | 64 | Get a serializer for a format. Args: fmt: The format to get a serializer for. Returns: |
| HIGH | onnx/reference/op_run.py | 388 | Calls method ``_run``, catches exceptions, displays a longer error message. Args: *args: in |
| HIGH | onnx/reference/reference_evaluator.py | 557 | Executes the onnx model. Args: output_names: requested outputs by names, None for all f |
| HIGH | onnx/reference/ops/op_resize.py | 135 | Return the n nearest indexes to x among `[0, limit)`, prefer the indexes smaller than x. As a result, the ratio |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | onnx/test/training_tool_test.py | 73 | # Check if the inference-only part is correct. |
| LOW | onnx/test/basic_test.py | 226 | # Check if the version is correct. |
| LOW | onnx/test/basic_test.py | 230 | # Check if the __repr__ methods work without error |
| LOW | onnx/test/compose_test.py | 479 | # Check if all inputs are prefixed even if input is not connected to node. e.g., 'unused_input'. |
| LOW | onnx/reference/ops/op_string_split.py | 30 | # Add padding to lists that are shorter than the maximum length |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | onnx/reference/op_run.py | 269 | # default value is undefined, it depends on the inputs |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | onnx/reference/ops/op_causal_conv_with_state.py | 41 | # Step 1: build the left-padded input (B, C, L + k - 1). |
| LOW | onnx/reference/ops/op_causal_conv_with_state.py | 48 | # Step 2: depthwise Conv1d (group = channels, valid padding). |
| LOW | onnx/reference/ops/op_causal_conv_with_state.py | 61 | # Step 3: optional fused SiLU/Swish activation. |
| LOW | onnx/reference/ops/op_causal_conv_with_state.py | 68 | # Step 4: present_state = last (k - 1) positions of the padded input. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | onnx/test/reference_evaluator_test.py | 289 | except Exception as e: |
| LOW | onnx/backend/test/runner/__init__.py | 49 | except Exception: # noqa: PERF203 |
| LOW | onnx/backend/test/runner/__init__.py | 249 | except Exception as e: |
| LOW | docs/docsgen/source/intro/python.md | 1168 | except Exception as e: |
| LOW | docs/docsgen/source/intro/python.md | 1585 | except Exception as e: |
| LOW | docs/docsgen/source/intro/python.md | 1592 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | onnx/reference/ops/op_lp_pool.py | 24 | # utilize AvgPool the same fashion Pytorch does. Note that there is a difference in computation. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | onnx/test/test_external_data.py | 852 | def test_function(self) -> None: |