AI Slop Code RIsk Monitor

onnxsim/onnxsim

Simplify your onnx model

20.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for onnxsim/onnxsim, a Python project with 4,414 GitHub stars. SynthScan examined 974,020 lines of code across 3284 source files, recording 14244 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 20.0 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

20.0
Adjusted Signal
20.0
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
4.4K
Stars
Python
Language
974.0K
Lines of Code
3.3K
Files
14.2K
Pattern Hits
2026-10-12
Scan Date
0.43
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 36.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 10433 finding(s).

Hallucinated Dependency & Supply Chain Risk 8.8/100 · LOW

Are imports declared and package/API names verified? 1466 finding(s).

Agent Over-Engineering Ratio 53.2/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 9942 finding(s).

PR Review Velocity Impact 69.6/100 · HIGH

Which changes need focused human review? 14244 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 29HIGH 1386MEDIUM 880LOW 11949

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 14244 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition1191 hits · 5955 pts
SeverityFileLineSnippetContext
HIGHREADME.md0<domain: "com.onnxsim.test", opset_import: ["" : 18]> matmul_add_pattern (x, w, b) => (y) { t = matmul(x, w) y = add(t, STRING
HIGHtests/test_function_rewriter_vs_onnxscript.py0<domain: "com.onnxsim.test", opset_import: ["" : 18]> matmul_add_pattern (x, w, b) => (y) { t = matmul(x, w) y = add(t, STRING
HIGHtests/test_function_rewriter.py0<domain: "com.onnxsim.test", opset_import: ["" : 18]> matmul_add_pattern (x, w, b) => (y) { t = matmul(x, w) y = add(t, STRING
HIGHREADME.md0<domain: "com.onnxsim.test", opset_import: ["" : 18]> gemm_replacement (x, w, b) => (y) { y = gemm(x, w, b) }STRING
HIGHtests/test_function_rewriter_vs_onnxscript.py0<domain: "com.onnxsim.test", opset_import: ["" : 18]> gemm_replacement (x, w, b) => (y) { y = gemm(x, w, b) }STRING
HIGHtests/test_function_rewriter.py0<domain: "com.onnxsim.test", opset_import: ["" : 18]> gemm_replacement (x, w, b) => (y) { y = gemm(x, w, b) }STRING
HIGHtests/test_axera_div_quant_fields_two_live_inputs.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_add_trivial_x2_zeropoint.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGH…s/test_axera_two_live_input_operand_order_synthesis.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_two_live_input_cluster_synthesis.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_div_shape64_x2_locator.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_sub_operand_order.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_mul_shape64_x2_locator_reexamined.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_sub_div_reflow_extended_seeds.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_add_shape64_x2_locator_reexamined.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_sub_quant_fields_two_live_inputs.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_mul_quant_fields_two_live_inputs.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGH…sts/test_axera_shape64_seed12_absence_investigation.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_div_operand_order.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_add_two_live_shape_generality.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_add_operand_order.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_sub_mul_trivial_x2_zeropoint.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_conv_matmul_trivial_zeropoint.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_two_live_input_four_op_synthesis.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_sub_shape64_x2_locator.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_mul_operand_order.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGH…/test_axera_shape64_x2_locator_correction_synthesis.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_add_output_operand_order.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_gemm_trivial_zeropoint.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_add_quant_fields_two_live_inputs.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_axera_x1_trivial_zeropoint.py0`computeasymmetricuint8quantparams` (`onnxsim/passes/static_ quantize_matmul.h`), the plain float32-throughout formula tSTRING
HIGHtests/test_weight_only_quantize_int4.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_halide_integration.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_ibert_softmax.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_quant_error_eval.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_deepseek_fp8_cpp.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_modelopt_integration.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_deepseek_fp8.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_formal_verify_gguf_ternary_quant.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_qoperator_quantize_matmul.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_d2quant.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_awq_cpp.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_outlier_suppression.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_partial_shape_eval_rank.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_intactkv.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_formal_verify_eliminate_shape_op.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_kv_cache_quantization.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_gptaq_cpp.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_bias_correction.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_quantize_bf16.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_formal_verify_gguf_q4_1.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_model_checking.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_hqq_cpp.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_spqr_cpp.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_formal_verify_quarot.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_mse_calibration.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_weight_only_quantize_int16.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_mixed_precision_cpp.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_formal_verify_static_quantize_int16_conv.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
HIGHtests/test_formal_verify_static_quantize_matmul.py0< ir_version: {ir_version}, opset_import: ["": {opset}] > {body}STRING
1131 more matches not shown…
Hyper-Verbose Identifiers7469 hits · 5930 pts
SeverityFileLineSnippetContext
LOWbench/nncf_comparison.py131def _referenced_initializer_bytes(model: onnx.ModelProto) -> int:CODE
LOW…nnx-cardputer-flash/tests/test_onnx_to_tflite_micro.py27def test_round_trips_arbitrary_bytes():CODE
LOW…nnx-cardputer-flash/tests/test_onnx_to_tflite_micro.py39def test_declares_length_and_alignment():CODE
LOW…nnx-cardputer-flash/tests/test_onnx_to_tflite_micro.py46def test_rejects_non_identifier_var_name():CODE
LOW…nnx-cardputer-flash/tests/test_onnx_to_tflite_micro.py57def test_main_writes_plain_tflite_for_dot_tflite_output(tmp_path):CODE
LOW…nnx-cardputer-flash/tests/test_onnx_to_tflite_micro.py68def test_main_writes_c_header_for_dot_h_output(tmp_path):CODE
LOW…rdputer-flash/tests/test_onnx_to_tflite_flatbuffers.py83def test_softmax_sandwich_emits_a_single_softmax_op(tmp_path):CODE
LOW…rdputer-flash/tests/test_onnx_to_tflite_flatbuffers.py151def test_real_model_matches_onnx_reference(CODE
LOW⚡tools/onnx-k210-flash/web/ncc/ncc.js1var create_ncc=(()=>{var _scriptName=globalThis.document?.currentScript?.src;return async function(moduleArg={}){var modCODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py34def _assert_legalizes_to_equivalent_graph(model: onnx.ModelProto, op_type: str, feeds: dict[str, np.ndarray], *, atol=1eCODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py46def test_supported_ops_matches_registered_legalizers():CODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py51def test_leaves_already_supported_ops_alone():CODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py69def test_gelu_tanh_approximate():CODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py113def test_isinf_both_directions():CODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py125def test_isinf_neither_direction():CODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py131def test_mean_variance_normalization_default_axes():CODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py142def test_legalize_is_a_noop_the_second_time():CODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py152def test_legalizes_a_node_nested_among_supported_ops():CODE
LOWtools/onnx-k210-flash/tests/test_onnx_to_kmodel.py28def _make_model_with_batch_dim(batch_dim_param: str | None, batch_dim_value: int) -> onnx.ModelProto:CODE
LOW⚡tools/onnx-k210-flash/tests/test_onnx_to_kmodel.py50def test_pin_batch_dim_replaces_symbolic_dim_param():CODE
LOW⚡tools/onnx-k210-flash/tests/test_onnx_to_kmodel.py58def test_pin_batch_dim_replaces_zero_dim_value():CODE
LOW⚡tools/onnx-k210-flash/tests/test_onnx_to_kmodel.py68def test_pin_batch_dim_leaves_a_fixed_positive_batch_alone():CODE
LOW⚡tools/onnx-k210-flash/tests/test_onnx_to_kmodel.py74def test_convert_to_kmodel_real_hf_model(tmp_path):CODE
LOWtools/onnx-k210-flash/scripts/onnx_legalizer.py195def _legalize_meanvariancenormalization(node: onnx.NodeProto) -> list[onnx.NodeProto]:CODE
LOWtools/onnx-deploy/scripts/make_toy_seq2seq.py142def make_decoder_with_past_model(enc_seq_len, vocab_size):CODE
LOWtools/onnx-deploy/scripts/make_toy_int8_kv_decoder.py55def _cache_sum_logits_subgraph(prefix, cache_name, vocab_size):CODE
LOWtools/onnx-deploy/scripts/make_toy_int8_kv_decoder.py113def make_decoder_with_past_model(vocab_size):CODE
LOW…ls/onnx-finetune/tests/test_distillation_graph_grad.py228def test_gradient_matches_finite_differences(toy_models, target):CODE
LOW…ls/onnx-finetune/tests/test_distillation_graph_grad.py246def test_gradient_matches_tinygrad_autodiff(toy_models, target):CODE
LOW…ls/onnx-finetune/tests/test_distillation_graph_grad.py286def test_gradient_matches_finite_differences_across_batch_sizes(toy_models):CODE
LOW…ls/onnx-finetune/tests/test_distillation_graph_grad.py308def test_step_graph_has_no_training_only_ops(toy_models):CODE
LOW…ls/onnx-finetune/tests/test_distillation_graph_grad.py318def test_step_graph_trains_on_plain_onnxruntime(toy_models):CODE
LOW…ls/onnx-finetune/tests/test_distillation_graph_grad.py381def test_frozen_prefixes_stay_constants_and_train_the_rest(toy_models):CODE
LOWtools/onnx-finetune/tests/test_lora.py181def test_matmul_injection_noop_at_init_and_round_trips(tmp_path):CODE
LOWtools/onnx-finetune/tests/test_lora.py205def test_gemm_transb_injection_noop_at_init(tmp_path):CODE
LOWtools/onnx-finetune/tests/test_lora.py225def test_gemm_transa_injection_noop_at_init(tmp_path):CODE
LOWtools/onnx-finetune/tests/test_lora.py265def test_target_contains_filters_by_name(tmp_path):CODE
LOWtools/onnx-finetune/tests/test_lora.py286def test_prepare_qlora_excludes_adapter_from_quantization(tmp_path):CODE
LOWtools/onnx-finetune/tests/test_lora.py320def test_export_onnx_adapter_matches_merged_model_via_native_lora_adapter(tmp_path):CODE
LOWtools/onnx-finetune/scripts/generate_nas_step_graphs.py199def write_manifest_and_initial_state(CODE
LOW…finetune/scripts/generate_darts_supernet_step_graph.py106def build_darts_supernet_step(CODE
LOW…finetune/scripts/generate_darts_supernet_step_graph.py232def write_manifest_and_initial_state(CODE
LOW…x-finetune/scripts/generate_distillation_step_graph.py260def _build_forward_loss_and_grads(CODE
LOW…x-finetune/scripts/generate_distillation_step_graph.py449def build_distillation_step_graph(CODE
LOW…x-finetune/scripts/generate_distillation_step_graph.py528def write_manifest_and_initial_state(CODE
LOW…finetune/scripts/generate_federated_lora_step_graph.py105def build_federated_lora_step_graph(CODE
LOW…finetune/scripts/generate_federated_lora_step_graph.py180def write_manifest_and_initial_state(CODE
LOWtools/onnx-remote/python/onnx_remote_client.py303def encode_request_payload_parts(CODE
LOW⚡tests/test_axera_mcode_segments_fix.py56def test_padded_and_unpadded_blobs_have_the_right_header(name, pad, header):CODE
LOW⚡tests/test_axera_mcode_segments_fix.py66def test_both_padding_groups_are_represented():CODE
LOW⚡tests/test_axera_mcode_segments_fix.py72def test_every_segment_starts_on_its_stream_header(name):CODE
LOW⚡tests/test_axera_mcode_segments_fix.py81def test_non_zero_padding_is_rejected():CODE
LOWtests/test_axera_div_quant_fields_two_live_inputs.py305 def test_all_three_trivial_fixtures_decode_cleanly(self):CODE
LOWtests/test_axera_div_quant_fields_two_live_inputs.py333 def test_no_mul_style_requant_multiplier_field_group_exists(self):CODE
LOWtests/test_axera_div_quant_fields_two_live_inputs.py349 def test_plain_y_scale_is_bit_exact_at_a_raw_byte_offset_four_times(self):CODE
LOWtests/test_axera_div_quant_fields_two_live_inputs.py364 def test_zp_y_matches_after_excluding_the_unrelated_constant_hit(self):CODE
LOWtests/test_axera_div_quant_fields_two_live_inputs.py406 def test_no_decode_errors_on_any_seed_pair(self):CODE
LOWtests/test_weight_only_quantize_int4.py107def test_quantize_gemm_transb_with_bias():STRING
LOWtests/test_weight_only_quantize_int4.py134def test_quantize_scale_shape_matches_block_count():STRING
LOWtests/test_weight_only_quantize_int4.py160def test_quantize_skips_k_not_divisible_by_block_size():STRING
7409 more matches not shown…
Over-Commented Block1981 hits · 1910 pts
SeverityFileLineSnippetContext
LOWbuild_wasm_pyodide.sh1#!/usr/bin/env bashCOMMENT
LOWbuild_wasm_pyodide.sh21# KNOWN GOOD for onnxsim's vendored protobuf (clang-18/EmscriptenCOMMENT
LOWbuild_wasm_pyodide.sh41# .../xbuildenv/pyodide-root/cpython/installs/python-3.13.2/include/python3.13COMMENT
LOWbuild_wasm_pyodide.sh61# can fail on a minor-version mismatch against the target headers.COMMENT
LOWbuild_wasm_pyodide.sh121# a DIFFERENT hint-variable namespace, so all three need to be seeded withCOMMENT
LOWCMakeLists.txt1cmake_minimum_required(VERSION 3.22)COMMENT
LOWCMakeLists.txt61# XNNPACK instead of ONNX Runtime, for a small, explicitly-supported subset ofCOMMENT
LOWCMakeLists.txt81 # code #ifdef'd out) and no ORT source is fetched or compiled.COMMENT
LOWCMakeLists.txt201COMMENT
LOWCMakeLists.txt281 # remote_executor.h exposes the transport profiling level to native clients.COMMENT
LOWCMakeLists.txt461 # With the onnx stack built static, the linker prunes archive membersCOMMENT
LOWCMakeLists.txt521 # linker response file) via get_filename_component(... CMAKE_CURRENT_LIST_FILECOMMENT
LOWCMakeLists.txt541 get_filename_component(ONNXSIM_NANOBIND_PACKAGE_ROOTCOMMENT
LOWCMakeLists.txt561 # symbols leak out of this module even under the project-wide hidden preset.COMMENT
LOWCMakeLists.txt701 add_test(NAME precision_estimator_test COMMAND precision_estimator_test)COMMENT
LOWCMakeLists.txt721 # third_party/onnx/onnx/inliner/CMakeLists.txt) for the inliningCOMMENT
LOWCMakeLists.txt781 add_test(NAME qat_entry_test COMMAND qat_entry_test)COMMENT
LOWpyproject.toml41# by raising this floor, since every other onnxruntime use in the packageCOMMENT
LOWpyproject.toml61# with that same algebra on concrete models. Unrelated to onnxsim's ownCOMMENT
LOWpyproject.toml81# Needed by onnxsim.export_sam2_model(), which traces a Meta SAM 2COMMENT
LOWpyproject.toml101# onnxsim.compile_training_loop -- training itself still runs entirely onCOMMENT
LOWpyproject.toml121# pywebnn is rustnn's (https://github.com/rustnn/rustnn) Python binding: aCOMMENT
LOWsetup.py41# reachable from Simplify() itself.COMMENT
LOWsetup.py161 returnCOMMENT
LOWsetup.py221 # Without an override, onnx's own CMakeLists.txt (see itsCOMMENT
LOWsetup.py441packages = setuptools.find_packages()COMMENT
LOWbench/graph_shape_inference_teardown_bench.cpp1// Microbenchmark for the arena change in graph_shape_inference.cc (ProcessNode).COMMENT
LOWbench/graph_shape_inference_teardown_bench.cpp21// [full cycle] build + destroy one node-visit's messages per iteration, aCOMMENT
LOWbench/graph_shape_inference_teardown_bench.cpp41#include <chrono>COMMENT
LOWbench/graph_shape_inference_gperftools_repro.py81 # elementwise ops on every block (Add/Mul/Sub), so ConstantDataFor +COMMENT
LOWbench/fold_teardown_bench.sh1#!/usr/bin/env bashCOMMENT
LOWbench/fold_teardown_bench.cpp1// Microbenchmark for the arena change in onnxsim/onnxsim.cpp (RunOp).COMMENT
LOWbench/fold_teardown_bench.cpp21// [teardown] build N sub-models first, then time only their destructionCOMMENT
LOWbench/graph_shape_inference_teardown_bench.sh1#!/usr/bin/env bashCOMMENT
LOW…ols/onnx-cardputer-flash/firmware/runtime/src/main.cpp1// Generic TFLite Micro runtime for M5Stack Cardputer.COMMENT
LOW…-cardputer-flash/scripts/onnx_to_tflite_flatbuffers.py761 # inference is batch-1 anyway).COMMENT
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py1# Vendored from the `ai-edge-litert` PyPI package (2.2.0)COMMENT
LOWtools/onnx-k210-flash/firmware/runtime/build.sh1#!/usr/bin/env bashCOMMENT
LOWtools/onnx-k210-flash/firmware/runtime/src/main.cpp1// Generic K210 kmodel runtime -- the K210 counterpart toCOMMENT
LOWtools/onnx-k210-flash/firmware/runtime/src/main.cpp21// onnx-cardputer-flash's TFLite Micro runtime has viaCOMMENT
LOWtools/onnx-k210-flash/firmware/runtime/src/w25qxx.h21#define DATALENGTH 8COMMENT
LOWtools/onnx-k210-flash/firmware/runtime/src/w25qxx.h41#define FAST_READ_QUAL_IO 0xEBCOMMENT
LOW…x-k210-flash/firmware/camera_demo/src/board_m5stickv.c1// M5StickV board support: AXP192 power rails, the 135x240 ST7789 LCD onCOMMENT
LOW…x-k210-flash/firmware/camera_demo/src/board_m5stickv.c81// ------------------------------------------------------------------ LCD ----COMMENT
LOW…/onnx-k210-flash/firmware/camera_demo/src/board_cube.c1// Sipeed Maix Cube board support: the 240x240 IPS LCD on octal SPI0 (aCOMMENT
LOW…/onnx-k210-flash/firmware/camera_demo/src/board_cube.c21COMMENT
LOW…/onnx-k210-flash/firmware/camera_demo/src/board_cube.c61 i2c_send_data(I2C_DEVICE_1, b, 2);COMMENT
LOW…/onnx-k210-flash/firmware/camera_demo/src/board_cube.c81// MADCTL and the panel offset inside the ST7789's 240x320 RAM. MaixPy'sCOMMENT
LOW…/onnx-k210-flash/firmware/camera_demo/src/board_cube.c101//COMMENT
LOW…/onnx-k210-flash/firmware/camera_demo/src/board_cube.c121// a uniform pink/purple instead of the intended solid colour, and a laterCOMMENT
LOW…nx-k210-flash/firmware/camera_demo/src/camera_ov7740.c1// OV7740 camera + DVP capture, shared by every board this demo supports (theCOMMENT
LOW…nx-k210-flash/firmware/camera_demo/src/camera_ov7740.c21COMMENT
LOWtools/onnx-k210-flash/firmware/camera_demo/src/board.h1// Board and camera interface for the camera demo. One firmware per board,COMMENT
LOWtools/onnx-k210-flash/firmware/camera_demo/src/board.h21// CAM_W x CAM_H, so camera pixels map 1:1 onto LCD pixels.COMMENT
LOWtools/onnx-k210-flash/firmware/camera_demo/src/board.h41int board_button_b(void);COMMENT
LOWtools/onnx-k210-flash/firmware/camera_demo/src/main.cpp1// M5StickV camera demo: live camera -> the .kmodel flashed at 0x00C00000 (KPU)COMMENT
LOW…-deploy/include/onnx_deploy/static_kv_cache_pipeline.h1// onnx_deploy/static_kv_cache_pipeline.hCOMMENT
LOW…-deploy/include/onnx_deploy/static_kv_cache_pipeline.h21// same buffers, via `Ort::IoBinding` binding the identical `Ort::Value` asCOMMENT
LOW…-deploy/include/onnx_deploy/static_kv_cache_pipeline.h121 std::to_string(shape[2]) + ") doesn't match max_cache_len (" +COMMENT
LOW…ls/onnx-deploy/include/onnx_deploy/kv_cache_pipeline.h1// onnx_deploy/kv_cache_pipeline.hCOMMENT
1921 more matches not shown…
Decorative Section Separators568 hits · 1795 pts
SeverityFileLineSnippetContext
MEDIUMbuild_wasm_pyodide.sh17# ---------------------------------------------------------------------------COMMENT
MEDIUMbuild_wasm_pyodide.sh71# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_halide_integration.py188# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_halide_integration.py197# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py138# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py140# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py194# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py196# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py239# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py241# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py385# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py387# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py556# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py558# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py696# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_gpu_backend.py698# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_gpu_backend.py46# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_gpu_backend.py48# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_gpu_backend.py607# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_gpu_backend.py609# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_formal_verify_gguf_ternary_quant.py208# ============================================================================COMMENT
MEDIUM⚡tests/test_formal_verify_gguf_ternary_quant.py211# ============================================================================COMMENT
MEDIUM⚡tests/test_formal_verify_gguf_ternary_quant.py275# ============================================================================COMMENT
MEDIUM⚡tests/test_formal_verify_gguf_ternary_quant.py278# ============================================================================COMMENT
MEDIUM⚡tests/test_formal_verify_gguf_ternary_quant.py326# ============================================================================COMMENT
MEDIUM⚡tests/test_formal_verify_gguf_ternary_quant.py329# ============================================================================COMMENT
MEDIUM⚡tests/test_formal_verify_gguf_ternary_quant.py441# ============================================================================COMMENT
MEDIUM⚡tests/test_formal_verify_gguf_ternary_quant.py444# ============================================================================COMMENT
MEDIUMtests/test_formal_verify_gguf_ternary_quant.py560# ============================================================================COMMENT
MEDIUMtests/test_formal_verify_gguf_ternary_quant.py562# ============================================================================COMMENT
MEDIUM⚡tests/test_formal_verify_rewrite_bev_pool_to_scatter.py139# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_formal_verify_rewrite_bev_pool_to_scatter.py141# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_formal_verify_rewrite_bev_pool_to_scatter.py277# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_formal_verify_rewrite_bev_pool_to_scatter.py279# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_formal_verify_rewrite_bev_pool_to_scatter.py426# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_formal_verify_rewrite_bev_pool_to_scatter.py430# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_d2quant.py88# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_d2quant.py90# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_d2quant.py242# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_d2quant.py244# ---------------------------------------------------------------------------STRING
MEDIUM⚡…ts/test_formal_verify_qoperator_quantize_activation.py154# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/test_formal_verify_qoperator_quantize_activation.py156# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/test_formal_verify_qoperator_quantize_activation.py260# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/test_formal_verify_qoperator_quantize_activation.py262# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/test_formal_verify_qoperator_quantize_activation.py386# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/test_formal_verify_qoperator_quantize_activation.py388# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/test_formal_verify_qoperator_quantize_activation.py670# ---------------------------------------------------------------------------STRING
MEDIUM⚡…ts/test_formal_verify_qoperator_quantize_activation.py672# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_mlx_integration.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_mlx_integration.py169# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_imatrix_quant.py67# ---------------------------------------------------------------------------STRING
MEDIUM⚡tests/test_imatrix_quant.py69# ---------------------------------------------------------------------------STRING
MEDIUM⚡tests/test_imatrix_quant.py159# ---------------------------------------------------------------------------STRING
MEDIUM⚡tests/test_imatrix_quant.py161# ---------------------------------------------------------------------------STRING
MEDIUM⚡tests/test_imatrix_quant.py200# ---------------------------------------------------------------------------STRING
MEDIUM⚡tests/test_imatrix_quant.py202# ---------------------------------------------------------------------------STRING
MEDIUM⚡…/test_formal_verify_rewrite_trt_batched_rotated_nms.py135# ===========================================================================COMMENT
MEDIUM⚡…/test_formal_verify_rewrite_trt_batched_rotated_nms.py137# ===========================================================================COMMENT
MEDIUM⚡…/test_formal_verify_rewrite_trt_batched_rotated_nms.py764# ===========================================================================COMMENT
MEDIUM⚡…/test_formal_verify_rewrite_trt_batched_rotated_nms.py766# ===========================================================================COMMENT
508 more matches not shown…
Unused Imports1356 hits · 1096 pts
SeverityFileLineSnippetContext
LOWbench/nncf_comparison.py65CODE
LOWbench/onnxslim_comparison.py17CODE
LOWbench/opset_conversion_profile.py25CODE
LOWbench/opset_conversion_profile.py31CODE
LOWbench/opset_conversion_profile.py35CODE
LOWbench/sg2002/profile_model.py8CODE
LOW…-cardputer-flash/scripts/onnx_to_tflite_flatbuffers.py95CODE
LOW…s/onnx-cardputer-flash/scripts/onnx_to_tflite_micro.py22CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py917CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py1177CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py1443CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py1637CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py1759CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py1881CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py2232CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py2413CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py2692CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py2692CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py3015CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py3202CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py3456CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py3796CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py4280CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py4496CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py4684CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py4997CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py5170CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py5362CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py5866CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py6278CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py6454CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py7355CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py9536CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py10756CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py16450CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py17634CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py18070CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py18423CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py18635CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py19228CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py19612CODE
LOWtools/onnx-k210-flash/tests/test_onnx_legalizer.py17CODE
LOWtools/onnx-k210-flash/scripts/onnx_to_kmodel.py52CODE
LOWtools/onnx-k210-flash/scripts/onnx_legalizer.py33CODE
LOWtools/onnx-deploy/scripts/make_toy_seq2seq.py51CODE
LOWtools/onnx-finetune/scripts/generate_nas_step_graphs.py54CODE
LOWtools/onnx-finetune/scripts/federated_lora_aggregate.py37CODE
LOWtools/onnx-finetune/scripts/apply_trained_weights.py21CODE
LOW…finetune/scripts/generate_darts_supernet_step_graph.py80CODE
LOW…x-finetune/scripts/generate_distillation_step_graph.py94CODE
LOW…finetune/scripts/generate_federated_lora_step_graph.py48CODE
LOWtools/onnx-remote/python/onnx_remote_client.py55CODE
LOWtests/test_axera_llm_row_decomposition.py10CODE
LOWtests/test_axera_step_runner.py10CODE
LOWtests/test_graph_grad_templates.py45CODE
LOWtests/test_axera_safe_masked_div_hardware.py3CODE
LOWtests/test_crown_bab.py33CODE
LOW…/test_formal_verify_rewrite_trt_batched_rotated_nms.py130CODE
LOW…/test_formal_verify_rewrite_trt_batched_rotated_nms.py132CODE
LOWtests/test_hmx_gemm.py8CODE
1296 more matches not shown…
Empty Error Handlers114 hits · 538 pts
SeverityFileLineSnippetContext
HIGHbench/peak_memory.py173except SystemExit:CODE
HIGHbench/sg2002/profile_model.py291except Exception:CODE
HIGHbench/sg2002/profile_model.py287except OSError:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py918except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py1178except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py1444except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py1638except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py1760except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py1882except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py2037except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py2233except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py2414except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py2693except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py3016except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py3203except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py3457except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py3797except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py4281except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py4497except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py4685except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py4998except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py5171except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py5363except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py5867except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py6279except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py6455except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py7356except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py9537except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py10757except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py16451except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py17635except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py18071except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py18424except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py18636except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py19229except:CODE
HIGH…ter-flash/scripts/tflite_schema/schema_py_generated.py19613except:CODE
HIGH…s/onnx-k210-flash/firmware/camera_demo/scripts/grab.py128except ImportError:CODE
HIGHtests/test_axera_patch_scales.py123except ValueError:CODE
HIGHtests/test_build_edsr_train_step.py103except ValueError:CODE
HIGHtests/test_axera_mcode_structure.py3180except Exception:CODE
HIGHscripts/vnncomp_bench.py342except Exception: # noqa: BLE001 - torch missing / op unsupported: sampling onlyCODE
HIGHscripts/vnncomp_bench.py147except ValueError:CODE
HIGHscripts/gpu_bench.py434except ImportError:CODE
HIGHscripts/axelera/legalize.py143except Exception:CODE
HIGHscripts/rknn/nanopc_npu_utilization.py131except Exception:CODE
HIGHscripts/android/deploy/stages/partition.py21except Exception: # noqa: BLE001 -- best effortCODE
HIGHscripts/android/tinygrad_aot/export_cl.py136except CompileError: passCODE
HIGH…pts/android/vision_models_probe/summarize_partition.py24except Exception: # noqa: BLE001 -- best effort; large models may not infer cleanlyCODE
HIGHscripts/android/maskrcnn_e2e/onnx_compat.py15except Exception:CODE
HIGHscripts/axera/matmul_record_emit.py630except CalibrationError:CODE
HIGHscripts/axera/matmul_record_emit.py681except CalibrationError:CODE
HIGHscripts/axera/matmul_record_emit.py645except CalibrationError:CODE
HIGHscripts/axera/axcl_session.py464except OSError:CODE
HIGHscripts/axera/axcl_session.py421except OSError:CODE
HIGHscripts/axera/run_llm_rpc.py77except OSError:CODE
HIGHscripts/axera/run_llm_rpc.py87except OSError:CODE
HIGHscripts/axera/pulsar2_docker.py132except PermissionError:CODE
HIGHscripts/axera/pulsar2_docker.py788except subprocess.TimeoutExpired:CODE
HIGHscripts/axera/legalize.py1222except Exception:CODE
HIGHscripts/axera/tinygrad_ax_backend.py1353except ValueError:CODE
54 more matches not shown…
Deep Nesting542 hits · 498 pts
SeverityFileLineSnippetContext
LOWsetup.py392CODE
LOWbench/sg2002/profile_model.py142CODE
LOW…-cardputer-flash/scripts/onnx_to_tflite_flatbuffers.py746CODE
LOW…finetune/scripts/generate_federated_lora_step_graph.py61CODE
LOWtools/onnx-remote/python/onnx_remote_client.py207CODE
LOWtests/test_axera_div_quant_fields_two_live_inputs.py269CODE
LOWtests/test_halide_integration.py339CODE
LOWtests/test_formal_verify_rewrite_bev_pool_to_scatter.py144CODE
LOWtests/test_weight_only_quantize_matmul_nbits.py237CODE
LOWtests/test_symexpr_kv_cache_consistency.py233CODE
LOWtests/test_axera_step_runner.py716CODE
LOWtests/test_axera_step_runner.py2527CODE
LOWtests/test_cross_layer_equalization.py76CODE
LOWtests/test_sparsegpt_pruning_cpp.py692CODE
LOWtests/test_voyager_sdk_patterns.py67CODE
LOWtests/test_voyager_sdk_patterns.py80CODE
LOWtests/_bev_torch_custom_ops.py180CODE
LOWtests/test_affinequant_cpp.py107CODE
LOWtests/test_xdna_layer_engine.py15CODE
LOWtests/test_xdna_blocked_stage.py51CODE
LOWtests/test_axera_resource_model_census.py203CODE
LOWtests/test_deform_conv_to_gather.py101CODE
LOW…st_axera_conv_binary_cluster_quantization_synthesis.py279CODE
LOWtests/test_mlx_integration.py229CODE
LOWtests/test_axera_conv_dilation_receptive_field.py128CODE
LOWtests/test_quark_int_presets_parity.py112CODE
LOWtests/test_quark_int_presets_parity.py373CODE
LOWtests/test_quark_int_presets_parity.py504CODE
LOWtests/test_axera_sub_quant_fields_two_live_inputs.py215CODE
LOWtests/test_axera_mul_quant_fields_two_live_inputs.py268CODE
LOW…est_formal_verify_weight_only_quantize_matmul_nbits.py513CODE
LOW…est_formal_verify_weight_only_quantize_matmul_nbits.py629CODE
LOW…est_formal_verify_weight_only_quantize_matmul_nbits.py746CODE
LOWtests/test_quant_int_verify.py946CODE
LOWtests/test_quark_xint8_parity.py352CODE
LOWtests/test_quark_xint8_parity.py396CODE
LOWtests/test_quark_xint8_parity.py1015CODE
LOWtests/test_quark_xint8_parity.py1379CODE
LOWtests/test_quark_xint8_parity.py409CODE
LOWtests/test_quark_finetune_parity.py139CODE
LOW…st_formal_verify_rewrite_msdeformattn_to_gridsample.py307CODE
LOWtests/test_simple.py226CODE
LOWtests/test_build_resnet50_layer4_step.py66CODE
LOWtests/test_shape_cost.py232CODE
LOWtests/test_shape_cost.py927CODE
LOWtests/test_qwen3_5_reconstruct.py472CODE
LOWtests/test_axera_llm_layer_loop.py410CODE
LOWtests/test_quark_int_presets.py31CODE
LOWtests/test_quark_npu.py756CODE
LOWtests/test_quarot_cpp.py185CODE
LOWtests/test_quark_amp_mixing.py314CODE
LOWtests/test_axera_conv_reg232_zeropoint_verification.py128CODE
LOWtests/test_axera_mcode_structure.py445CODE
LOWtests/test_axera_mcode_structure.py4053CODE
LOWtests/test_axera_mcode_structure.py4312CODE
LOWtests/test_axera_mcode_structure.py5608CODE
LOWtests/test_axera_mcode_structure.py5670CODE
LOWtests/test_axera_mcode_structure.py6123CODE
LOWtests/test_axera_mcode_structure.py5629CODE
LOWtests/test_axera_mcode_structure.py6135CODE
482 more matches not shown…
Excessive Try-Catch Wrapping407 hits · 411 pts
SeverityFileLineSnippetContext
LOWbench/nncf_comparison.py368 except Exception as exc: # pragma: no cover - reported, not raisedCODE
LOWbench/nncf_comparison.py375 except Exception as exc: # pragma: no cover - reported, not raisedCODE
LOWbench/amd_npu_roofline.py301 except Exception:CODE
LOWbench/onnxslim_comparison.py69 except Exception as e: # noqa: BLE001CODE
LOWbench/onnxslim_comparison.py82 except Exception as e: # noqa: BLE001CODE
LOWbench/sg2002/profile_model.py271 except Exception as error: # noqa: BLE001 - present transport and device errors to the userSTRING
LOWbench/sg2002/profile_model.py291 except Exception:STRING
LOW…rdputer-flash/tests/test_onnx_to_tflite_flatbuffers.py175 except Exception as e:CODE
LOWtools/onnx-k210-flash/tests/test_onnx_to_kmodel.py88 except Exception as e:CODE
LOWtests/test_quark_low_opset_parity.py48 except Exception as e: # pragma: no cover - environment dependentCODE
LOWtests/test_quark_low_opset_parity.py143 except Exception:CODE
LOWtests/test_export_transformers.py44 except Exception as e: # network/hub errors surface as a variety of typesCODE
LOWtests/test_export_transformers.py74 except Exception as e:CODE
LOWtests/test_export_transformers.py94 except Exception as e:CODE
LOWtests/test_optimum_export_deploy.py90 except Exception as e: # network/hub errors surface as a variety of typesCODE
LOW⚡tests/test_docs_ranges.py48 except Exception as e: # say which block of the page brokeCODE
LOWtests/test_tvm_integration.py180 except Exception:CODE
LOWtests/test_torch_integration.py203 except Exception:CODE
LOW⚡tests/test_to_torch.py439 except Exception as e: # onnxruntime build without these contrib kernelsSTRING
LOW⚡tests/test_to_torch.py456 except Exception as e:STRING
LOW⚡tests/test_to_torch.py667 except Exception as e:STRING
LOW⚡tests/test_to_torch.py684 except Exception as e:STRING
LOWtests/test_to_torch.py328 except Exception as e: # older onnxruntime: no opset-23 Attention kernelSTRING
LOWtests/test_to_torch.py513 except Exception as e:STRING
LOWtests/test_to_torch.py568 except Exception as e:STRING
LOWtests/test_to_torch.py636 except Exception as e:STRING
LOWtests/test_mlx_integration.py291 except Exception:CODE
LOWtests/test_quark_constants_misc_parity.py48 except Exception as e: # pragma: no cover - environment dependentCODE
LOWtests/test_export_transformers_whisper.py51 except Exception as e: # network/hub errors surface as a variety of typesCODE
LOWtests/test_quant_int_verify.py728 except Exception as e: # pragma: no cover - API driftCODE
LOWtests/test_quark_xint8_parity.py29 except Exception as e: # pragma: no cover - environment dependentCODE
LOWtests/test_function_rewriter_compile_rule.py100except Exception as exc: # pragma: no cover - environment/version guardCODE
LOWtests/test_quark_finetune_parity.py70 except Exception as e: # pragma: no cover - environment dependentCODE
LOWtests/test_rknn3588_compat.py46 except Exception:CODE
LOW⚡tests/test_docs_fp_error.py31 except Exception as e: # say which block of the page brokeCODE
LOWtests/test_static_kv_cache_export.py55 except Exception as e: # network/hub errors surface as a variety of typesCODE
LOWtests/test_static_kv_cache_export.py186 except Exception as e:CODE
MEDIUMtests/test_static_kv_cache_export.py52def hf_model_config():CODE
LOW⚡tests/test_quark_hadamard_parity.py361 except Exception as e: # pragma: no cover - environment dependentCODE
LOWtests/test_quark_hadamard_parity.py36 except Exception: # pragma: no cover - environment dependentCODE
LOWtests/test_axera_mcode_structure.py3180 except Exception:CODE
LOWtests/test_axera_mcode_structure.py5886 except Exception:CODE
LOWtests/test_quark_finetune_coverage_parity.py179 except Exception: # Quark cannot convert it (and draws nothing)CODE
LOWtests/test_quark_algo_parity.py40 except Exception as e: # pragma: no cover - environment dependentCODE
LOWtests/test_quark_algo_parity.py594 except Exception as e: # pragma: no cover - needs quark's torch extrasCODE
LOW⚡tests/test_quark_parity.py2062 except Exception: # Quark itself rejects this graphCODE
LOWtests/test_quark_parity.py34 except Exception as e: # pragma: no cover - environment dependentCODE
LOWtests/test_quark_parity.py153 except Exception: # pragma: no cover - environment dependentCODE
LOWtests/test_quark_parity.py400 except Exception: # Quark itself rejects this graphCODE
LOWtests/test_quark_parity.py596 except Exception as e: # pragma: no cover - op library missing etc.CODE
LOWtests/test_export_diffusion.py46 except Exception as e: # network/hub errors surface as a variety of typesCODE
LOW⚡tests/test_export_diffusion.py69 except Exception as e:CODE
LOW⚡tests/test_export_diffusion.py84 except Exception as e:CODE
LOWtests/test_torch_training.py55 except Exception: # noqa: BLE001 -- any build failure means unavailableCODE
LOWtests/test_fuse_lp_normalization.py94 except Exception:STRING
LOWtests/test_compile_training.py61 except Exception: # noqa: BLE001 -- any build failure means unavailableCODE
LOW…ts/test_speculative_decoding_drafter_hub_checkpoint.py213 except Exception as e: # network/hub errors surface as a variety of typesCODE
LOWtests/test_quark_block_preproc_parity.py52 except Exception as e: # pragma: no cover - environment dependentCODE
LOWtests/test_quark_block_preproc_parity.py228 except Exception: # pragma: no cover - environment dependentCODE
LOWtests/test_quark_block_preproc_parity.py256 except Exception: # pragma: no cover - a build of the op library that cannot loadCODE
347 more matches not shown…
Cross-Language Confusion81 hits · 380 pts
SeverityFileLineSnippetContext
HIGHbench/sg2002/profile_model.py83state=$(cat "$proc" 2>/dev/null || true)CODE
HIGHbench/sg2002/profile_model.py92while kill -0 "$runpid" 2>/dev/null; doCODE
HIGHtests/test_formal_verify_eliminate_shape_op.py8non-negative (``dim.is_int && dim.dim >= 0``).STRING
HIGHtests/test_formal_verify_eliminate_shape_gather.py25indices_val].is_int || dims[indices_val].dim == -1``). Otherwise it builds aSTRING
HIGH⚡tests/test_axera_mcode_validator.py516 assert null == 0, (name, null)CODE
HIGHtests/test_axera_mcode_validator.py259 assert null <= max(2, len(quintets) // 4), (name, len(quintets), null)CODE
HIGHtests/test_axera_mcode_validator.py383 assert len(null) <= max(2, (len(prefixes) + len(doublets)) // 4), (CODE
HIGHtests/test_axera_mcode_validator.py386 len(null),CODE
HIGHtests/test_axera_mcode_validator.py638 assert null <= 2 * len(takes) + 2, (name, len(takes), null)CODE
HIGHtests/test_axera_mcode_validator.py800 assert null == 0, (name, null)CODE
HIGHtests/test_axera_mcode_validator.py966 assert null == 0, (name, null)CODE
HIGHtests/test_axera_mcode_validator.py1043 assert null == 0, (name, null)CODE
HIGH⚡tests/test_amax_calibration.py30 hist.push(np.array([v]))CODE
HIGH⚡tests/test_amax_calibration.py36 hist.push(np.array([0.001]))CODE
HIGH⚡tests/test_amax_calibration.py37 hist.push(np.array([0.001]))CODE
HIGH⚡tests/test_amax_calibration.py38 hist.push(np.array([0.001]))CODE
HIGHtests/test_axera_llm_layer_loop.py13(`cmake -S tools/onnx-remote -B build/onnx-remote && cmake --build build/onnx-remote`,STRING
HIGHtests/test_axera_mcode_structure.py2861 assert observed >= 40 and null > 0 and observed / null >= 2.0, (observed, null)CODE
HIGHtests/test_axera_mcode_structure.py3524 assert null_a1 == 0 or null[(0xA1, 0)] <= 0.8 * null_a1 + 2, dict(null)CODE
HIGHtests/test_axera_mcode_structure.py6208 assert real[1] >= 2 * null[1] and real[2] >= 2 * null[2], (name, real, null)CODE
HIGHtests/test_axera_mcode_structure.py2835 shuffled null); the undecoded residue left after removing everySTRING
HIGHtests/test_axera_mcode_structure.py2897 that rested on the wrong null); and blocks A and B share a 158-byteSTRING
HIGHtests/test_formal_verify_eliminate_nop_with_unit.py13 all-zeros -- ``index == 1 && isAllOf(tensor, 0)``. Index 0 (the minuend)STRING
HIGH…ts/test_formal_verify_eliminate_nop_monotone_argmax.py179 # and check_n=0 (Log(negative) is undefined, so a numeric equivalenceCOMMENT
HIGHtests/test_formal_verify_magnitude_pruning_matmul.py373 # never be matched: FetchConstantTensor returns null, soSTRING
HIGHtests/test_formal_verify_eliminate_nop_split.py21 (!sizes[axis].is_int || sizes[axis].dim != split[0])) {STRING
HIGHtests/test_formal_verify_magnitude_pruning_conv.py359 # never be matched: FetchConstantTensor returns null, soSTRING
HIGHtests/test_formal_verify_eliminate_nop_flatten.py11 (``input_shape[0].is_int && input_shape[0].dim == 1``).STRING
HIGHtests/test_formal_verify_magnitude_pruning_attention.py419 # never be matched: FetchConstantTensor returns null, soSTRING
HIGHscripts/stable_relu_prune_eval.py116 """top-1 agreement, mean KL(a || b), max |logit diff|, and accuracy of both if labels given."""STRING
HIGHscripts/rknn/overhead_probe_nanopc.py272 "timer_floor_ms": round(statistics.median(null), 6),CODE
HIGHscripts/edgetpu/benchmark_device.py19 sudo udevadm control --reload-rules && sudo udevadm triggerSTRING
HIGHscripts/allwinner/compile_nbg.py203 'trap "chmod -R a+rwX . 2>/dev/null || true" EXIT', # a Docker run leaves root-owned files behindCODE
HIGHscripts/allwinner/trace_npu.py84 "for c in 0 1 2 3 4 5 6 7; do echo $c $(cat /sys/devices/system/cpu/cpu$c/cpu_capacity 2>/dev/null); done",STRING
HIGHscripts/nvidia/imagenette_data.py9 curl -LO https://s3.amazonaws.com/fast-ai-imageclas/imagenette2-320.tgz && tar xzf it.tgzSTRING
HIGHscripts/openpilot_dsp/adaround_conv.py8 min_V || conv(X, W_q) - conv(X, W) ||^2 + lam * sum(1 - |2 h(V) - 1|^beta) (beta annealed 20 -> 2)STRING
HIGHscripts/android/hexagon_sim_harness.py79 if (d > worst || d != d) worst = d;CODE
HIGHscripts/android/deploy/deploy.py358 device.push(ctx, ctx.d("push"))CODE
HIGHscripts/android/deploy/stages/device.py171 adb(ctx, "shell", f"rm -rf {dd}/res && mkdir -p {dd}/res")CODE
HIGHscripts/android/webgpu_ops/texdirect_tune/tune_1x1.py24 out = subprocess.run(["bash", "-c", f"~/.cache/android-phone/phone-run bash -c 'adb push {local} {D}/job.sh >/dev/nuCODE
HIGHscripts/android/webgpu_ops/texdirect_tune/validate.py36 out = subprocess.run(["bash", "-c", f"~/.cache/android-phone/phone-run bash -c 'adb push {local} {D}/job.sh >/dev/nuCODE
HIGHscripts/android/webgpu_ops/texdirect_tune/tune.py42 ["bash", "-c", f"~/.cache/android-phone/phone-run bash -c 'adb push {local} {D}/job.sh >/dev/null; adb shell \"sCODE
HIGHscripts/android/webgpu_ops/texdirect_tune/accuracy.py10 cmd = (f"cd {D} && export LD_LIBRARY_PATH=. && rm -rf dcpu dtd dbase && mkdir dcpu dtd dbase && "CODE
HIGHscripts/android/webgpu_ops/texdirect_tune/accuracy.py16 subprocess.run(["bash", "-c", f"~/.cache/android-phone/phone-run bash -c 'adb push {tmp}/job.sh {D}/acc.sh >/dev/nulCODE
HIGHscripts/android/webgpu_ops/texdirect_tune/tune_cc.py21 out = subprocess.run(["bash", "-c", f"~/.cache/android-phone/phone-run bash -c 'adb push {local} {D}/job.sh >/dev/nuCODE
HIGHscripts/android/webgpu_ops/attr/run_ablation2.py15subprocess.run(["bash", "-c", f"{phone_run} bash -c 'adb push {here}/ab2.sh /data/local/tmp/wg-attr2/ >/dev/null; adb puCODE
HIGHscripts/android/webgpu_ops/attr/run_ablation2.py31 cmd = f"{phone_run} bash -c 'adb push {work}/{var} /data/local/tmp/wg-attr2/m/ >/dev/null; adb shell \"sh /data/locaCODE
HIGHscripts/android/webgpu_ops/attr/run_ablation.py14subprocess.run(["bash", "-c", f"{phone_run} bash -c 'adb push {here}/ab.sh /data/local/tmp/wg-attr/ >/dev/null; adb pushCODE
HIGHscripts/android/webgpu_ops/attr/run_ablation.py30 cmd = f"{phone_run} bash -c 'adb push {work}/{var} /data/local/tmp/wg-attr/m/ >/dev/null; adb shell \"sh /data/localCODE
HIGHscripts/android/tinygrad_kernels/tune.py42 f"adb shell 'mkdir -p {PHONE_DIR}/{name}' >/dev/null; adb push {runner_dir}/{runner} {PHONE_DIR}/ >/dev/null; "CODE
HIGHscripts/android/vision_models/fastbev/e2e_phone.py88adb -s {SERIAL} shell "chmod 755 {R}/fastbev_run && cd {R} && {env} ./fastbev_run {a.fam} {R}/{a.fam} {len(frames)} {a.iCODE
HIGHscripts/android/vision_models/nfru/nfru_cl_check.py164 vp, sw = self.null, srchCODE
HIGHscripts/android/vision_models/nfru/nfru_cl_check.py183 won if hint_mv is not None else self.null,CODE
HIGHscripts/android/vision_models/nfru/nfru_cl_check.py270 g.null,CODE
HIGHscripts/android/vision_models/nfru/nfru_cl_check.py271 g.null,CODE
HIGHscripts/android/vision_models/nfru/nfru_cl_check.py546 g.null,CODE
HIGHscripts/android/vision_models/sparse4d/phone_chain.py45 got = adb("shell", f"stat -c %s {dst} 2>/dev/null || true", capture=True).strip()CODE
HIGHscripts/android/vision_models/rfdetr/phone_eval.py106 f"cd {rd} && rm -rf ctx.onnx res && mkdir res\n"CODE
HIGHscripts/android/vision_models/rfdetr/phone_eval.py136 f"rm -rf {stage}/pulled && adb -s {SERIAL} pull -q {rd}/res {stage}/pulled"CODE
HIGHscripts/android/vision_models/rtdetr/phone_eval.py131 f"cd {rd} && rm -rf ctx.onnx res && mkdir res\n"CODE
21 more matches not shown…
Hallucination Indicators29 hits · 330 pts
SeverityFileLineSnippetContext
CRITICALtests/test_axera_mcode_structure.py5929 inp.type.tensor_type.shape.dim.add().dim_value = valueCODE
CRITICALscripts/apple/train_block_step_coreml.py189 vi.type.tensor_type.shape.dim.add().dim_value = 1CODE
CRITICALscripts/apple/train_mlp_step_coreml.py170 vi.type.tensor_type.shape.dim.add().dim_value = 1CODE
CRITICAL⚡scripts/tinyengine/models.py97 x_type.type.tensor_type.shape.dim.add().dim_param = "N"CODE
CRITICAL⚡scripts/tinyengine/models.py99 x_type.type.tensor_type.shape.dim.add().dim_value = dCODE
CRITICAL⚡scripts/tinyengine/models.py101 y_type.type.tensor_type.shape.dim.add().dim_param = "N"CODE
CRITICAL⚡scripts/tinyengine/models.py103 y_type.type.tensor_type.shape.dim.add().dim_value = dCODE
CRITICALscripts/convertmodel/test/make_edgeai_tidl_fixture.py87 x_type.type.tensor_type.shape.dim.add().dim_param = "N"CODE
CRITICALscripts/convertmodel/test/make_edgeai_tidl_fixture.py89 x_type.type.tensor_type.shape.dim.add().dim_value = dCODE
CRITICALscripts/allwinner/compile_nbg.py120 v.type.tensor_type.shape.dim.add().dim_value = dCODE
CRITICALscripts/android/webgpu_ops/model_flops.py24 i.type.tensor_type.shape.dim.add().dim_value = int(d)CODE
CRITICALscripts/android/vision_models/nfru/nfru.py402 o.type.tensor_type.shape.dim.add().dim_value = vCODE
CRITICALscripts/android/vision_models/nss/nss.py413 o.type.tensor_type.shape.dim.add().dim_value = vCODE
CRITICAL⚡scripts/edgeai/models.py82 x_type.type.tensor_type.shape.dim.add().dim_param = "N"CODE
CRITICAL⚡scripts/edgeai/models.py84 x_type.type.tensor_type.shape.dim.add().dim_value = dCODE
CRITICAL⚡scripts/edgeai/models.py86 y_type.type.tensor_type.shape.dim.add().dim_param = "N"CODE
CRITICAL⚡scripts/edgeai/models.py88 y_type.type.tensor_type.shape.dim.add().dim_value = dCODE
CRITICALscripts/axera/build_calib_signal_probe.py165 inp.type.tensor_type.shape.dim.add().dim_value = 1CODE
CRITICALscripts/axera/reshape_dma_emit.py76 value_info.type.tensor_type.shape.dim.add().dim_value = sizeCODE
CRITICALscripts/axera/reshape_emit.py146 value_info.type.tensor_type.shape.dim.add().dim_value = sizeCODE
CRITICALscripts/axera/teng2_cluster_patch_npoint.py150 value_info.type.tensor_type.shape.dim.add().dim_value = dimCODE
CRITICALscripts/axera/build_resident_train_step.py814 inp.type.tensor_type.shape.dim.add().dim_value = 1CODE
CRITICALscripts/axera/memory_emit.py123 value_info.type.tensor_type.shape.dim.add().dim_value = sizeCODE
CRITICALscripts/axera/legalize.py569 value.type.tensor_type.shape.dim.add().dim_value = 1CODE
CRITICALscripts/axera/transpose_emit.py70 value_info.type.tensor_type.shape.dim.add().dim_value = sizeCODE
CRITICALscripts/axera/teng2_cluster_patch.py185 value_info.type.tensor_type.shape.dim.add().dim_value = dimCODE
CRITICALscripts/axera/reshape_record_emit.py409 value_info.type.tensor_type.shape.dim.add().dim_value = sizeCODE
CRITICALonnxsim/interval.py1329 d = vi.type.tensor_type.shape.dim.add()CODE
CRITICALonnxsim/shape_cost.py1244 vi.type.tensor_type.shape.dim.add().dim_value = vCODE
AI Slop Vocabulary82 hits · 215 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_halide_integration.py211 """Kahn's algorithm over node I/O names; robust to any valid node order."""STRING
MEDIUMtests/test_formal_verify_gguf_ternary_quant.py727 # Structural sanity, robust to however many fixed-point iterations ran:STRING
MEDIUMtests/test_axera_sub_div_reflow_extended_seeds.py49#1681's own sample) -- the "never reflows" observation is more robustSTRING
MEDIUMtests/test_gguf_q5_k_cpp.py130 # A coarser naive baseline keeps this test meaningful and robust.STRING
MEDIUMtests/test_qoperator_quantize_concat.py114 # own static values, not force-fed through the calibration harness.STRING
MEDIUMtests/test_deform_conv_to_gather.py155# Simplify + run-and-compare harness.COMMENT
MEDIUMtests/test_mlx_integration.py185 """Kahn's algorithm over node I/O names; robust to any valid node order."""STRING
MEDIUMtests/test_edgeai_tidl_compat.py20# The TIDL harness lives under scripts/edgeai; reuse it rather than duplicate.COMMENT
MEDIUMtests/test_qnn_compat.py22# The QNN harness lives under scripts/qualcomm; reuse it rather than duplicate.COMMENT
MEDIUM⚡…/test_formal_verify_rewrite_trt_batched_rotated_nms.py765# Threshold-sweep harness: reads the real pass's internal IoU indirectly.COMMENT
MEDIUMtests/test_rknn_compat.py26# The RKNN harness lives under scripts/rknn; reuse it rather than duplicate.COMMENT
MEDIUMtests/test_formal_verify_qoperator_quantize_concat.py435 # static values instead of force-fed through the calibration harness asSTRING
MEDIUMtests/test_formal_verify_qoperator_quantize_where.py441 # harness as if it varied at inference time.STRING
MEDIUMtests/test_openvino_compat.py20# The OpenVINO harness lives under scripts/intel; reuse it rather than duplicate.COMMENT
MEDIUMtests/test_shape_cost.py169# --------------------------------------------------------------------------- harnessCOMMENT
MEDIUMtests/test_hqq.py118 # robust (Lp<2) fit should recover a tighter, more accurate zero-pointSTRING
MEDIUMtests/test_hqq.py144 # HQQ's robust fit should show its benefit most clearly.STRING
MEDIUMtests/test_qoperator_quantize_elementwise.py177 # through the calibration harness.STRING
MEDIUMtests/test_yolo.py19# dominates YOLO's node-count reduction. The standalone compatibility harnessCOMMENT
MEDIUMtests/test_qoperator_quantize_where.py113 # own static values, not force-fed through the calibration harness.STRING
MEDIUMtests/test_nanochat.py16# harness in scripts/nanochat/simplify_nanochat.py exercises nanochat's ownCOMMENT
MEDIUMtests/test_formal_verify_eliminate_nop_reshape.py279 # input, so onnxsim's random-input test harness -- which special-cases aCOMMENT
MEDIUMtests/test_tinygrad_hexagon_compat.py21# The harness lives under scripts/hexagon; reuse it rather than duplicate.COMMENT
MEDIUMtests/test_coreml_compat.py19# The Core ML harness lives under scripts/apple; reuse it rather than duplicate.COMMENT
LOWtests/test_quantize_fp16.py269 # quantized model, not just pass the (more lenient) checker.STRING
MEDIUMtests/test_axera_sparse_resource_clustering.py356 # robust population-level gap. Redesigned here (see moduleCOMMENT
MEDIUMtests/test_quarot.py253 # pair. Empirically (see this session's verification harness) theSTRING
MEDIUMtests/test_gptaq.py214 # standalone harness simulating cross-platform numerical noise: everySTRING
MEDIUMtests/test_zeroquant.py201 # robust to platform-specific float32 MatMul reduction-orderSTRING
MEDIUMtests/test_hexagon_tinygrad.py577 # EXACT on the phone; tinygrad_hexagon_bridge/README.md, TopK section), so the harness exits 1 byCOMMENT
MEDIUMtests/test_adpq_cpp.py108 # wide margin (small noise -> small robust sigma -> small threshold),STRING
MEDIUMtests/test_hexagon_qfloat.py161 ("f32", False, 1e-5), # control: stock TVM through the same harnessCODE
MEDIUMtests/test_pulsar2_compat.py19# The Pulsar2 harness lives under scripts/axera; reuse it rather than duplicate.COMMENT
MEDIUM⚡tests/test_trt_batched_rotated_nms.py242# Threshold-sweep harness against the actual pass (see module docstring).COMMENT
MEDIUMtests/test_migraphx_compat.py22# The MIGraphX harness lives under scripts/amd; reuse it rather than duplicate.COMMENT
MEDIUMscripts/make_qat_parity_fixtures.py561 # silent divergence this harness exists to prevent, and it happened.COMMENT
MEDIUMscripts/shape_cost_validation.py31import test_shape_cost as T # noqa: E402 (the models and the run harness live with the tests)CODE
MEDIUM⚡scripts/gpu_bench.py187# cases: each returns a dict of results; the harness adds time and memoryCOMMENT
MEDIUMscripts/rknn/rknn_backend.py104# The target platform used for every build in this harness. Purely aCOMMENT
MEDIUMscripts/rknn/rknn_backend.py180 # do_quantization=False: this harness checks graph-compile andCOMMENT
MEDIUMscripts/rknn3/rknn3_backend.py209 # in the onnxsim repo checkout during development of this harness) --COMMENT
MEDIUMscripts/android/webgpu_ops/attr/opbench.py29# calibration entry: a tiny Relu, its per-copy cost is the harness floor (keeper Slice + graph output copy)COMMENT
MEDIUM…pts/android/tinygrad_hexagon_bridge/hex_gemm_kernel.py66 # first. Depending on every range (M can never degenerate) makes this robust.COMMENT
LOWscripts/regression/worker.py67 # isn't (many repos just call it "model.onnx").COMMENT
MEDIUM…s/regression/paddle2onnx/run_paddle2onnx_regression.py194 # Verification harness failure is not an onnxsim failure; note it butCOMMENT
MEDIUMscripts/yolo/simplify_yolo.py54# Nano scale keeps the harness fast; the graph structure (what onnxsimCOMMENT
MEDIUM.github/workflows/model-regression.yml58 # Validate the harness itself whenever it changes.COMMENT
MEDIUM.github/workflows/model-regression.yml378 # pull_request runs, which only validate the harness.COMMENT
MEDIUM.github/workflows/amd-integration.yml48 # installed wheel on `import onnxsim`. Reference the harness by absoluteCOMMENT
MEDIUM.github/workflows/big-endian.yml14# requests that touch either the harness or the code that actually reads andCOMMENT
MEDIUM.github/workflows/big-endian.yml87 # The harness, so changes to it are validated before they are relied on.COMMENT
MEDIUM.github/workflows/ep-integration.yml21# Scheduled + on demand, plus on PRs that touch any harness so they stayCOMMENT
MEDIUM.github/workflows/ep-integration.yml99 # installed wheel on `import onnxsim`. Reference the harness by absoluteCOMMENT
MEDIUM.github/workflows/ep-integration.yml141 # installed wheel on `import onnxsim`. Reference the harness by absoluteCOMMENT
MEDIUM.github/workflows/ep-integration.yml189 # installed wheel on `import onnxsim`. Reference the harness by absoluteCOMMENT
MEDIUM.github/workflows/apple-integration.yml14# either harness so they stay valid.COMMENT
MEDIUM.github/workflows/apple-integration.yml60 # installed wheel on `import onnxsim`. Reference the harness by absoluteCOMMENT
MEDIUM.github/workflows/apple-integration.yml97 # installed wheel on `import onnxsim`. Reference the harness by absoluteCOMMENT
MEDIUM.github/workflows/rknn-integration.yml9# NCHW-vs-NHWC compatibility issues this harness works around.COMMENT
MEDIUM.github/workflows/rknn-integration.yml11# Scheduled + on demand, plus on PRs that touch the harness so it staysCOMMENT
22 more matches not shown…
AI Structural Patterns128 hits · 111 pts
SeverityFileLineSnippetContext
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py2699CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py5873CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py6870CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py18077CODE
LOW…ter-flash/scripts/tflite_schema/schema_py_generated.py19619CODE
LOWtests/test_cross_layer_equalization.py76CODE
LOWtests/test_fuse_gqa.py47CODE
LOWtests/test_deform_conv_to_gather.py206CODE
LOWtests/test_fuse_attention.py94CODE
LOWtests/test_fuse_attention.py303CODE
LOWtests/test_fuse_attention.py538CODE
LOWtests/test_structured_pruning_cpp.py8334CODE
LOWtests/test_qmoe_pruning_cpp.py236CODE
LOWtests/test_qmoe_pruning_cpp.py447CODE
LOWtests/test_trt_batched_nms.py70CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py2105CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py2412CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py2623CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py2766CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py2943CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py3035CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py3145CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py3497CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py3659CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py3799CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py3893CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py3973CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py4098CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py4165CODE
LOWtests/test_attention_head_wanda_pruning_cpp.py4355CODE
LOWtests/test_dynamic_quantize_attention.py73CODE
LOWtests/test_trt_batched_rotated_nms.py78CODE
LOWtests/test_qwen_drive_perception_reconstruct.py722CODE
LOWscripts/apple/train_block_step_coreml.py51CODE
LOWscripts/apple/train_mlp_step_coreml.py71CODE
LOWscripts/apple/export_llm_to_coreml.py179CODE
LOWscripts/android/hexagon_resize2x.py60CODE
LOWscripts/android/vision_models/rtdetr/model.py94CODE
LOWscripts/axera/pulsar2_docker.py240CODE
LOWscripts/axera/pulsar2_docker.py581CODE
LOWscripts/axera/llm_layer_loop.py506CODE
LOWscripts/axera/llm_layer_loop.py680CODE
LOWscripts/axera/make_training_calib.py63CODE
LOWscripts/axera/mcode.py94CODE
LOWscripts/axera/finetune.py92CODE
LOWscripts/axera/step_runner.py2623CODE
LOWscripts/xdna/run_resnet_xdna.py149CODE
LOWscripts/xdna/maxpool_design.py24CODE
LOWscripts/xdna/quantized_add_relu_design.py23CODE
LOWscripts/xdna/fused_bottleneck_design.py28CODE
LOWscripts/xdna/layer_engine_host.py47CODE
LOWscripts/xdna/parallel_projection_design.py26CODE
LOWonnxsim/crown.py1930CODE
LOWonnxsim/crown.py2029CODE
LOWonnxsim/moequant.py199CODE
LOWonnxsim/squeezellm.py65CODE
LOWonnxsim/quark_weight_rounding.py415CODE
LOWonnxsim/quark_weight_rounding.py834CODE
LOWonnxsim/quark_weight_rounding.py910CODE
LOWonnxsim/quark_fakequant_graph.py490CODE
68 more matches not shown…
Modern AI Meta-Vocabulary43 hits · 102 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_symexpr_kv_cache_consistency.py3# evaluator actually fold the shape scaffolding a real KV-cache transformerCOMMENT
MEDIUMtests/test_symexpr_kv_cache_consistency.py22# * ``test_onnxsim_removes_kv_cache_shape_scaffolding``: the scaffoldingCOMMENT
MEDIUMtests/test_symexpr_kv_cache_consistency.py112 # fix for both the correctness bug and the vacuous scaffoldingCOMMENT
MEDIUMtests/test_symexpr_kv_cache_consistency.py223 # actually load-bearing: onnxsim must not make the scaffolding *worse*COMMENT
MEDIUMtests/test_graph_grad_templates.py223 # and Identity (this test's own copy-out scaffolding, not something aCOMMENT
MEDIUMtests/test_axera_conv_learn_128_widegap.py79 # the scaffold region (everything else) is a separate, documented, partial result.COMMENT
MEDIUMtests/test_axera_conv_learn_128_widegap.py153 # ~0.13% differed in the real campaign (the unresolved ~20% of scaffold bits,COMMENT
MEDIUMtests/test_fireredaudio.py7# generation (zero-shot/instruct TTS, semantic/acoustic speech editing, voiceCOMMENT
MEDIUM⚡tests/test_simple.py371 # scaffolding standing. The SymExpr evaluator keeps the dim as `384*batch`,STRING
MEDIUM⚡tests/test_simple.py374 # batch -- so the scaffolding collapses.STRING
MEDIUMtests/test_simple.py301 # -- so the whole Shape -> Gather -> Concat scaffolding collapses away.STRING
MEDIUMtests/test_renesas_legalize.py298# --- legalize() / as_custom_rewriter() orchestration ---STRING
MEDIUMtests/test_axera_conv_learn_256to512.py70 # scaffold region -- the weight bits themselves are byte-exact everywhere else.COMMENT
MEDIUMtests/test_axera_conv_learn_256to512.py122 # that byte mapped) -- scaffold/const bytes may differ due to the second passCOMMENT
MEDIUMtests/test_moved_optimizer_passes.py235 # scaffolding), so no batched MatMul remains.STRING
MEDIUMtests/test_moved_optimizer_passes.py296# scaffolding between two linear layers separated by an element-wise op)STRING
MEDIUMtests/test_moved_optimizer_passes.py323 # The reshape scaffolding around the Relu is cancelled: at most the twoSTRING
MEDIUMtests/test_onnxnet_integration.py132 # Node removal: the scaffolding Identity nodes carry no architecturalSTRING
MEDIUMtests/test_tensorrt_sparsity.py99 # rank-agnostic reshape/slice scaffold must reproduce this exactly.STRING
MEDIUMtests/test_tensorrt_sparsity.py126 # (rank-agnostic) scaffold rather than guessing 2-D. onnx.parser has noSTRING
MEDIUM⚡tests/test_formal_verify_rewrite_trt_batched_nms.py100# Part 1: Z3 lemmas for the pass's own orchestration logicCOMMENT
MEDIUM⚡tests/test_axera_conv_learn_wide.py73 assert len(mismatched) > 0 # the scaffold region is real, not a fluke of this buildCODE
MEDIUMtests/test_graph_grad.py141 # so the allowlist check below can tell this scaffolding's own IdentityCOMMENT
MEDIUMtests/test_graph_grad.py1462 # (GradAddTemplated's inlined body) is not scaffolding and must count.COMMENT
MEDIUMtests/test_axera_conv_weight_learn.py86 # scaffolding this call does not touch.COMMENT
MEDIUMdocs/axera-conv-compose-tiled-fix.md1# Does the tiled scaffold layout fix `docs/axera-conv-compose-real.md`'s composition bug? No -- but a different, real buCOMMENT
MEDIUMdocs/axera-conv-weight-learn-256to512.md1# The widest Conv shapes in the ResNet18 step: weight codes hold, the scaffold does notCOMMENT
MEDIUMdocs/axera-conv-weight-learn-wide.md55## The requantisation/scaffold region: real, load-bearing, and only ~51% recoveredCOMMENT
MEDIUMdocs/axera-conv-compose-real.md101## Finding 3: the scaffold does not patch correctly, even for the terminal ConvCOMMENT
MEDIUMdocs/axera-conv-weight-learn-128-and-widegap.md1# The 128/128 Conv shape, and does more data close the 256/256 scaffold gap?COMMENT
MEDIUMdocs/axera-conv-weight-learn-128-and-widegap.md46### Device verification: the entire residual is the (separately known, unpatched) zero-point -- not the unresolved scaffCOMMENT
MEDIUMdocs/axera-conv-weight-learn-128-and-widegap.md93## Part B: does more data close 256/256's scaffold gap, or is it a plateau?COMMENT
MEDIUMdocs/axera-conv-256to512-tiled-fix.md1# Fixing the two Conv shapes bit-permutation learning got wrong, with the tiled scaffold formulaCOMMENT
MEDIUMdocs/axera-conv-256to512-tiled-fix.md53## Fact 2: Cin > 128 duplicates the scaffoldCOMMENT
MEDIUMdocs/axera-conv-scaffold-arithmetic.md1# The wide-Cout Conv scaffold is a deterministic per-tile layout, not a bit-permutation-learned regionCOMMENT
MEDIUMdocs/axera-matmul-scaffold-arithmetic.md1# Does MatMul/Gemm have a Conv-Wbt-style arithmetic scaffold? No -- and the existing evidence already shows why, preciseCOMMENT
MEDIUMscripts/axera/conv_256to512_tiled_fix.py3(PR #1784) arithmetic scaffold formula -- extended here with two real layout facts thatSTRING
MEDIUMscripts/axera/emitter.py43#: the weights; it is part of the shape's own scaffolding.COMMENT
MEDIUMscripts/axera/conv_compose_tiled_fix.py25 #1783's Finding 2) and the scaffold's `M` now confirmed to matchSTRING
MEDIUMscripts/axera/conv_compose_tiled_fix.py28 statistically indistinguishable from PR #1783's own buggy-scaffoldSTRING
MEDIUMscripts/axera/conv_compose_tiled_fix.py124 """Reproduces PR #1783's actual (buggy) scaffold M values: the formulaSTRING
MEDIUMscripts/regression/worker.py65 # The parent directory name is orchestrate()'s `local` (model_id withCOMMENT
MEDIUMonnxsim/tensorrt_sparsity.py119 pass # rank unknown for every tensor -- every node falls back to the general scaffoldCODE
Self-Referential Comments174 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py126 # This file is generated by setup.py. DO NOT EDIT!COMMENT
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py866 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py988 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py1096 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py1260 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py1586 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py1708 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py1830 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py1952 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py2118 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py2342 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py2492 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py2845 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py3151 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py3273 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py3603 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py3947 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py4041 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py4149 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py4229 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py4351 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py4445 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py4567 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py4793 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py4873 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py5109 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py5245 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py5471 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py6121 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py6403 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py6525 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py6605 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py6769 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py6947 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py7097 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py7261 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py7449 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py7529 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py7637 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py7731 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py7839 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py7961 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py8097 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py8177 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py8271 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py8365 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py8445 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py8525 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py8647 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py8783 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py8933 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py9083 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py9177 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py9271 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py9351 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py9418 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py9485 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py9607 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py9674 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ter-flash/scripts/tflite_schema/schema_py_generated.py9741 """This method is deprecated. Please switch to GetRootAs."""STRING
114 more matches not shown…
Modern Structural Boilerplate65 hits · 65 pts
SeverityFileLineSnippetContext
LOWscripts/rknn3/llm_export.py41def _update_config(config, attr_names, value) -> None:CODE
LOWscripts/axera/reshape_dma_emit.py73def _set_dims(value_info, shape) -> None:CODE
LOWscripts/axera/reshape_emit.py143def _set_dims(value_info, shape: Shape) -> None:CODE
LOWscripts/axera/memory_emit.py120def _set_dims(value_info, shape: list[int]) -> None:CODE
LOWscripts/axera/transpose_emit.py67def _set_dims(value_info, shape: list[int]) -> None:CODE
LOWscripts/axera/elementwise_two_input_tile_predict.py103__all__ = ["predict_params"]CODE
LOWscripts/axera/reshape_record_emit.py406def _set_dims(value_info, shape: Sequence[int]) -> None:CODE
LOWscripts/xdna/__init__.py60__all__ = [CODE
LOWonnxsim/quark_boundary_qdq.py395__all__ = ["insert_boundary_quant_nodes"]CODE
LOWonnxsim/qat_interop.py168__all__ = [CODE
LOWonnxsim/qat_interop.py1436def _set_metadata(model: onnx.ModelProto, key: str, value: str) -> None:CODE
LOWonnxsim/_onnx_compat.py19__all__ = ["INT4", "UINT4"]CODE
LOWonnxsim/to_torch.py52__all__ = ["onnx_to_torch", "onnx_state_dict"]CODE
LOWonnxsim/quark_weight_rounding.py545def _set_attr(node: onnx.NodeProto, name: str, value: Optional[int]) -> None:CODE
LOWonnxsim/quark_weight_rounding.py1040__all__ = [CODE
LOWonnxsim/quark_fakequant_graph.py694__all__ = [CODE
LOWonnxsim/webgpu_kernel_metadata.py310def _set_node_metadata(node: onnx.NodeProto, key: str, value: str) -> None:CODE
LOWonnxsim/quark_fakequant_eval.py268__all__ = ["run_fake_quantized"]CODE
LOWonnxsim/activation_sensitivity.py75__all__ = [CODE
LOWonnxsim/webgpu_kernel_tuning.py80__all__ = ["KernelCandidates", "generate_kernel_candidates"]CODE
LOWonnxsim/quark_quarot.py302__all__ = ["make_rotation", "rotate_model"]CODE
LOWonnxsim/quark_compat.py3265__all__ = [CODE
LOWonnxsim/quark_finetune.py1937__all__ = [CODE
LOWonnxsim/einsum_decompose.py36__all__ = ["decompose_einsum"]CODE
LOWonnxsim/quark_fusions.py63__all__ = [CODE
LOWonnxsim/quark_fusions.py97def _set_nodes(graph: onnx.GraphProto, nodes: Sequence[onnx.NodeProto]) -> None:CODE
LOWonnxsim/rustnn_runtime.py50__all__ = [CODE
LOWonnxsim/bitwise_decompose.py53__all__ = ["decompose_bitwise_xor"]CODE
LOWonnxsim/quark_dynamic.py282__all__ = ["quantize_dynamic_integer"]CODE
LOWonnxsim/webnn_tinygrad_tuning.py52__all__ = [CODE
LOWonnxsim/webnn_tinygrad_tuning.py372def _set_node_metadata(node: onnx.NodeProto, key: str, value: str) -> None:CODE
LOWonnxsim/memory_planning.py15__all__ = [CODE
LOWonnxsim/profile_plot.py37__all__ = ["load_node_counts", "plot_node_reduction"]CODE
LOWonnxsim/__init__.py497__all__ = [CODE
LOWonnxsim/quark_preset_graphs.py908__all__ = [CODE
LOW⚡onnxsim/stable_relu_prune.py64__all__ = ["LayerReport", "PruneReport", "analyze", "apply", "prune_units"]CODE
LOW⚡onnxsim/stable_relu_prune.py746def _set_init(g: onnx.GraphProto, name: str, arr: np.ndarray) -> None:CODE
LOWonnxsim/quark_calibration.py28__all__ = ["QuarkHistogram", "lwp_select"]CODE
LOWonnxsim/quark_block_formats.py279__all__ = ["bf16_round", "bfp16", "bfp_prime", "fp16_round", "mx"]CODE
LOWonnxsim/quark_tools_extra.py142def _set_opset(model: onnx.ModelProto, domain: str, version: int) -> None:CODE
LOWonnxsim/quark_tools_extra.py213 def set_nhwc(vi: onnx.ValueInfoProto, chw: Tuple[int, int, int]) -> None:CODE
LOWonnxsim/quark_tools_extra.py1398__all__ = [CODE
LOWonnxsim/ranges.py56def set_range(model: onnx.ModelProto, name: str, lo: Bound, hi: Bound) -> None:CODE
LOWonnxsim/quant_verify.py1259__all__ = [CODE
LOWonnxsim/quark_cle.py215__all__ = ["equalize_linear_layers"]CODE
LOWonnxsim/quark_smoothquant.py142__all__ = ["apply_smooth_quant_config", "smooth_quant"]CODE
LOWonnxsim/full_qdq.py53__all__ = ["quantize_full_qdq", "quantized_io", "sampling_coordinate_tensors"]CODE
LOWonnxsim/full_qdq.py917 def set_qp(x: str) -> None:CODE
LOWonnxsim/shape_cost.py1239 def set_type(vi: onnx.ValueInfoProto, n: str, et: int) -> None:CODE
LOWonnxsim/quark_equalization.py650__all__ = [CODE
LOWonnxsim/xnnpack_codegen.py3__all__ = [CODE
LOWonnxsim/model_info.py44__all__ = [CODE
LOWonnxsim/model_info.py1116def _set_metadata(proto, key: str, value: str) -> None:CODE
LOWonnxsim/quark_npu.py206 def set_pos(self, node: onnx.NodeProto, new_pos: int) -> None:CODE
LOWonnxsim/gridsample_plan.py32__all__ = ["grid_sample_plan", "GridSampleTap"]CODE
LOWonnxsim/tinygrad_uop_export.py112__all__ = [CODE
LOWonnxsim/quark_hadamard.py276__all__ = [CODE
LOWonnxsim/webgpu_tinygrad_codegen.py128__all__ = [CODE
LOWonnxsim/onnx_simplifier.py8755def _set_metadata(model: onnx.ModelProto, key: str, value: str) -> None:CODE
LOWonnxsim/quark_mixing.py309 def _set_init(self, name: str, value: np.ndarray) -> None:CODE
5 more matches not shown…
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOW⚡…est_formal_verify_fuse_consecutive_reduce_unsqueeze.py152 # Step 1: ONNX's own definition of keepdims -- keepdims=1 computes theCOMMENT
LOW⚡…est_formal_verify_fuse_consecutive_reduce_unsqueeze.py161 # Step 2: Unsqueeze(keepdims=0 result, axes) read at a full-rank index.COMMENT
LOWonnxsim/passes/rewrite_gathernd_to_gather.h428 // Step 1: flatten data's leading b+k axes into one.COMMENT
LOWonnxsim/passes/rewrite_gathernd_to_gather.h440 // Step 2: per-column extraction, negative-index normalization, andCOMMENT
Structural Annotation Overuse4 hits · 8 pts
SeverityFileLineSnippetContext
LOW⚡…est_formal_verify_fuse_consecutive_reduce_unsqueeze.py152 # Step 1: ONNX's own definition of keepdims -- keepdims=1 computes theCOMMENT
LOW⚡…est_formal_verify_fuse_consecutive_reduce_unsqueeze.py161 # Step 2: Unsqueeze(keepdims=0 result, axes) read at a full-rank index.COMMENT
LOWonnxsim/passes/rewrite_gathernd_to_gather.h428 // Step 1: flatten data's leading b+k axes into one.COMMENT
LOWonnxsim/passes/rewrite_gathernd_to_gather.h440 // Step 2: per-column extraction, negative-index normalization, andCOMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUM⚡tools/onnx-k210-flash/web/ncc/ncc.js1var create_ncc=(()=>{var _scriptName=globalThis.document?.currentScript?.src;return async function(moduleArg={}){var modCODE
LOW⚡tools/onnx-k210-flash/web/ncc/ncc.js1var create_ncc=(()=>{var _scriptName=globalThis.document?.currentScript?.src;return async function(moduleArg={}){var modCODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWbuild_wasm_pyodide.sh66# Usage:COMMENT
LOWscripts/test_rust_package_standalone.sh14# Usage:COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWbuild_wasm.sh4# Check if emcmake is availableCOMMENT
LOWonnxsim/full_qdq.py55# Output values are a subset / convex combination of the data input's valuesCOMMENT