On-device AI across mobile, embedded and edge for PyTorch
This report summarizes scanner evidence for pytorch/executorch, a Python project with 5,087 GitHub stars. SynthScan examined 1,811,658 lines of code across 8514 source files, recording 17239 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 12.1 (Moderate 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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 12981 finding(s).
Are imports declared and package/API names verified? 2312 finding(s).
Are wrappers, guards, and repeated structures necessary? 11134 finding(s).
Which changes need focused human review? 17239 finding(s).
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.
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.
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.
The scanner identified 17239 distinct pattern matches across 26 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install_executorch.py | 111 | def get_required_submodule_paths(): | CODE |
| LOW | install_executorch.py | 132 | def check_and_update_submodules(): | CODE |
| LOW | install_requirements.py | 171 | def install_optional_example_requirements(use_pytorch_nightly): | CODE |
| LOW | setup.py | 935 | def _verify_cuda_runtime_matches_train(cmake_cache_dir: Optional[str]) -> None: | CODE |
| LOW | setup.py | 1008 | def _sibling_library_search_paths(depth: int = 1) -> List[str]: | CODE |
| LOW | setup.py | 1033 | def _cuda_runtime_search_paths(depth: int = 1) -> List[str]: | CODE |
| LOW | setup.py | 1049 | def _is_cuda_toolkit_directory(entry: str) -> bool: | CODE |
| LOW | setup.py | 1074 | def _is_unresolved_math_library_directory(entry: str) -> bool: | CODE |
| LOW | setup.py | 1372 | def _windows_import_libraries() -> List["BuiltFile"]: | CODE |
| LOW | setup.py | 1736 | def _resubstitute_tracer_definition(self) -> None: | CODE |
| LOW | setup.py | 1748 | def copy_extensions_to_source(self) -> None: | CODE |
| LOW | setup.py | 1848 | def _append_relative_search_paths(entries: List[str], depth: int = 1) -> None: | CODE |
| LOW | setup.py | 2042 | def _strip_absolute_runtime_paths(library: Path, ships_cuda: bool) -> None: | CODE |
| LOW | setup.py | 2445 | def _write_cmake_version_file(self, dst_root: str) -> None: | CODE |
| LOW | setup.py | 2571 | def _substitute_tracer_definition(path: str, cmake_cache_dir: str) -> None: | CODE |
| LOW | setup.py | 2604 | def _substitute_tracer_definition_from_args(destination) -> None: | CODE |
| LOW | install_utils.py | 299 | def _cuda_version_to_pytorch_suffix(major, minor): | CODE |
| LOW | kernels/test/gen_supported_features.py | 51 | def generate_header_entry_text(namespace: str, feature: str, properties: dict): | CODE |
| LOW | kernels/test/gen_supported_features.py | 93 | def generate_definition_entry(d: dict): | STRING |
| LOW | kernels/test/gen_supported_features.py | 105 | def generate_definition_entry_text(namespace: str, feature: str, value: Any): | STRING |
| LOW⚡ | kernels/test/test_bitwise_shift.py | 115 | def test_left_shift_tensor_tensor(self): | CODE |
| LOW⚡ | kernels/test/test_bitwise_shift.py | 122 | def test_left_shift_tensor_scalar(self): | CODE |
| LOW⚡ | kernels/test/test_bitwise_shift.py | 128 | def test_right_shift_tensor_tensor(self): | CODE |
| LOW⚡ | kernels/test/test_bitwise_shift.py | 135 | def test_right_shift_tensor_scalar(self): | CODE |
| LOW⚡ | kernels/test/test_case_gen.py | 36 | def make_out_dynamic_shape_bound_shape_same(tensor: torch.Tensor): | CODE |
| LOW⚡ | kernels/test/test_case_gen.py | 43 | def make_out_dynamic_shape_bound_shape_larger(tensor: torch.Tensor): | CODE |
| LOW⚡ | kernels/test/test_case_gen.py | 51 | def make_out_dynamic_shape_unbound_shape(tensor: torch.Tensor): | CODE |
| LOW | kernels/test/test_case_gen.py | 78 | def make_test_cases_dynamic_shape(*args): | CODE |
| LOW | kernels/test/test_case_gen.py | 104 | def make_test_cases_broadcast_two_input_tensor(x, y, cpp_args, torch_args, torch_fn): | CODE |
| LOW | kernels/test/test_case_gen.py | 282 | def make_simple_generated_case(*args, torch_fn): | CODE |
| LOW | kernels/test/test_case_gen.py | 362 | def gen_test_case_op_as_strided_copy(): | STRING |
| LOW | kernels/test/test_case_gen.py | 367 | def gen_test_case_op_bitwise_not(): | STRING |
| LOW | kernels/test/test_case_gen.py | 436 | def gen_test_case_op_detach_copy(): | STRING |
| LOW | kernels/test/test_case_gen.py | 457 | def gen_test_case_op_full_like(): | STRING |
| LOW | kernels/test/test_case_gen.py | 520 | def gen_test_case_op_log_softmax(): | STRING |
| LOW | kernels/test/test_case_gen.py | 661 | def gen_test_case_op_transpose(): | STRING |
| LOW | kernels/test/test_case_gen.py | 666 | def gen_test_case_op_unsqueeze(): | STRING |
| LOW | kernels/test/test_case_gen.py | 724 | def gen_test_case_op_embedding(): | STRING |
| LOW | kernels/test/test_case_gen.py | 734 | def gen_test_case_op_floor_divide(): | STRING |
| LOW | kernels/test/test_case_gen.py | 791 | def gen_test_case_op_select_scatter(): | STRING |
| LOW | kernels/test/test_case_gen.py | 847 | def gen_test_case_op_convolution(): | STRING |
| LOW | kernels/test/test_case_gen.py | 857 | def gen_test_case_op_masked_fill(): | STRING |
| LOW | kernels/quantized/test/test_quant_dequant_per_token.py | 34 | def test_quantize_per_token_large_tensor(self): | CODE |
| LOW | kernels/quantized/test/test_quant_dequant_per_token.py | 47 | def test_quantize_per_token_high_rank(self): | CODE |
| LOW | kernels/quantized/test/test_quant_dequant_per_token.py | 60 | def test_quantize_per_token_dynamic(self): | CODE |
| LOW | kernels/quantized/test/test_quant_dequant_per_token.py | 85 | def test_dequantize_per_token(self): | CODE |
| LOW | kernels/quantized/test/test_quant_dequant_per_token.py | 100 | def test_dequantize_per_token_large_tensor(self): | CODE |
| LOW | kernels/quantized/test/test_quant_dequant_per_token.py | 113 | def test_dequantize_per_token_high_rank(self): | CODE |
| LOW | kernels/quantized/test/test_quant_dequant_per_token.py | 126 | def test_dequantize_per_token_dynamic(self): | CODE |
| LOW⚡ | kernels/quantized/test/test_out_variants.py | 30 | def test_choose_qparams_tensor_to_out_variant(self) -> None: | CODE |
| LOW⚡ | kernels/quantized/test/test_out_variants.py | 38 | def test_dequantize_per_tensor_to_out_variant(self) -> None: | CODE |
| LOW⚡ | kernels/quantized/test/test_out_variants.py | 46 | def test_dequantize_per_tensor_tensor_to_out_variant(self) -> None: | CODE |
| LOW⚡ | kernels/quantized/test/test_out_variants.py | 56 | def test_dequantize_per_channel_to_out_variant(self) -> None: | CODE |
| LOW⚡ | kernels/quantized/test/test_out_variants.py | 64 | def test_mixed_linear_to_out_variant(self) -> None: | CODE |
| LOW⚡ | kernels/quantized/test/test_out_variants.py | 70 | def test_mixed_mm_to_out_variant(self) -> None: | CODE |
| LOW⚡ | kernels/quantized/test/test_out_variants.py | 76 | def test_quantize_per_tensor_to_out_variant(self) -> None: | CODE |
| LOW⚡ | kernels/quantized/test/test_out_variants.py | 84 | def test_quantize_per_tensor_tensor_to_out_variant(self) -> None: | CODE |
| LOW⚡ | kernels/quantized/test/test_out_variants.py | 94 | def test_quantize_per_channel_to_out_variant(self) -> None: | CODE |
| LOW | …rnels/portable/test/test_grid_sampler_2d_executorch.py | 119 | def test_all_mode_combinations(self): | CODE |
| LOW | …rnels/portable/test/test_grid_sampler_2d_executorch.py | 361 | def test_exact_boundary_coordinates(self): | CODE |
| 8882 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | kernels/test/test_bitwise_shift.py | 111 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | kernels/test/test_bitwise_shift.py | 113 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | kernels/test/test_bitwise_shift.py | 141 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | kernels/test/test_bitwise_shift.py | 143 | # ========================================================================== | COMMENT |
| MEDIUM | extension/llm/export/quant/quantize.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | extension/llm/export/quant/quantize.py | 310 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | extension/llm/export/quant/quantize.py | 342 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ytorch/executorch/ImageProcessorInstrumentationTest.kt | 39 | // ─── Config validation ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ytorch/executorch/ImageProcessorInstrumentationTest.kt | 79 | // ─── Lifecycle ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ytorch/executorch/ImageProcessorInstrumentationTest.kt | 101 | // ─── Channel order and normalization ──────────────────────────────────────── | COMMENT |
| MEDIUM | …ytorch/executorch/ImageProcessorInstrumentationTest.kt | 134 | // ─── Geometry ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ytorch/executorch/ImageProcessorInstrumentationTest.kt | 200 | // ─── Orientation ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ytorch/executorch/ImageProcessorInstrumentationTest.kt | 253 | // ─── Reuse ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ytorch/executorch/ImageProcessorInstrumentationTest.kt | 288 | // ─── YUV ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ytorch/executorch/ImageProcessorInstrumentationTest.kt | 545 | // ─── Helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt | 65 | // ─── dataFiles constructor variants ───────────────────────────────────────── | COMMENT |
| MEDIUM | …a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt | 111 | // ─── LlmModuleConfig with dataPath ────────────────────────────────────────── | COMMENT |
| MEDIUM | …a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt | 154 | // ─── Invalid data file paths ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt | 200 | // ─── Baseline equivalence ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt | 227 | // ─── LlmModuleConfig builder validation ───────────────────────────────────── | COMMENT |
| MEDIUM | …a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt | 268 | // ─── Helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …org/pytorch/executorch/AsrModuleInstrumentationTest.kt | 42 | // ─── Constructor validation ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …org/pytorch/executorch/AsrModuleInstrumentationTest.kt | 102 | // ─── Lifecycle ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …org/pytorch/executorch/AsrModuleInstrumentationTest.kt | 146 | // ─── Transcribe validation ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …org/pytorch/executorch/AsrModuleInstrumentationTest.kt | 161 | // ─── AsrTranscribeConfig ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …org/pytorch/executorch/AsrModuleInstrumentationTest.kt | 225 | // ─── Helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …Test/java/org/pytorch/executorch/LlmPerformanceTest.kt | 219 | // ─── LlmCallback ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …Test/java/org/pytorch/executorch/LlmPerformanceTest.kt | 241 | // ─── Helpers ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | .ci/scripts/test_torchao_huggingface_checkpoints.sh | 4 | # ------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_torchao_huggingface_checkpoints.sh | 6 | # ------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 12 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 14 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 87 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 89 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 108 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 110 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 121 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 123 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 134 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 136 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 207 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 209 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 224 | # ---------------------------- | COMMENT |
| MEDIUM | .ci/scripts/test_wheel_package_qnn.sh | 226 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | backends/apple/metal/tests/test_modules.py | 1608 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | backends/apple/metal/tests/test_modules.py | 1610 | # ============================================================================= | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 138 | # ============================================================================= | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 140 | # ============================================================================= | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 155 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 157 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 172 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 191 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 212 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 237 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 239 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 256 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 258 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 277 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 294 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 306 | # ------------------------------------------------------------------------- | COMMENT |
| 748 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kernels/prim_ops/test/prim_ops_test.py | 10 | CODE | |
| LOW | kernels/quantized/test/test_quant_dequant_per_token.py | 12 | CODE | |
| LOW | kernels/quantized/test/test_out_variants.py | 10 | CODE | |
| LOW | kernels/quantized/test/test_out_variants.py | 12 | CODE | |
| LOW | kernels/quantized/test/test_out_variants.py | 13 | CODE | |
| LOW | kernels/quantized/test/test_out_variants.py | 15 | CODE | |
| LOW | extension/pytree/__init__.py | 26 | CODE | |
| LOW | extension/pytree/__init__.py | 26 | CODE | |
| LOW | extension/pytree/__init__.py | 26 | CODE | |
| LOW | extension/pytree/__init__.py | 40 | CODE | |
| LOW | extension/pytree/__init__.py | 40 | CODE | |
| LOW | extension/pytree/__init__.py | 40 | CODE | |
| LOW | extension/llm/custom_ops/bench_gated_delta_rule.py | 25 | CODE | |
| LOW | extension/llm/custom_ops/test_quantized_moe.py | 18 | CODE | |
| LOW | extension/llm/custom_ops/test_quantized_moe.py | 36 | CODE | |
| LOW | …tension/llm/custom_ops/test_update_cross_attn_cache.py | 12 | CODE | |
| LOW | extension/llm/custom_ops/test_preprocess_custom_ops.py | 14 | CODE | |
| LOW | extension/llm/custom_ops/custom_ops.py | 34 | CODE | |
| LOW | extension/llm/custom_ops/test_sdpa_with_kv_cache.py | 14 | CODE | |
| LOW | extension/llm/custom_ops/test_gated_delta.py | 15 | CODE | |
| LOW | extension/llm/custom_ops/test_update_cache.py | 14 | CODE | |
| LOW | extension/llm/custom_ops/model_sharding.py | 10 | CODE | |
| LOW | extension/llm/custom_ops/test_quantized_sdpa.py | 14 | CODE | |
| LOW | extension/llm/custom_ops/test_quantized_sdpa.py | 29 | CODE | |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 3 | CODE | |
| LOW | extension/llm/cache/update_and_attend.py | 15 | CODE | |
| LOW | extension/llm/cache/reference_cache.py | 29 | CODE | |
| LOW | extension/llm/runner/__init__.py | 18 | CODE | |
| LOW | extension/llm/runner/__init__.py | 18 | CODE | |
| LOW | extension/llm/runner/__init__.py | 18 | CODE | |
| LOW | extension/llm/runner/__init__.py | 18 | CODE | |
| LOW | extension/llm/runner/__init__.py | 18 | CODE | |
| LOW | extension/llm/batching/sampler.py | 33 | CODE | |
| LOW | extension/llm/export/gguf.py | 30 | CODE | |
| LOW | extension/llm/export/quantize.py | 223 | CODE | |
| LOW | extension/llm/export/__init__.py | 7 | CODE | |
| LOW | extension/llm/export/__init__.py | 8 | CODE | |
| LOW | extension/llm/export/__init__.py | 9 | CODE | |
| LOW | extension/llm/export/__init__.py | 10 | CODE | |
| LOW | extension/llm/export/export_passes.py | 114 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 7 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 7 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 7 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 7 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 7 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 14 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 14 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 14 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 14 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 20 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 20 | CODE | |
| LOW | extension/llm/export/quant/__init__.py | 20 | CODE | |
| LOW | extension/llm/modules/__init__.py | 7 | CODE | |
| LOW | extension/llm/modules/__init__.py | 7 | CODE | |
| LOW | extension/llm/modules/__init__.py | 7 | CODE | |
| LOW | extension/llm/modules/__init__.py | 7 | CODE | |
| LOW | extension/llm/modules/__init__.py | 13 | CODE | |
| LOW | extension/llm/modules/__init__.py | 13 | CODE | |
| LOW | extension/llm/modules/__init__.py | 14 | CODE | |
| LOW | extension/llm/modules/turboquant/__init__.py | 7 | CODE | |
| 1684 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | extension/module/test/resources/gen_bundled_program.py | 0 | an example model with multi-methods. each method has multiple input and single output | STRING |
| HIGH | docs/source/bundled-io.md | 0 | an example model with multi-methods. each method has multiple input and single output | STRING |
| HIGH | devtools/bundled_program/util/test_util.py | 0 | an example model with multi-methods. each method has multiple input and single output | STRING |
| HIGH | …ends/apple/coreml/quantizer/_coreml_quantizer_utils.py | 0 | given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retu | STRING |
| HIGH | backends/vulkan/quantizer/vulkan_quantizer_utils.py | 0 | given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retu | STRING |
| HIGH | backends/xnnpack/quantizer/xnnpack_quantizer_utils.py | 0 | given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retu | STRING |
| HIGH | backends/qualcomm/quantizer/rules.py | 0 | given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retu | STRING |
| HIGH | backends/mediatek/quantizer/annotator.py | 0 | given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retu | STRING |
| HIGH | backends/nxp/tests/simple_models.py | 0 | call `torch.max_pool2d` that is a noop, but it enforces the channelsfirst format in the `nodeformatinference`. | STRING |
| HIGH | …ir/converter/node_converter/test_mean_dim_converter.py | 0 | call `torch.max_pool2d` that is a noop, but it enforces the channelsfirst format in the `nodeformatinference`. | STRING |
| HIGH | …sts/ir/converter/node_converter/test_amax_converter.py | 0 | call `torch.max_pool2d` that is a noop, but it enforces the channelsfirst format in the `nodeformatinference`. | STRING |
| HIGH | …sts/ir/converter/node_converter/test_amin_converter.py | 0 | call `torch.max_pool2d` that is a noop, but it enforces the channelsfirst format in the `nodeformatinference`. | STRING |
| HIGH | …rter/node_converter/test_sum_dim_int_list_converter.py | 0 | call `torch.max_pool2d` that is a noop, but it enforces the channelsfirst format in the `nodeformatinference`. | STRING |
| HIGH | …ir/converter/node_converter/test_mean_dim_converter.py | 0 | when `keep_dim = false`, the `sum` operator changes the rank, so the format have to be explicitly handled. the tests in | STRING |
| HIGH | …sts/ir/converter/node_converter/test_amax_converter.py | 0 | when `keep_dim = false`, the `sum` operator changes the rank, so the format have to be explicitly handled. the tests in | STRING |
| HIGH | …sts/ir/converter/node_converter/test_amin_converter.py | 0 | when `keep_dim = false`, the `sum` operator changes the rank, so the format have to be explicitly handled. the tests in | STRING |
| HIGH | …rter/node_converter/test_sum_dim_int_list_converter.py | 0 | when `keep_dim = false`, the `sum` operator changes the rank, so the format have to be explicitly handled. the tests in | STRING |
| HIGH | backends/nxp/backend/edge_helper.py | 0 | get the static data from a given node. if it doesn't have any data, return `none`. | STRING |
| HIGH | backends/nxp/aten_passes/split_group_convolution.py | 0 | get the static data from a given node. if it doesn't have any data, return `none`. | STRING |
| HIGH | …ends/nxp/aten_passes/fuse_batch_norm_with_conv_pass.py | 0 | get the static data from a given node. if it doesn't have any data, return `none`. | STRING |
| HIGH | …ds/nxp/aten_passes/fuse_batch_norm_with_linear_pass.py | 0 | get the static data from a given node. if it doesn't have any data, return `none`. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/LogicalOrOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …ds/nxp/backend/ir/lib/tflite/StablehloReduceOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/ZerosLikeOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …/backend/ir/lib/tflite/StablehloReduceWindowOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …kends/nxp/backend/ir/lib/tflite/ReduceWindowOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/EqualOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/PowOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/LessOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/AddOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …s/nxp/backend/ir/lib/tflite/StablehloScatterOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …ends/nxp/backend/ir/lib/tflite/HashtableSizeOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/QuantizeOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/RightShiftOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …xp/backend/ir/lib/tflite/StablehloCustomCallOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/Pool2DOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/SoftmaxOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/ShapeOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …ckends/nxp/backend/ir/lib/tflite/SparsityParameters.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …ds/nxp/backend/ir/lib/tflite/ReverseSequenceOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/LeakyReluOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …ends/nxp/backend/ir/lib/tflite/LSHProjectionOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/Metadata.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …nds/nxp/backend/ir/lib/tflite/StablehloSliceOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/MatrixDiagOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …kends/nxp/backend/ir/lib/tflite/ReadVariableOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | …nxp/backend/ir/lib/tflite/StablehloTransposeOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/LessEqualOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/CallOnceOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/ReverseV2Options.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/RNNOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/DimensionMetadata.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/Int32Vector.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/NegOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/FloorDivOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/LogSoftmaxOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/SignatureDef.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/SelectOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/UniqueOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| HIGH | backends/nxp/backend/ir/lib/tflite/GreaterOptions.py | 0 | this method is deprecated. please switch to getrootas. | STRING |
| 232 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install_requirements.sh | 1 | #!/bin/bash | COMMENT |
| LOW | install_executorch.py | 81 | COMMENT | |
| LOW | CMakeLists.txt | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | CMakeLists.txt | 21 | (rm -rf cmake-out \ | COMMENT |
| LOW | CMakeLists.txt | 201 | "Skip install() rules when ExecuTorch is consumed as a subproject" | COMMENT |
| LOW | CMakeLists.txt | 341 | # | COMMENT |
| LOW | CMakeLists.txt | 1081 | executorch_shared PUBLIC ${_common_include_directories} | COMMENT |
| LOW | CMakeLists.txt | 1381 | # Metal still uses ETensor-based shims (for now) | COMMENT |
| LOW | CMakeLists.txt | 1521 | # These libraries register their operators or their backend from a static | COMMENT |
| LOW | CMakeLists.txt | 1541 | extension_threadpool etdump | COMMENT |
| LOW | CMakeLists.txt | 1561 | # The Torch hop cannot be left out. Without it this extension records no | COMMENT |
| LOW | requirements-examples.txt | 1 | # pip packages needed to run examples. | COMMENT |
| LOW | setup.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | setup.py | 21 | # 2. Redistributions in binary form must reproduce the above copyright notice, | COMMENT |
| LOW | setup.py | 101 | _UNSHIPPABLE_HEADERS = frozenset( | COMMENT |
| LOW | setup.py | 641 | # which is exactly why they have to be removed here instead. | COMMENT |
| LOW | setup.py | 981 | shared with torch instead of shipping a second one. | COMMENT |
| LOW | setup.py | 1161 | "mpmath==1.3.0", | COMMENT |
| LOW | setup.py | 1181 | # release instead would evict it, because a dev release sorts below its own final. | COMMENT |
| LOW | setup.py | 1201 | # with coremltools 9.0 on a Linux aarch64 machine. Keep this in sync with the condition | COMMENT |
| LOW | setup.py | 1821 | # narrows it, which turned a 0o555 build output into 0o777. | COMMENT |
| LOW | setup.py | 2001 | # as a dependency and reaches it through a relative hop, so an absolute toolkit path is both | COMMENT |
| LOW | setup.py | 2101 | ), | COMMENT |
| LOW | setup.py | 2281 | COMMENT | |
| LOW | setup.py | 2361 | # Module is how the documentation tells a C++ application to load and | COMMENT |
| LOW | setup.py | 2381 | # The whole directory except the filter, which includes a regular | COMMENT |
| LOW | setup.py | 2461 | # such as "1.5.0+cpu" or a development suffix, and `find_package(executorch | COMMENT |
| LOW | setup.py | 2681 | # like `TorchConfig.cmake` that are provided by pip packages. | COMMENT |
| LOW | setup.py | 3121 | # used, since it builds one name and prepends a prefix the shared spelling | COMMENT |
| LOW | install_executorch.sh | 1 | #!/bin/bash | COMMENT |
| LOW | install_utils.py | 161 | explicit = os.environ.get("CUDACXX") | COMMENT |
| LOW | kernels/prim_ops/et_copy_index.cpp | 21 | namespace executor { | COMMENT |
| LOW | kernels/prim_ops/et_copy_index.cpp | 41 | // map_1 = torch.ops.map(submodule_0, arg0_1, arg1_1); submodule_0 = | COMMENT |
| LOW | kernels/prim_ops/test/prim_ops_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/prim_ops/test/CMakeLists.txt | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | kernels/test/CMakeLists.txt | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | kernels/test/op_index_select_test.cpp | 261 | run_test_cases(x, /*dim=*/2, /*index=*/index, expected); | COMMENT |
| LOW | kernels/test/op_to_copy_test.cpp | 1 | /* | COMMENT |
| LOW | …nels/test/op_max_pool2d_with_indices_backward_test.cpp | 281 | #undef TEST_ENTRY | COMMENT |
| LOW | kernels/test/op__to_dim_order_copy_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_mean_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_select_copy_test.cpp | 41 | // Based on the split defintion, if we split any dim()=3 and size(1)=2 | COMMENT |
| LOW | kernels/test/op_select_copy_test.cpp | 301 | ET_FORALL_REAL_TYPES_AND(Bool, TEST_ENTRY); | COMMENT |
| LOW | kernels/test/op_select_scatter_test.cpp | 501 | /// zeros(). | COMMENT |
| LOW | kernels/test/UnaryUfuncRealHBBF16ToFloatHBF16Test.h | 21 | // Generic test harness for ops that use unary_ufunc_realhb_to_floath | COMMENT |
| LOW | kernels/test/op_linear_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_stack_test.cpp | 121 | COMMENT | |
| LOW | kernels/test/op_mm_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_amin_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_min_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_native_layer_norm_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_sum_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/supported_features_skip.h | 1 | /* | COMMENT |
| LOW | kernels/test/supported_features_skip.h | 21 | // fbcode: expands to `if (cond) return;` so the test reports PASS, not SKIP. | COMMENT |
| LOW | kernels/test/update_supported_feature_summary.sh | 1 | #!/bin/bash | COMMENT |
| LOW | kernels/test/op_max_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_clamp_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_amax_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_constant_pad_nd_test.cpp | 1 | /* | COMMENT |
| LOW | kernels/test/op_arange_test.cpp | 1 | /* | COMMENT |
| 1408 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pytest-windows.ini | 3 | # This file is intended to be deleted once the enablement is complete. | COMMENT |
| MEDIUM | setup.py | 2303 | # Create the version file. | COMMENT |
| MEDIUM | kernels/portable/test/op_grid_sampler_2d_test.py | 119 | # Create a checkerboard pattern | COMMENT |
| MEDIUM | kernels/portable/test/op_grid_sampler_2d_test.py | 165 | # Create a smooth gradient | COMMENT |
| MEDIUM | kernels/portable/test/op_grid_sampler_2d_test.py | 168 | # Create a fine grid for upsampling | COMMENT |
| MEDIUM | tools/cmake/cmake_cache.py | 20 | # This module is imported both as tools.cmake.cmake_cache and standalone, so the repository root | COMMENT |
| MEDIUM | tools/cmake/common/__init__.py | 33 | # Create a file tree in the current working directory (cwd). The structure of the | COMMENT |
| MEDIUM | extension/pytree/__init__.py | 11 | # Create a logger | COMMENT |
| MEDIUM | …tension/llm/custom_ops/test_update_cross_attn_cache.py | 64 | # Define a function that uses the op inside torch.cond | COMMENT |
| MEDIUM | …tension/llm/custom_ops/test_update_cross_attn_cache.py | 115 | # Define a module that uses torch.cond with the op | COMMENT |
| MEDIUM | …tension/llm/custom_ops/test_update_cross_attn_cache.py | 224 | # Define a function that uses different ops in each branch | COMMENT |
| MEDIUM | …/llm/custom_ops/spinquant/special_hadamard_code_gen.py | 2 | # This file is adapted from | COMMENT |
| MEDIUM | extension/llm/runner/test/test_runner_pybindings.py | 167 | # Create an image | COMMENT |
| MEDIUM | extension/llm/export/test/test_export_llm.py | 59 | # Create a temporary config file | COMMENT |
| MEDIUM | extension/llm/export/test/test_export_llm.py | 114 | # Create a temporary config file | COMMENT |
| MEDIUM⚡ | extension/llm/export/test/test_builder.py | 18 | # Create a mock model | COMMENT |
| MEDIUM⚡ | extension/llm/export/test/test_builder.py | 28 | # Create a manager with preset dynamic_shapes | COMMENT |
| MEDIUM | extension/llm/export/test/test_builder.py | 46 | # Create a manager with enable_dynamic_shape=True and use_kv_cache=False | COMMENT |
| MEDIUM | extension/llm/export/test/test_builder.py | 70 | # Create a manager with enable_dynamic_shape=True and use_kv_cache=True | COMMENT |
| MEDIUM | extension/llm/export/test/test_builder.py | 103 | # Create a manager with enable_dynamic_shape=False | COMMENT |
| MEDIUM | extension/pybindings/test/make_test.py | 216 | # Create the ExecuTorch program from the graph. | COMMENT |
| MEDIUM | .ci/scripts/setup-ios.sh | 21 | # Create a temporary keychain | COMMENT |
| MEDIUM | .ci/scripts/test_coreml_bc.sh | 23 | # Create a conda environment with Python 3.10 for compatibility with old ET versions | COMMENT |
| MEDIUM | .ci/scripts/wheel/envvar_linux.sh | 7 | # This file is sourced into the environment before building a pip wheel. It | COMMENT |
| MEDIUM | .ci/scripts/wheel/envvar_cuda_linux.sh | 7 | # This file is sourced into the environment before building a pip wheel. It | COMMENT |
| MEDIUM | .ci/scripts/wheel/envvar_base.sh | 7 | # This file is sourced into the environment before building a pip wheel. It | COMMENT |
| MEDIUM | .ci/scripts/wheel/envvar_macos.sh | 7 | # This file is sourced into the environment before building a pip wheel. It | COMMENT |
| MEDIUM | …ripts/benchmark_tooling/analyze_benchmark_stability.py | 402 | # Create a string buffer to hold the report content | COMMENT |
| MEDIUM | …ripts/benchmark_tooling/analyze_benchmark_stability.py | 665 | # Create a string buffer to hold the report content | COMMENT |
| MEDIUM | …ripts/benchmark_tooling/analyze_benchmark_stability.py | 1051 | # Create a string buffer to hold the report content | COMMENT |
| MEDIUM | …ripts/benchmark_tooling/analyze_benchmark_stability.py | 1248 | # Create a string buffer to hold the report content | COMMENT |
| MEDIUM | test/end2end/exported_module.py | 124 | # Create the eager module. | COMMENT |
| MEDIUM | test/end2end/exported_module.py | 224 | # Create the ExportedModule. | COMMENT |
| MEDIUM | backends/apple/coreml/compiler/coreml_preprocess.py | 798 | # Create a temporary directory for all the mlpackages | COMMENT |
| MEDIUM | backends/apple/coreml/compiler/coreml_preprocess.py | 806 | # Create a NamedDataStore to hold the shared multifunction models | COMMENT |
| MEDIUM | …ir/converter/node_converter/test_hardtanh_converter.py | 72 | # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator. | COMMENT |
| MEDIUM | …/ir/converter/node_converter/test_sigmoid_converter.py | 39 | # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator. | COMMENT |
| MEDIUM | …tests/ir/converter/node_converter/test_mm_converter.py | 47 | # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator. | COMMENT |
| MEDIUM | …ts/ir/converter/node_converter/test_addmm_converter.py | 55 | # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator. | COMMENT |
| MEDIUM | …/converter/node_converter/test_leaky_relu_converter.py | 44 | # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator. | COMMENT |
| MEDIUM | backends/nxp/backend/ops_aliases.py | 6 | # This file defines ops aliases for shorter and more readable descriptions of edge operators. | COMMENT |
| MEDIUM | …de_converters/ops_converters/permute_copy_converter.py | 221 | """This method is currently far more complex than necessary, as Neutron C supports all permutations. | STRING |
| MEDIUM | …/node_converters/ops_converters/view_copy_converter.py | 90 | # Create the TFLite Reshape with the new shape | COMMENT |
| MEDIUM | …ends/nxp/backend/ir/converter/builder/model_builder.py | 202 | # Create a new one and register it for potential future use. | COMMENT |
| MEDIUM | …ends/nxp/backend/ir/converter/builder/model_builder.py | 249 | # Create the output tensor of the 'Pad' operator. | COMMENT |
| MEDIUM | …ends/nxp/backend/ir/converter/builder/model_builder.py | 255 | # Create the second input of the 'Pad' operator. | COMMENT |
| MEDIUM | …ends/nxp/backend/ir/converter/builder/model_builder.py | 442 | # Create a Transpose operator and replace the graph input | COMMENT |
| MEDIUM | …ends/nxp/backend/ir/converter/builder/model_builder.py | 574 | # Create the final edge-to-tflite mapping after model optimization | COMMENT |
| MEDIUM | …tions/permute_fully_connected_weights_after_reshape.py | 105 | # Create a new tensor for the data, in case it is used by some other operator as well. | COMMENT |
| MEDIUM | backends/nxp/backend/ir/lib/tflite/LogicalOrOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | …ds/nxp/backend/ir/lib/tflite/StablehloReduceOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | backends/nxp/backend/ir/lib/tflite/ZerosLikeOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | …/backend/ir/lib/tflite/StablehloReduceWindowOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | …kends/nxp/backend/ir/lib/tflite/ReduceWindowOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | backends/nxp/backend/ir/lib/tflite/EqualOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | backends/nxp/backend/ir/lib/tflite/PowOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | backends/nxp/backend/ir/lib/tflite/LessOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | backends/nxp/backend/ir/lib/tflite/AddOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | …s/nxp/backend/ir/lib/tflite/StablehloScatterOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| MEDIUM | …ends/nxp/backend/ir/lib/tflite/HashtableSizeOptions.py | 23 | """This method is deprecated. Please switch to GetRootAs.""" | STRING |
| 394 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install_executorch.py | 111 | CODE | |
| LOW | setup.py | 450 | CODE | |
| LOW | setup.py | 502 | CODE | |
| LOW | install_utils.py | 378 | CODE | |
| LOW | kernels/test/summarize_supported_features.py | 20 | CODE | |
| LOW | kernels/test/test_case_gen.py | 243 | CODE | |
| LOW | …rnels/portable/test/test_grid_sampler_2d_executorch.py | 361 | CODE | |
| LOW | tools/cmake/cmake_cache.py | 58 | CODE | |
| LOW | extension/llm/custom_ops/test_gated_delta.py | 491 | CODE | |
| LOW | extension/llm/custom_ops/model_sharding.py | 53 | CODE | |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 650 | CODE | |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 725 | CODE | |
| LOW | extension/llm/cache/test_update_and_attend.py | 185 | CODE | |
| LOW | extension/llm/cache/test_update_and_attend.py | 247 | CODE | |
| LOW | extension/llm/runner/test/test_runner_pybindings.py | 254 | CODE | |
| LOW | extension/llm/export/gguf.py | 546 | CODE | |
| LOW | extension/llm/export/quantize.py | 28 | CODE | |
| LOW | extension/llm/export/builder.py | 288 | CODE | |
| LOW | extension/llm/export/builder.py | 384 | CODE | |
| LOW | extension/llm/export/builder.py | 478 | CODE | |
| LOW | extension/llm/export/builder.py | 301 | CODE | |
| LOW | extension/llm/export/export_passes.py | 44 | CODE | |
| LOW | extension/llm/export/quantizer_lib.py | 260 | CODE | |
| LOW | extension/llm/export/quant/convert.py | 163 | CODE | |
| LOW | extension/training/examples/CIFAR/train_utils.py | 51 | CODE | |
| LOW | extension/training/examples/CIFAR/train_utils.py | 188 | CODE | |
| LOW | .ci/scripts/gather_benchmark_configs.py | 146 | CODE | |
| LOW | .ci/scripts/gather_benchmark_configs.py | 299 | CODE | |
| LOW | .ci/scripts/test_example_imports.py | 212 | CODE | |
| LOW | .ci/scripts/test_example_imports.py | 410 | CODE | |
| LOW | .ci/scripts/test_example_imports.py | 31 | CODE | |
| LOW | .ci/scripts/test_huggingface_optimum_model.py | 133 | CODE | |
| LOW | .ci/scripts/tests/test_wheel_test_modules.py | 74 | CODE | |
| LOW | .ci/scripts/tests/test_filter_cuda_matrix.py | 248 | CODE | |
| LOW | .ci/scripts/tests/test_wheel_vendored_packages.py | 64 | CODE | |
| LOW | .ci/scripts/tests/test_coreml_markers.py | 104 | CODE | |
| LOW | .ci/scripts/tests/test_runtime_path_filter.py | 53 | CODE | |
| LOW | .ci/scripts/tests/test_cu134_dependencies.py | 55 | CODE | |
| LOW | .ci/scripts/wheel/test_shared_libraries.py | 574 | CODE | |
| LOW | .ci/scripts/wheel/test_shared_libraries.py | 645 | CODE | |
| LOW | .ci/scripts/wheel/test_shared_libraries.py | 695 | CODE | |
| LOW | .ci/scripts/wheel/test_shared_libraries.py | 1707 | CODE | |
| LOW | .ci/scripts/wheel/test_clean_install.py | 101 | CODE | |
| LOW | …ripts/benchmark_tooling/analyze_benchmark_stability.py | 68 | CODE | |
| LOW | …ripts/benchmark_tooling/analyze_benchmark_stability.py | 655 | CODE | |
| LOW | …ripts/benchmark_tooling/analyze_benchmark_stability.py | 1242 | CODE | |
| LOW | …ripts/benchmark_tooling/get_benchmark_analysis_data.py | 282 | CODE | |
| LOW | util/collect_env.py | 184 | CODE | |
| LOW | util/collect_env.py | 344 | CODE | |
| LOW | util/collect_env.py | 378 | CODE | |
| LOW | util/activation_memory_profiler.py | 51 | CODE | |
| LOW | backends/apple/metal/passes/decompose_linear_pass.py | 24 | CODE | |
| LOW | backends/apple/coreml/recipes/coreml_recipe_provider.py | 42 | CODE | |
| LOW | backends/apple/coreml/partition/coreml_partitioner.py | 181 | CODE | |
| LOW | backends/apple/coreml/partition/coreml_partitioner.py | 343 | CODE | |
| LOW | backends/apple/coreml/compiler/coreml_preprocess.py | 39 | CODE | |
| LOW | …ckends/apple/coreml/compiler/enumerated_shape_utils.py | 102 | CODE | |
| LOW | backends/nxp/neutron_partitioner.py | 385 | CODE | |
| LOW | backends/nxp/tests/profiling_utils.py | 13 | CODE | |
| LOW | backends/nxp/tests/dataset_creator.py | 327 | CODE | |
| 947 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 757 | "cd measurements && make run_%s" % type_name, shell=True, stdout=devnull | CODE |
| HIGH | extension/llm/export/quantizer_lib.py | 112 | "rm -rf cmake-out && mkdir cmake-out && (cd cmake-out && cmake -DEXECUTORCH_BUILD_KERNELS_QUANTIZED_ | CODE |
| HIGH | extension/llm/export/quantizer_lib.py | 112 | "rm -rf cmake-out && mkdir cmake-out && (cd cmake-out && cmake -DEXECUTORCH_BUILD_KERNELS_QUANTIZED_ | CODE |
| HIGH | .ci/scripts/wheel/test_shared_libraries.py | 2680 | return (lambda symbol: symbol in undefined, lambda symbol: symbol in defined) | CODE |
| HIGH | backends/qualcomm/tests/utils.py | 258 | adb.push( | CODE |
| HIGH | backends/qualcomm/tests/utils.py | 631 | adb.push( | CODE |
| HIGH | backends/qualcomm/tests/rework/conftest.py | 368 | adb.push(inputs=[inputs] if inputs is not None else None) | CODE |
| HIGH | backends/qualcomm/tests/rework/conftest.py | 410 | adb.push(inputs=[inputs], init_env=False) | CODE |
| HIGH | …/strategies/inference/default_device_runner_adapter.py | 72 | self._adb.push( | CODE |
| HIGH | backends/qualcomm/debugger/utils.py | 414 | self.adb.push( | CODE |
| HIGH | backends/webgpu/test/op_tests/cases.py | 1824 | # case: pow(x, 2) == x*x. WGSL pow(neg) is undefined, so the shader special-cases | COMMENT |
| HIGH | backends/samsung/test/utils/runtime_executor.py | 129 | test_manager.push() | CODE |
| HIGH | backends/vulkan/test/op_tests/utils/gen_benchmark_vk.py | 230 | if (high == 1.0 && low == 0.0) | CODE |
| HIGH | …nds/vulkan/test/op_tests/utils/gen_correctness_base.py | 317 | if (high == 1.0 && low == 0.0) | CODE |
| HIGH | …kends/vulkan/test/op_tests/utils/gen_correctness_vk.py | 151 | if (t1.scalar_type() == at::kLong || t2.scalar_type() == at::kLong) { | CODE |
| HIGH | …kends/vulkan/test/op_tests/utils/gen_correctness_vk.py | 155 | if (!is_close && t1.numel() < 500) { | CODE |
| HIGH | …s/xnnpack/_passes/channels_last_tagged_reshape_pass.py | 162 | # then we want to see this is nchw hence return false | COMMENT |
| HIGH | backends/arm/_passes/insert_rescales_pass.py | 227 | # zero point is non-null, the result will be in the range [-255; | COMMENT |
| HIGH | backends/arm/scripts/aot_arm_compiler.py | 806 | intermediates_path, f"input_{method_index}.pt" # type: ignore[possibly-undefined] | CODE |
| HIGH | backends/mlx/custom_kernel_ops/gguf/q5k/linear.py | 166 | if (tiisg == 0 && r < N) {{ | CODE |
| HIGH | backends/mlx/custom_kernel_ops/gguf/q5k/linear.py | 314 | if (j < nr1 && i < nr0) {{ | CODE |
| HIGH | backends/mlx/custom_kernel_ops/gguf/q6k/linear.py | 142 | if (tiisg == 0 && r < N) {{ | CODE |
| HIGH | backends/mlx/custom_kernel_ops/gguf/q6k/linear.py | 289 | if (j < nr1 && i < nr0) {{ | CODE |
| HIGH⚡ | backends/mlx/custom_kernel_ops/gguf/q4k/embedding.py | 48 | if (row < 0 || row >= V) { | CODE |
| HIGH | backends/mlx/custom_kernel_ops/gguf/q4k/linear.py | 133 | if (tiisg == 0 && r < N) {{ | CODE |
| HIGH | backends/mlx/custom_kernel_ops/gguf/q4k/linear.py | 279 | if (j < nr1 && i < nr0) {{ | CODE |
| HIGH | codegen/tools/test/test_gen_selected_op_variants.py | 77 | && (scalar_type == executorch::aten::ScalarType::Float || scalar_type == executorch::aten::ScalarType::Int)) | STRING |
| HIGH | codegen/tools/test/test_gen_selected_op_variants.py | 149 | && (scalar_type == executorch::aten::ScalarType::Float || scalar_type == executorch::aten::ScalarType::Int)) | STRING |
| HIGH | devtools/inspector/tests/inspector_test.py | 2212 | 1. The output tensor has a valid (non-null) data pointer | STRING |
| HIGH | examples/qualcomm/qaihub_scripts/utils/export.py | 196 | adb.push(files=files) | CODE |
| HIGH | examples/qualcomm/qaihub_scripts/utils/export.py | 325 | adb.push(inputs=inputs) | CODE |
| HIGH | …ub_scripts/stable_diffusion/qaihub_stable_diffusion.py | 323 | adb.push(inputs=input_unet, files=files) | CODE |
| HIGH | …alcomm/qaihub_scripts/llama/llama3/qaihub_llama3_8b.py | 164 | adb.push(files=custom_files) | CODE |
| HIGH | …alcomm/qaihub_scripts/llama/llama2/qaihub_llama2_7b.py | 164 | adb.push(files=custom_files) | CODE |
| HIGH | …ualcomm/util_scripts/qnn_intermediate_debugger_demo.py | 85 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/util_scripts/cli.py | 372 | adb.push(inputs=user_inputs, backends=[backend_type]) | CODE |
| HIGH | examples/qualcomm/util_scripts/gen_etrecord.py | 75 | adb.push(inputs=[sample_input]) | CODE |
| HIGH | examples/qualcomm/scripts/wav2letter.py | 151 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/scripts/deeplab_v3.py | 104 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/scripts/mobilebert_fine_tune.py | 292 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/scripts/edsr.py | 140 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/scripts/mobilenet_v2.py | 72 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/scripts/inception_v4.py | 71 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/scripts/mobilenet_v3.py | 79 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/scripts/inception_v3.py | 73 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/scripts/torchvision_vit.py | 121 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/custom_op/custom_ops_lpai.py | 365 | adb.push(inputs=sample_input, files=op_package_paths) | CODE |
| HIGH | examples/qualcomm/custom_op/custom_ops_1.py | 216 | adb.push(inputs=sample_input, files=op_package_paths) | CODE |
| HIGH | examples/qualcomm/custom_op/custom_ops_2.py | 226 | adb.push(inputs=sample_input, files=op_package_paths) | CODE |
| HIGH | examples/qualcomm/oss_scripts/deit.py | 94 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/oss_scripts/ssd300_vgg16.py | 157 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/oss_scripts/pvt.py | 77 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/oss_scripts/dino_v2.py | 79 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/oss_scripts/convnext_small.py | 80 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/oss_scripts/vit_b_16.py | 81 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/oss_scripts/regnet.py | 77 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/oss_scripts/maxvit_t.py | 188 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/oss_scripts/roberta.py | 125 | adb.push(inputs=[sample_input]) | CODE |
| HIGH | examples/qualcomm/oss_scripts/roberta.py | 137 | adb.push(inputs=inputs) | CODE |
| HIGH | examples/qualcomm/oss_scripts/squeezenet.py | 68 | adb.push(inputs=inputs) | CODE |
| 42 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | install_executorch.py | 231 | # Step 1: Install core dependencies first | COMMENT |
| LOW⚡ | install_executorch.py | 234 | # Step 2: Install core package | COMMENT |
| LOW | install_executorch.py | 256 | # Step 3: Extra (optional) packages that is only useful for running examples. | COMMENT |
| LOW | .wiki/troubleshooting/runtime-errors.md | 181 | ### Step 1: Profile | COMMENT |
| LOW⚡ | .wiki/troubleshooting/runtime-errors.md | 192 | ### Step 2: Analyze | COMMENT |
| LOW⚡ | .wiki/troubleshooting/runtime-errors.md | 200 | ### Step 3: Identify Bottlenecks | COMMENT |
| LOW⚡ | .wiki/troubleshooting/runtime-errors.md | 207 | ### Step 4: Advanced Profiling | COMMENT |
| LOW | .wiki/quantization/debugging.md | 102 | ### Step 1: Export Both Versions | COMMENT |
| LOW | .wiki/quantization/debugging.md | 121 | ### Step 2: Run Both and Compare | COMMENT |
| LOW | .wiki/quantization/debugging.md | 139 | ### Step 3: For CoreML, Extract and Compare | COMMENT |
| LOW | extension/module/test/resources/gen_bundled_program.py | 14 | # Step 1: ExecuTorch Program Export | COMMENT |
| LOW | extension/module/test/resources/gen_bundled_program.py | 54 | # Step 2: Construct MethodTestSuite for Each Method | COMMENT |
| LOW⚡ | extension/module/test/resources/gen_bundled_program.py | 86 | # Step 3: Generate BundledProgram | COMMENT |
| LOW⚡ | extension/module/test/resources/gen_bundled_program.py | 89 | # Step 4: Serialize BundledProgram to flatbuffer. | COMMENT |
| LOW⚡ | extension/gguf_util/load_gguf.py | 96 | # Step 1: Build GGUFModelArgs | COMMENT |
| LOW⚡ | extension/gguf_util/load_gguf.py | 100 | # Step 2: Build GGUFWeights | COMMENT |
| LOW⚡ | extension/gguf_util/convert_main.py | 32 | # Step 1: Load the GGUF file | COMMENT |
| LOW⚡ | extension/gguf_util/convert_main.py | 35 | # Step 2: Convert the GGUF model to PTE | COMMENT |
| LOW | extension/gguf_util/convert_main.py | 47 | # Step 3: Save the PTE program so that | COMMENT |
| LOW⚡ | extension/gguf_util/converters/llama_converter.py | 110 | # Step 1: Create the PyTorch model | COMMENT |
| LOW⚡ | extension/gguf_util/converters/llama_converter.py | 116 | # Step 2: Load the weights into the PyTorch model | COMMENT |
| LOW⚡ | extension/gguf_util/converters/llama_converter.py | 120 | # Step 3: Export to ExecuTorch | COMMENT |
| LOW | extension/image/image_processor.cpp | 342 | // Step 1: orientation (orient -> ROI -> resize). Produce an oriented copy of | COMMENT |
| LOW | extension/image/image_processor.cpp | 366 | // Step 2: ROI crop (pointer arithmetic). | COMMENT |
| LOW | extension/image/image_processor.cpp | 387 | // Step 3: Swizzle BGRA/RGBA → RGB (alpha discarded). | COMMENT |
| LOW | extension/image/image_processor.cpp | 401 | // Step 4: Resize. | COMMENT |
| LOW | extension/image/image_processor.cpp | 422 | // Step 5: Normalize + layout into the caller's CHW output (padded). | COMMENT |
| LOW | extension/image/image_processor_apple.cpp | 695 | // Step 2: orientation. Rotate the BGRA buffer (vImage) so ROI/resize run in | COMMENT |
| LOW⚡ | extension/image/image_processor_apple.cpp | 721 | // Step 3: ROI crop (pointer arithmetic on BGRA data). | COMMENT |
| LOW⚡ | extension/image/image_processor_apple.cpp | 724 | // Step 4: resize. Letterbox padding is applied during normalization. | COMMENT |
| LOW | extension/image/image_processor_apple.cpp | 753 | // Step 5: normalize BGRA → CHW float buffer. | COMMENT |
| LOW | .ci/docker/common/install_conda.sh | 59 | # WARNING: This is a HACK from PyTorch core to be able to build PyTorch on 22.04. | COMMENT |
| LOW | .ci/scripts/gather_test_models.py | 8 | # WARNING: The CI runner logic should directly be in the corresponding yml files | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 61 | # Step 1: Checkout old version of ExecuTorch | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 66 | # Step 2: Install the old version | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 75 | # Step 3: Export model | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 124 | # Step 4: Checkout current version (main) | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 130 | # Step 5: Install current version | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 135 | # Step 6: Run the old pte file | COMMENT |
| LOW | backends/qualcomm/_passes/decompose_diagonal.py | 95 | # Step 1: Permute dim1, dim2 to last positions (if needed) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_diagonal.py | 107 | # Step 2: Reshape [..., M, N] -> [..., M*N] | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_diagonal.py | 117 | # Step 3: Compute flat diagonal indices | COMMENT |
| LOW | backends/qualcomm/_passes/decompose_diagonal.py | 142 | # Step 4: index_select on last dim | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_cdist.py | 19 | # Step 1: Compute differences | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_cdist.py | 22 | # Step 2: Square differences | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_cdist.py | 25 | # Step 3: Sum of squares | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_cdist.py | 28 | # Step 4: Square root | COMMENT |
| LOW | backends/qualcomm/_passes/decompose_var.py | 82 | # Step 1: mean_x = mean(x, dim, keepdim=True) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_var.py | 94 | # Step 2: diff = x - mean_x | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_var.py | 102 | # Step 3: sq = diff * diff (more efficient than pow(diff, 2)) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_var.py | 110 | # Step 4: var = mean(sq, dim, keepdim) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_var.py | 116 | # Step 5: Apply correction factor if needed | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_div_mode.py | 55 | # Step 1: div_result = div(x, y) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_div_mode.py | 61 | # Step 2: Apply rounding mode if needed | COMMENT |
| LOW | backends/qualcomm/_passes/convert_linear_to_conv2d.py | 169 | # Step 1: calibrate input | COMMENT |
| LOW | backends/qualcomm/_passes/convert_linear_to_conv2d.py | 196 | # Step 2: reshape weight | COMMENT |
| LOW | backends/qualcomm/_passes/convert_linear_to_conv2d.py | 272 | # Step 3: restore original output of linear node | COMMENT |
| LOW⚡ | …l_preparation/executorch_model_preparation_strategy.py | 143 | # Step 1: Load model | COMMENT |
| LOW⚡ | …l_preparation/executorch_model_preparation_strategy.py | 150 | # Step 2: Load tokenizer | COMMENT |
| LOW⚡ | …l_preparation/executorch_model_preparation_strategy.py | 157 | # Step 3: Build the export example inputs from the model itself. | COMMENT |
| 228 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install_utils.py | 58 | except Exception: | CODE |
| LOW | install_utils.py | 353 | except Exception as err: | CODE |
| LOW | install_utils.py | 418 | except Exception as e: | CODE |
| LOW | kernels/portable/__init__.py | 22 | except Exception: # noqa: E722 | CODE |
| LOW | …rnels/portable/test/test_grid_sampler_2d_executorch.py | 112 | except Exception as e: | CODE |
| LOW | tools/cmake/buck_util.py | 57 | except Exception as e: | CODE |
| LOW | extension/llm/custom_ops/test_update_cache.py | 226 | except Exception: | CODE |
| LOW | extension/llm/custom_ops/test_update_cache.py | 246 | except Exception: | CODE |
| LOW | extension/llm/custom_ops/test_update_cache.py | 346 | except Exception: | CODE |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 624 | except Exception: | CODE |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 640 | except Exception as e: | CODE |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 655 | except Exception: | CODE |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 673 | except Exception: | CODE |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 690 | except Exception: | CODE |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 793 | except Exception: | CODE |
| LOW | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 828 | except Exception as e: | CODE |
| MEDIUM | …nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py | 621 | def greedy_merged(type_name, log_n, composite_step): | CODE |
| LOW | extension/pybindings/portable_lib.py | 59 | except Exception as e: | CODE |
| LOW | extension/pybindings/portable_lib.py | 74 | except Exception as e: | CODE |
| LOW | extension/pybindings/test/test_pybindings.py | 47 | except Exception: | CODE |
| LOW | extension/pybindings/test/test_pybindings.py | 57 | except Exception: | CODE |
| LOW | extension/pybindings/test/test_pybindings.py | 276 | except Exception: | CODE |
| LOW | extension/pybindings/test/test_pybindings.py | 617 | except Exception: | CODE |
| LOW | extension/export_util/utils.py | 151 | except Exception as e: | CODE |
| MEDIUM | .ci/scripts/cuda_benchmark.py | 100 | print(f"Error parsing PyTorchObserver log: {e}", file=sys.stderr) | CODE |
| LOW | .ci/scripts/cuda_benchmark.py | 134 | except Exception as e: | CODE |
| LOW | .ci/scripts/cuda_benchmark.py | 202 | except Exception as e: | CODE |
| MEDIUM | .ci/scripts/cuda_benchmark.py | 203 | print(f"Error: Failed to set GPU clocks: {e}", file=sys.stderr) | CODE |
| LOW | .ci/scripts/cuda_benchmark.py | 244 | except Exception as e: | CODE |
| MEDIUM | .ci/scripts/cuda_benchmark.py | 245 | print(f"Error: Failed to reset GPU clocks: {e}", file=sys.stderr) | CODE |
| MEDIUM⚡ | .ci/scripts/cuda_benchmark.py | 330 | print(f"Error: Command timed out on run {run_num}", file=sys.stderr) | CODE |
| LOW⚡ | .ci/scripts/cuda_benchmark.py | 332 | except Exception as e: | CODE |
| MEDIUM⚡ | .ci/scripts/cuda_benchmark.py | 333 | print(f"Error on run {run_num}: {e}", file=sys.stderr) | CODE |
| LOW | .ci/scripts/test-cuda-build.sh | 85 | except Exception as e: | CODE |
| LOW | .ci/scripts/test_model_e2e.sh | 615 | except Exception as e: | CODE |
| LOW | .ci/scripts/test_backend_imports.py | 122 | except Exception as error: | CODE |
| LOW | .ci/scripts/wheel/test_shared_libraries.py | 373 | except Exception: | CODE |
| LOW | test/end2end/test_temp_allocator_fix.py | 209 | except Exception as e: | CODE |
| MEDIUM | backends/apple/metal/tests/test_modules.py | 1396 | print(f"Error reading binary file {filepath}: {e}") | CODE |
| LOW | backends/apple/coreml/partition/coreml_partitioner.py | 376 | except Exception as e: | STRING |
| LOW | backends/nxp/tests/profiling_utils.py | 34 | except Exception as e: | CODE |
| LOW | backends/nxp/tests/profiling_utils.py | 48 | except Exception as e: | CODE |
| LOW | backends/nxp/tests/profiling_utils.py | 63 | except Exception as e: | CODE |
| LOW | backends/nxp/tests/profiling_utils.py | 101 | except Exception: | CODE |
| LOW | backends/nxp/tests/model_output_comparator.py | 94 | except Exception as e: | CODE |
| LOW | backends/nxp/tests/utils.py | 42 | except Exception as e: | CODE |
| LOW | backends/nxp/tests/tester/tester.py | 499 | except Exception as exc: | CODE |
| LOW | backends/nxp/tests/generic_tests/test_profiling.py | 146 | except Exception as e: | CODE |
| LOW | backends/nxp/backend/edge_helper.py | 399 | except Exception: | CODE |
| LOW | backends/nxp/backend/ir/converter/tensor_utils.py | 25 | except Exception as e: | CODE |
| LOW⚡ | …ends/nxp/backend/ir/converter/builder/model_builder.py | 625 | except Exception: | CODE |
| LOW⚡ | …ends/nxp/backend/ir/converter/builder/model_builder.py | 634 | except Exception: | CODE |
| LOW | …ckend/ir/neutron_ir_post_processing/pattern_matcher.py | 118 | except Exception: | CODE |
| LOW | …ckend/ir/neutron_ir_post_processing/pattern_matcher.py | 328 | except Exception: | CODE |
| LOW | …nds/nxp/aten_passes/remove_nodes_with_known_outputs.py | 182 | except Exception: | CODE |
| LOW | backends/native/serialization/graph_serialize.py | 1264 | except Exception: | CODE |
| LOW | backends/test/harness/tester.py | 365 | except Exception: | CODE |
| LOW | backends/test/suite/runner.py | 129 | except Exception as e: | CODE |
| LOW | backends/test/suite/runner.py | 134 | except Exception as e: | CODE |
| LOW⚡ | backends/test/suite/runner.py | 145 | except Exception as e: | CODE |
| 348 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | backends/apple/coreai/test/test_partitioner.py | 79 | for op in ("placeholder", "output", "call_module", "call_method"): | CODE |
| LOW | backends/apple/coreai/test/test_recipes.py | 48 | if n.op == "placeholder" and hasattr(n.meta.get("val"), "dtype") | CODE |
| LOW | backends/apple/coreai/passes/narrow_dtypes.py | 41 | placeholders = [n for n in graph.nodes if n.op == "placeholder"] | CODE |
| LOW | backends/apple/coreai/passes/test/test_narrow_dtypes.py | 26 | return [n for n in gm.graph.nodes if n.op == "placeholder"] | CODE |
| LOW | backends/apple/coreai/compiler/io_compat.py | 105 | n.name: n for n in edge_program.graph.nodes if n.op == "placeholder" | CODE |
| LOW | backends/apple/coreai/compiler/enumerated_shapes.py | 41 | n.name: n for n in exported_program.graph.nodes if n.op == "placeholder" | CODE |
| LOW | backends/apple/coreai/compiler/enumerated_shapes.py | 192 | n.name: n for n in edge_program.graph.nodes if n.op == "placeholder" | CODE |
| LOW | …ckends/apple/coreml/compiler/enumerated_shape_utils.py | 98 | if node.op == "placeholder" and node.name in user_inputs: | CODE |
| LOW⚡ | backends/nxp/tests/generic_tests/test_recipe_export.py | 147 | real_nodes = [n for n in nodes if n.op not in ("placeholder", "output")] | CODE |
| LOW⚡ | backends/nxp/tests/generic_tests/test_recipe_export.py | 151 | placeholder_nodes = [n for n in nodes if n.op == "placeholder"] | CODE |
| LOW | backends/nxp/backend/node_format_inference.py | 396 | return node.op == "placeholder" | CODE |
| LOW | backends/nxp/backend/edge_program_converter.py | 149 | if node.op == "placeholder": | CODE |
| LOW | backends/nxp/edge_passes/remove_io_quant_ops_pass.py | 34 | n for n in graph.nodes if n.op == "placeholder" and n.name == user_input | CODE |
| LOW | …sion_passes/add_simulated_linear_bn_fusion_qat_pass.py | 52 | if node.op == "placeholder": | CODE |
| LOW | backends/nxp/quantizer/neutron_quantizer.py | 401 | if node.op == "placeholder" and len(node.users) > 0: | CODE |
| LOW | backends/native/partitioner.py | 84 | if node.op in ("placeholder", "output", "get_attr"): | CODE |
| LOW | backends/native/test/test_passes.py | 101 | x = next(n for n in graph.nodes if n.op == "placeholder") | CODE |
| LOW | backends/native/test/test_passes.py | 138 | x = next(n for n in graph.nodes if n.op == "placeholder") | CODE |
| LOW | backends/native/test/test_passes.py | 157 | x = next(n for n in graph.nodes if n.op == "placeholder") | CODE |
| LOW⚡ | backends/native/test/test_partitioner.py | 53 | for op in ("placeholder", "output", "get_attr", "call_module", "call_method"): | CODE |
| LOW⚡ | backends/native/serialization/graph_serialize.py | 573 | "placeholder": OpKind.PLACEHOLDER, | CODE |
| LOW⚡ | backends/native/serialization/graph_serialize.py | 1105 | or weight.op != "placeholder" | CODE |
| LOW⚡ | backends/native/serialization/graph_serialize.py | 1107 | or scale.op != "placeholder" | CODE |
| LOW⚡ | backends/native/serialization/graph_serialize.py | 1109 | or zero_point.op != "placeholder" | CODE |
| LOW | backends/native/serialization/graph_serialize.py | 980 | user_inputs = [n.name for n in graph_module.graph.nodes if n.op == "placeholder"] | CODE |
| LOW | backends/native/serialization/graph_serialize.py | 1011 | if n.op == "placeholder" and "native_packed_quant" in n.meta | CODE |
| LOW | backends/native/passes/remove_runtime_asserts.py | 88 | val = node.meta.get("val") if node.op == "placeholder" else None | CODE |
| LOW | backends/test/graph_builder.py | 30 | if node.op != "placeholder": | CODE |
| LOW | backends/qualcomm/qnn_preprocess.py | 144 | "placeholder", | CODE |
| LOW | backends/qualcomm/builders/utils.py | 103 | return tensor.op == "placeholder" and not is_parameter(tensor, edge_program) | CODE |
| LOW | backends/qualcomm/builders/utils.py | 114 | if tensor.op == "placeholder" and is_buffer(edge_program, tensor): | CODE |
| LOW | backends/qualcomm/tests/test_passes.py | 287 | if node.op == "placeholder" and is_parameter(node, exported_program) | CODE |
| LOW | backends/qualcomm/tests/test_passes.py | 335 | if node.op == "placeholder" and is_parameter(node, exported_program) | CODE |
| LOW | backends/qualcomm/tests/test_qnn_delegate.py | 7713 | "placeholder", | STRING |
| LOW | backends/qualcomm/tests/test_qnn_delegate.py | 7959 | if n.op == "placeholder": | STRING |
| LOW | backends/qualcomm/tests/test_qnn_delegate.py | 8875 | "placeholder", | STRING |
| LOW | backends/qualcomm/tests/rework/src/pattern.py | 190 | if n.op == "placeholder" | CODE |
| LOW | backends/qualcomm/tests/rework/src/pattern.py | 344 | if node.op == "placeholder": | CODE |
| LOW | backends/qualcomm/tests/rework/src/pattern.py | 349 | if node.op == "placeholder" and QCOM_QUANTIZED_IO in node.meta: | CODE |
| LOW | backends/qualcomm/tests/rework/src/pattern.py | 5123 | return torch.uint8 if node.op == "placeholder" else None | CODE |
| LOW | backends/qualcomm/tests/rework/src/pattern.py | 5129 | placeholders = [n for n in gm.graph.nodes if n.op == "placeholder"] | CODE |
| LOW | backends/qualcomm/utils/utils.py | 133 | node.op in ("placeholder", "output"), | CODE |
| LOW | backends/qualcomm/_passes/canonicalize_conv.py | 151 | if filter_node.op in ("placeholder", "get_attr") | CODE |
| LOW | backends/qualcomm/_passes/convert_mha_to_sha.py | 563 | "placeholder": _visit_placeholder, | CODE |
| LOW | backends/qualcomm/_passes/insert_io_qdq.py | 50 | n.op == "placeholder" | CODE |
| LOW | backends/qualcomm/_passes/recompose_rms_norm.py | 23 | return _is_node(node) and node.op == "placeholder" | CODE |
| LOW | backends/qualcomm/_passes/utils.py | 240 | elif decomposed_node.op == "placeholder": | CODE |
| LOW | …ds/qualcomm/_passes/lpai_partition_fallback_support.py | 296 | if q_node.op == "placeholder": | CODE |
| LOW | backends/qualcomm/_passes/i64_to_i32.py | 141 | elif n.op == "placeholder" or n.op == "get_attr": | CODE |
| LOW | backends/qualcomm/debugger/format_outputs.py | 105 | if len(node.users) == 0 and node.op == "placeholder": | CODE |
| LOW | backends/qualcomm/debugger/format_outputs.py | 143 | if len(node.users) == 0 and node.op == "placeholder": | CODE |
| LOW | backends/qualcomm/debugger/format_outputs.py | 183 | if len(node.users) == 0 and node.op == "placeholder": | CODE |
| LOW | backends/qualcomm/partition/qnn_partitioner.py | 256 | if node.op != "placeholder" or len(node.users) != 0: | CODE |
| LOW | backends/qualcomm/quantizer/custom_annotation.py | 446 | if node.op == "placeholder" and "attention_kv_cache_past_" in node.name: | CODE |
| LOW | …backend_delegate_passes/permute_memory_formats_pass.py | 46 | if node.op != "placeholder" | CODE |
| LOW | …backend_delegate_passes/permute_memory_formats_pass.py | 83 | and exit_node_arg.op != "placeholder" | CODE |
| LOW | backends/cuda/passes/lower_offgraph_kv.py | 348 | n for n in graph.nodes if n.op == "placeholder" and n.name in user_inputs | CODE |
| LOW | backends/cuda/passes/lower_offgraph_kv.py | 570 | [n for n in traced.graph.nodes if n.op == "placeholder"], | CODE |
| LOW | backends/cuda/passes/lower_offgraph_kv.py | 577 | if traced_node.op == "placeholder": | CODE |
| LOW | backends/cuda/passes/move_cond_predicate_to_cpu.py | 75 | pred_node.op == "placeholder" | CODE |
| 371 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | kernels/prim_ops/et_copy_index.cpp | 58 | // torch.ops.executorch.prim.add.int(iteration_index, 1, iteration_index) | COMMENT |
| CRITICAL | kernels/prim_ops/et_copy_index.cpp | 59 | // done_bool = torch.ops.executorch.prim.eq.int(iteration_index, | COMMENT |
| CRITICAL | backends/apple/coreml/test/tester.py | 103 | executorch.backends.test.harness.Tester.default_stage_classes() | CODE |
| CRITICAL | backends/apple/coreml/partition/coreml_partitioner.py | 194 | is_supported = ct.converters.mil.frontend.torch.is_torch_fx_node_supported( | CODE |
| CRITICAL | backends/test/suite/__init__.py | 52 | for name, f in executorch.backends.test.suite.flow.all_flows().items() | CODE |
| CRITICAL⚡ | backends/test/facto/test_facto_arm.py | 165 | tester.to_executorch.return_value.serialize.return_value.run_method_and_compare_outputs.assert_called_once_w | CODE |
| CRITICAL | backends/qualcomm/tests/tester.py | 107 | stage_classes = executorch.backends.test.harness.Tester.default_stage_classes() | { | CODE |
| CRITICAL | backends/qualcomm/quantizer/rules.py | 194 | quantization_config.weight.observer_or_fake_quant_ctr.p.keywords.update( | CODE |
| CRITICAL | backends/qualcomm/quantizer/README.md | 173 | quantization_config.weight.observer_or_fake_quant_ctr.p.keywords.update( | CODE |
| CRITICAL | backends/qualcomm/quantizer/annotators/lpai_rules.py | 547 | quantization_config.weight.observer_or_fake_quant_ctr.p.keywords.update( | CODE |
| CRITICAL | backends/qualcomm/quantizer/annotators/htp_rules.py | 974 | quantization_config.weight.observer_or_fake_quant_ctr.p.keywords.update( | CODE |
| CRITICAL | backends/webgpu/test/tester.py | 132 | executorch.backends.test.harness.Tester.default_stage_classes() | CODE |
| CRITICAL | backends/openvino/test/tester/tester.py | 76 | executorch.backends.test.harness.Tester.default_stage_classes() | CODE |
| CRITICAL | backends/openvino/quantizer/quantizer.py | 129 | self._algo = nncf.quantization.algorithms.weight_compression.algorithm.WeightCompression( | CODE |
| CRITICAL | backends/vulkan/test/tester.py | 79 | executorch.backends.test.harness.Tester.default_stage_classes() | CODE |
| CRITICAL | backends/xnnpack/test/tester/tester.py | 116 | executorch.backends.test.harness.Tester.default_stage_classes() | CODE |
| CRITICAL | …kends/xnnpack/test/quantizer/test_pt2e_quantization.py | 215 | torch.ao.quantization.observer.PlaceholderObserver.with_args( | CODE |
| CRITICAL | …kends/xnnpack/test/quantizer/test_pt2e_quantization.py | 306 | torch.ao.quantization.observer.PlaceholderObserver.with_args( | CODE |
| CRITICAL | backends/mlx/test/tester.py | 62 | executorch.backends.test.harness.Tester.default_stage_classes() | CODE |
| CRITICAL⚡ | …mple_ethos_u/model_export/export_silero_vad_ethos_u.py | 272 | exir_ops.edge.quantized_decomposed.quantize_per_tensor.default.to_out_variant() | CODE |
| CRITICAL⚡ | …mple_ethos_u/model_export/export_silero_vad_ethos_u.py | 273 | exir_ops.edge.quantized_decomposed.dequantize_per_tensor.default.to_out_variant() | CODE |
| CRITICAL | …mple_ethos_u/model_export/export_silero_vad_ethos_u.py | 284 | exir_ops.edge.quantized_decomposed.quantize_per_tensor.default.to_out_variant() | CODE |
| CRITICAL | …mple_ethos_u/model_export/export_silero_vad_ethos_u.py | 285 | exir_ops.edge.quantized_decomposed.dequantize_per_tensor.default.to_out_variant() | CODE |
| CRITICAL | …mple_ethos_u/model_export/export_silero_vad_ethos_u.py | 307 | exir_ops.edge.quantized_decomposed.quantize_per_tensor.default.to_out_variant() | CODE |
| CRITICAL | …mple_ethos_u/model_export/export_silero_vad_ethos_u.py | 308 | exir_ops.edge.quantized_decomposed.dequantize_per_tensor.default.to_out_variant() | CODE |
| CRITICAL | exir/tests/test_arg_validator.py | 63 | ops.edge.aten.add.Tensor.name(), | CODE |
| CRITICAL⚡ | exir/tests/common.py | 90 | torch.ops.aten.max.default.tags.append(canonical) | CODE |
| CRITICAL⚡ | exir/tests/common.py | 91 | torch.ops.aten.sum.default.tags.append(canonical) | CODE |
| CRITICAL⚡ | exir/tests/common.py | 92 | torch.ops.aten.searchsorted.Tensor.tags.append(canonical) | CODE |
| CRITICAL⚡ | exir/tests/common.py | 93 | torch.ops.aten.ones_like.default.tags.append(canonical) | CODE |
| CRITICAL⚡ | exir/tests/common.py | 94 | torch.ops.aten.upsample_nearest2d.default.tags.append(canonical) | CODE |
| CRITICAL⚡ | exir/tests/common.py | 95 | torch.ops.aten.index.Tensor.tags.append(canonical) | CODE |
| CRITICAL⚡ | exir/tests/common.py | 96 | torch.ops.aten.addbmm.default.tags.append(canonical) | CODE |
| CRITICAL | exir/emit/_emitter.py | 809 | iteration_index) iteration_index = torch.ops.executorch.prim.add.int(iteration_index, 1, | STRING |
| CRITICAL | exir/emit/_emitter.py | 810 | iteration_index) done_bool = torch.ops.executorch.prim.eq.int(iteration_index, sym_size, | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extension/pytree/__init__.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | extension/llm/runner/__init__.py | 255 | __all__ = [ | CODE |
| LOW | extension/llm/export/__init__.py | 12 | __all__ = [ | CODE |
| LOW | extension/llm/modules/attention.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | extension/llm/modules/__init__.py | 16 | __all__ = [ | CODE |
| LOW | extension/llm/modules/turboquant/__init__.py | 9 | __all__ = [ | CODE |
| LOW | extension/training/__init__.py | 17 | __all__ = [ | CODE |
| LOW | extension/pybindings/portable_lib.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | extension/export_util/__init__.py | 9 | __all__ = [ | CODE |
| LOW | .ci/scripts/gather_benchmark_configs.py | 257 | def set_output(name: str, val: Any) -> None: | CODE |
| LOW | .ci/scripts/gather_test_models.py | 84 | def set_output(name: str, val: Any) -> None: | CODE |
| LOW | backends/apple/metal/passes/__init__.py | 11 | __all__ = ["DecomposeLinearPass"] | CODE |
| LOW | backends/apple/coreai/__init__.py | 46 | __all__ = [ | CODE |
| LOW | backends/apple/coreai/palettizer/__init__.py | 9 | __all__ = [ | CODE |
| LOW | backends/apple/coreai/passes/__init__.py | 11 | __all__ = ["NarrowToCoreAIDtypesPass"] | CODE |
| LOW | backends/apple/coreai/recipes/__init__.py | 15 | __all__ = [ | CODE |
| LOW | backends/apple/coreai/recipes/recipe_provider.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/apple/coreai/partition/partitioner.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/apple/coreai/quantizer/__init__.py | 9 | __all__ = [ | CODE |
| LOW | backends/apple/coreai/compiler/preprocess.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/apple/coreai/compiler/io_compat.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/apple/coreai/compiler/enumerated_shapes.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/apple/coreml/recipes/__init__.py | 14 | __all__ = [ | CODE |
| LOW | backends/apple/coreml/partition/__init__.py | 7 | __all__ = [ | CODE |
| LOW | backends/apple/coreml/partition/coreml_partitioner.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/apple/coreml/quantizer/__init__.py | 7 | __all__ = [ | CODE |
| LOW | backends/apple/coreml/compiler/coreml_preprocess.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/apple/coreml/compiler/__init__.py | 7 | __all__ = [ | CODE |
| LOW | backends/nxp/tests/config_importer.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/nxp/tests/nsys_testing.py | 60 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/nxp/tests/outputs_dir_importer.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/nxp/tests/tester/__init__.py | 8 | __all__ = ["NeutronTester"] | CODE |
| LOW | backends/nxp/backend/node_format_inference.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/nxp/backend/neutron_map.py | 307 | def _update_neutron_subgraphs_info(self, extracted_graph: str) -> None: | CODE |
| LOW | …ckends/nxp/backend/ir/tflite_generator/tflite_model.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/nxp/backend/ir/tflite_generator/meta/meta.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | …r/converter/node_converters/ops_converters/__init__.py | 135 | __all__ = [ | CODE |
| LOW | …n_passes/simulated_linear_bn_fusion_passes/__init__.py | 13 | __all__ = [ | CODE |
| LOW | backends/nxp/recipes/__init__.py | 14 | __all__ = [ | CODE |
| LOW | backends/native/__init__.py | 10 | __all__ = [ | CODE |
| LOW | backends/native/serialization/__init__.py | 19 | __all__ = [ | CODE |
| LOW | backends/native/passes/__init__.py | 55 | __all__ = [ | CODE |
| LOW | backends/test/harness/__init__.py | 3 | __all__ = ["Tester"] | CODE |
| LOW | backends/test/harness/stages/serialize.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/test/harness/stages/__init__.py | 11 | __all__ = [ | CODE |
| LOW | backends/test/suite/__init__.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/test/suite/flow.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/test/suite/flows/portable.py | 6 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/test/suite/flows/samsung.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/test/suite/flows/xnnpack.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/test/facto/test_facto.py | 129 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/qualcomm/qnn_preprocess.py | 43 | logger = logging.getLogger(__name__) | CODE |
| LOW | backends/qualcomm/builders/__init__.py | 125 | __all__ = [ | CODE |
| LOW | backends/qualcomm/utils/qnn_sdk_setup.py | 44 | def _setup_qnn_sdk_locked() -> None: | CODE |
| LOW | backends/qualcomm/_passes/__init__.py | 79 | __all__ = [ | CODE |
| LOW | …ends/qualcomm/_passes/lift_constant_scalar_operands.py | 127 | def _update_node(self, node: fx.Node, tensor_args: Dict) -> None: | CODE |
| LOW | backends/qualcomm/_passes/i64_to_i32.py | 115 | def _update_meta(self, node: torch.fx.node) -> None: | CODE |
| LOW | backends/qualcomm/_passes/backends/htp/__init__.py | 9 | __all__ = [ | CODE |
| LOW | backends/qualcomm/_passes/backends/gpu/__init__.py | 9 | __all__ = [ | CODE |
| LOW | backends/qualcomm/_passes/backends/lpai/__init__.py | 9 | __all__ = [ | CODE |
| 307 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | extension/flat_tensor/serialize/serialize.py | 223 | except ValueError: | CODE |
| HIGH | backends/apple/metal/metal_backend.py | 100 | except ImportError: | CODE |
| HIGH | backends/apple/metal/metal_backend.py | 109 | except ImportError: | CODE |
| HIGH | backends/native/serialization/graph_serialize.py | 194 | except AttributeError: | CODE |
| HIGH | backends/native/serialization/graph_serialize.py | 197 | except (ValueError, TypeError, RuntimeError): | CODE |
| HIGH | backends/qualcomm/scripts/download_qnn_sdk.py | 787 | except Exception: | CODE |
| HIGH | backends/qualcomm/scripts/download_qnn_sdk.py | 798 | except requests.exceptions.RequestException: | CODE |
| HIGH | backends/qualcomm/scripts/download_qnn_sdk.py | 640 | except Exception: | CODE |
| HIGH | backends/cuda/cuda_backend.py | 523 | except ImportError: | CODE |
| HIGH | backends/cuda/cuda_backend.py | 1087 | except Exception: | CODE |
| HIGH | backends/cuda/cuda_weight_collector.py | 79 | except AttributeError: | CODE |
| HIGH | backends/cuda/triton/kernels/__init__.py | 47 | except ImportError: | CODE |
| HIGH | backends/cuda/triton/kernels/__init__.py | 54 | except ImportError: | CODE |
| HIGH | backends/cuda/triton/kernels/__init__.py | 63 | except ImportError: | CODE |
| HIGH | backends/cuda/benchmarks/benchmark_moe.py | 250 | except ImportError: | CODE |
| HIGH | backends/webgpu/scripts/gen_wgsl_headers.py | 701 | except OSError: | CODE |
| HIGH | …s/transforms/remove_permutes_around_elementwise_ops.py | 106 | except AttributeError: | CODE |
| HIGH | backends/vulkan/test/test_vulkan_delegate.py | 48 | except: | CODE |
| HIGH | backends/arm/test/conftest.py | 130 | except Exception: # nosec B110 - pytest redefines options, safe to ignore | CODE |
| HIGH | backends/arm/test/runner_utils.py | 1074 | except Exception: # nosec B110 - best-effort casting for debug output only | CODE |
| HIGH | backends/arm/test/misc/test_debug_feats.py | 182 | except AssertionError: | CODE |
| HIGH | …kends/arm/operator_support/tosa_supported_operators.py | 289 | except TypeError: | CODE |
| HIGH | backends/arm/_passes/int32_range_analysis.py | 212 | except AttributeError: | CODE |
| HIGH | …ends/arm/scripts/generate_neural_graphics_test_data.py | 535 | except _NFRUAutoencoderInputCaptured: | CODE |
| HIGH | backends/arm/vgf/model_converter.py | 189 | except InvalidVersion: | CODE |
| HIGH | backends/cadence/aot/compiler_funcs.py | 561 | except AttributeError: | CODE |
| HIGH | backends/cadence/aot/compiler_funcs.py | 570 | except AttributeError: | CODE |
| HIGH | backends/mlx/passes.py | 333 | except Exception: | CODE |
| HIGH | backends/mlx/passes.py | 348 | except Exception: | CODE |
| HIGH | backends/mlx/serialization/mlx_graph_serialize.py | 414 | except (TypeError, AttributeError): | CODE |
| HIGH | backends/mlx/builder/program_builder.py | 1027 | except Exception: | CODE |
| HIGH | backends/cortex_m/passes/aten_to_cortex_m_pass.py | 270 | except (AttributeError, TypeError): | CODE |
| HIGH | codegen/test/test_executorch_gen.py | 239 | except OSError: | CODE |
| HIGH | codegen/test/test_executorch_gen.py | 325 | except OSError: | CODE |
| HIGH | codegen/test/test_executorch_gen.py | 517 | except Exception: | CODE |
| HIGH | codegen/test/test_executorch_gen.py | 525 | except Exception: | CODE |
| HIGH | examples/mediatek/model_export_scripts/emformer_rnnt.py | 120 | except: | CODE |
| HIGH | examples/mediatek/model_export_scripts/emformer_rnnt.py | 127 | except: | CODE |
| HIGH | examples/models/qwen3/convert_weights.py | 110 | except FileNotFoundError: | CODE |
| HIGH | examples/models/granite_speech/convert_weights.py | 40 | except: | CODE |
| HIGH | examples/models/smolvlm/convert_weights.py | 44 | except: | CODE |
| HIGH | examples/models/muse-glimmer/export/common.py | 47 | except AttributeError: | CODE |
| HIGH | examples/models/qwen3_5/convert_weights.py | 89 | except FileNotFoundError: | CODE |
| HIGH | examples/models/internvl3/convert_weights.py | 47 | except: | CODE |
| HIGH | examples/models/llama/attention.py | 84 | except (AttributeError, RuntimeError): | CODE |
| HIGH | examples/models/llama/install_requirement_helper.py | 39 | except ImportError: | CODE |
| HIGH | examples/llm_server/evals/terminal_bench/runner.py | 207 | except ProcessLookupError: | CODE |
| HIGH | examples/llm_server/evals/terminal_bench/runner.py | 221 | except ProcessLookupError: | CODE |
| HIGH | examples/llm_server/evals/terminal_bench/runner.py | 195 | except (OSError, ValueError): | CODE |
| HIGH | examples/llm_server/python/chat_template.py | 87 | except (ValueError, TypeError): | CODE |
| HIGH | examples/llm_server/python/multiplexed_worker_client.py | 87 | except (OSError, ValueError): | CODE |
| HIGH | examples/llm_server/python/multiplexed_worker_client.py | 99 | except ProcessLookupError: | CODE |
| HIGH | examples/llm_server/python/multiplexed_worker_client.py | 112 | except (OSError, asyncio.TimeoutError): | CODE |
| HIGH | examples/llm_server/python/worker_client.py | 127 | except OSError: | CODE |
| HIGH | examples/llm_server/python/worker_client.py | 155 | except Exception: # noqa: BLE001 - fake/foreign Popen objects may be immutable | CODE |
| HIGH | examples/llm_server/python/session_runtime.py | 545 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | examples/llm_server/python/session_runtime.py | 411 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | …amples/llm_server/python/tests/test_session_runtime.py | 232 | except asyncio.CancelledError: | CODE |
| HIGH | …amples/llm_server/python/tests/test_session_runtime.py | 281 | except asyncio.CancelledError: | CODE |
| HIGH | …les/llm_server/python/tests/test_concurrent_serving.py | 456 | except WorkerError: | CODE |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | extension/llm/modules/attention.py | 209 | Args: x (torch.Tensor): input tensor with shape [b x s_x x d] for the query y (Optional | STRING |
| HIGH | extension/llm/modules/kv_cache.py | 69 | Update KV cache with the new ``k_val``, ``v_val`` and return the updated cache. Note: When updating | STRING |
| HIGH | extension/flat_tensor/serialize/serialize.py | 151 | Tries to read an flat_tensor header from the provided data. Does not validate that the header is well-formed. C | STRING |
| HIGH | .ci/scripts/gather_benchmark_configs.py | 147 | Generate a list of compatible benchmark configurations for a given model name and target OS. Args: mod | STRING |
| HIGH | .ci/scripts/test_huggingface_optimum_model.py | 233 | Determine the tokenizer path based on files saved by tokenizer.save_pretrained(). Args: model_dir: The | STRING |
| HIGH | backends/qualcomm/utils/utils.py | 1225 | Helper function generating compiler specs for Qualcomm AI Engine Direct Args: soc_model: The SoC you p | STRING |
| HIGH | backends/qualcomm/genai_pipeline/genai_pipeline.py | 153 | Build one stage from the registry, or ``None`` if it is skipped. Args: engine_proxy: Routes each st | STRING |
| HIGH | backends/qualcomm/genai_pipeline/control_args.py | 363 | Build from a ``PipelineContext`` plus per-stage overrides. The context supplies the four settings it owns; anyt | STRING |
| HIGH | …l_preparation/executorch_model_preparation_strategy.py | 106 | Prepare the model, tokenizer, and calibration data. Args: context: The pipeline context with global | STRING |
| HIGH | …gies/model_preparation/default_model_loader_adapter.py | 159 | Export tokenizer to disk and return the runtime tokenizer file. ``save_pretrained`` writes several files and re | STRING |
| HIGH | …egies/quantization/executorch_quantization_strategy.py | 95 | Quantize the model using ExecuTorch/QNN quantization. Executes the full PT2E quantization pipeline: exp | STRING |
| HIGH | …/strategies/inference/executorch_inference_strategy.py | 75 | Run inference using compiled model artifacts on device. Args: context: The pipeline context with gl | STRING |
| HIGH | …ine/strategies/compilation/default_compiler_adapter.py | 37 | Recover the ``QnnExecuTorchOptions`` carried by a list of compile specs. ``generate_qnn_executorch_compiler_spec`` | STRING |
| HIGH | …ine/strategies/compilation/default_compiler_adapter.py | 202 | Compile the model via ``to_edge_transform_and_lower_to_qnn``. Args: model: The model to compile (nn | STRING |
| HIGH | …ategies/compilation/executorch_compilation_strategy.py | 113 | Compile the model to on-device .pte artifacts. Args: context: The pipeline context with global sett | STRING |
| HIGH | …_pipeline/datasets/default_calibration_data_adapter.py | 34 | Generate calibration data as random token sequences. Args: tokenizer: The tokenizer to use. Only `` | STRING |
| HIGH | …nai_pipeline/datasets/default_training_data_adapter.py | 34 | Return caller-supplied QAT training data. Args: tokenizer: The tokenizer (unused by this implementa | STRING |
| HIGH | …omm/genai_pipeline/compilation/compile_spec_builder.py | 40 | Convert a SoC name to its ``QcomChipset`` enum member. ``PipelineContext`` carries ``soc_model`` as a string so tha | STRING |
| HIGH | …omm/genai_pipeline/compilation/compile_spec_builder.py | 99 | Convert a backend name to its ``QnnExecuTorchBackendType`` member. Mirrors ``export_utils.get_backend_type``, but v | STRING |
| HIGH | backends/cuda/triton/kernels/sdpa.py | 223 | Validate dimensions and return shape info. Args: query: Query tensor [B, H_q, L_q, D] key: Key | STRING |
| HIGH | backends/transforms/utils.py | 32 | Helper function to create a fake tensor using the fake_mode from existing nodes in the graph. Args: gr | STRING |
| HIGH | …kends/xnnpack/serialization/xnnpack_graph_serialize.py | 134 | Converts the given bytes into an XNNHeader object. We check that the magic and length is valid, but do | STRING |
| HIGH | …kends/xnnpack/serialization/xnnpack_graph_serialize.py | 263 | Returns the input followed by enough zero bytes to become the requested length. Args: data: The data to pad | STRING |
| HIGH | backends/arm/test/runner_utils.py | 223 | Get output QuantizationParams from a program. Args: output_nodes (list(Node)): A list of output nodes to ge | STRING |
| HIGH | backends/arm/operators/op_tosa_rescale.py | 28 | Derive integer multipliers and shifts from floating-point scales. TOSA uses the RESCALE operation to scale between | STRING |
| HIGH | backends/arm/operators/node_visitor.py | 185 | Define a TOSA operator node. Args: node (torch.fx.Node): FX node being lowered. tosa_gr | STRING |
| HIGH | backends/arm/tosa/backend.py | 115 | Lower an exported program to a TOSA flatbuffer. Apply Arm transformation passes to ``edge_program``, then walk | STRING |
| HIGH | backends/arm/tosa/utils.py | 26 | Determine whether the fake tensors share a broadcastable shape. Args: fake_tensors (list[FakeTensor]): Fake | STRING |
| HIGH | backends/arm/tosa/utils.py | 65 | Broadcast the FX nodes to a shared shape inside the TOSA graph. This emits the reshape and tile operators needed to | STRING |
| HIGH | backends/arm/tosa/specification.py | 192 | Create a specification from a standard string format. Example: ``TOSA-1.00.0+INT+FP+int4+cf``. Args: | STRING |
| HIGH | backends/arm/tosa/mapping.py | 85 | Map a ``torch.dtype`` to a ``ts.DType``. Args: data_type (torch.dtype): PyTorch dtype to convert. Retu | STRING |
| HIGH | backends/arm/tosa/mapping.py | 130 | Extract dtype, shape, and dimension order from FX metadata. Args: meta (dict): FX node ``meta`` containing | STRING |
| HIGH | backends/arm/_passes/rewrite_conv_pass.py | 83 | Adjust padding to satisfy TOSA's integer output-size requirement. Torch ``Conv2d`` does not require the result | STRING |
| HIGH | backends/arm/_passes/rewrite_upsample.py | 52 | Compute resize coefficients for a single spatial dimension. Args: input_size (int | torch.SymInt): | STRING |
| HIGH | backends/arm/_passes/fuse_batch_norm2d_pass.py | 64 | Fuse BatchNorm into grouped transposed-convolution parameters. This helper runs before ``DecomposeGroupedConvPa | STRING |
| HIGH | backends/arm/scripts/aot_arm_compiler.py | 212 | Resolve a model name into a model instance and example inputs. Args: model_name: Identifier for the model. | STRING |
| HIGH | backends/arm/quantizer/quantization_config.py | 258 | Get the derived or validated bias spec. For conv/linear ops, derive bias qparams from the input/weight observer | STRING |
| HIGH | backends/arm/quantizer/quantization_config.py | 291 | Compute bias scale/zero-point from activation/weight observers. Expect two observers or fake-quantize modul | STRING |
| HIGH | backends/arm/vgf/quantization_assessment.py | 763 | Compare FP32 and quantized exported graphs using module FQN identity. Args: fp32_model: FP32 ExportedProgra | STRING |
| HIGH | backends/arm/vgf/backend.py | 269 | Validate a delegation tag before it is used in an artifact filename. Delegation tags originate from graph metadata | STRING |
| HIGH | backends/arm/vgf/backend.py | 301 | Construct an output path that is confined to ``directory``. Both paths are resolved before comparison so traversal | STRING |
| HIGH | backends/arm/vgf/quantization_quality.py | 92 | Compute VGF quantization-quality metrics for a tensor pair. Args: reference: Floating-point reference tenso | STRING |
| HIGH | backends/arm/vgf/compile_spec.py | 98 | Run VGF environment preflight checks. By default this validates only AoT/export prerequisites. Runtime and | STRING |
| HIGH | backends/mlx/partitioner.py | 351 | Partition the edge program for MLX delegation. Args: edge_program: The ExportedProgram to | STRING |
| HIGH | backends/mlx/pattern_utils.py | 106 | One step in a backward walk through the graph. Used with walk_back() to define pattern chains. Supports both e | STRING |
| HIGH | backends/mlx/pattern_utils.py | 201 | Walk backwards through a chain of ops, matching against a pattern. Starting from *node*, try to match each ste | STRING |
| HIGH | devtools/inspector/_inspector.py | 1176 | Resolve the reference graph module to use for AOT operations. This method centralizes the logic for de | STRING |
| HIGH | …ctor/numerical_comparator/numerical_comparator_base.py | 166 | Compare two outputs, handling both sequence and non-sequence cases. Args: a: The first intermediate | STRING |
| HIGH | examples/qualcomm/oss_scripts/llama/tokenizer.py | 146 | Validate and normalize a multi-turn prompt sequence, then prepare it into a message list. This | STRING |
| HIGH | …/aot_utils/llm_utils/tokenizers_/tokenization_utils.py | 408 | Add a list of new tokens to the tokenizer class. If the new tokens are not in the vocabulary, they are added to | STRING |
| HIGH | …utils/llm_utils/tokenizers_/tokenization_utils_base.py | 61 | Import the DecodeError from protobuf if available. Args: _ (Any): Placeholder argument. Returns: | STRING |
| HIGH | …utils/llm_utils/tokenizers_/tokenization_utils_base.py | 913 | Adds special tokens. Add a dictionary of special tokens (eos, pad, cls, etc.) to the encoder and link them to c | STRING |
| HIGH | …utils/llm_utils/tokenizers_/tokenization_utils_base.py | 1038 | Add tokens. Add a list of new tokens to the tokenizer class. If the new tokens are not in the vocabulary, they | STRING |
| HIGH | …ples/mediatek/aot_utils/llm_utils/tokenizers_/utils.py | 374 | Tries to locate a file in a local folder and repo, downloads and cache it if necessary. Args: path_or_repo_ | STRING |
| HIGH | examples/models/model_factory.py | 23 | Create an instance of a model class that implements EagerModelBase and retrieve related data. Args: | STRING |
| HIGH | scripts/pick_doc_commits.py | 46 | Runs a git command and returns its stdout as a list of lines. Prints the command and its output to debug_log() if v | STRING |
| HIGH | exir/native/native.py | 361 | Lower ExportedProgram(s) through the native backend. ``programs`` is a single ``ExportedProgram`` (lowered as the s | STRING |
| HIGH | exir/backend/backend_api.py | 74 | Add overloaded implementations for to_backend: :: def to_backend( backend_id: str, edg | STRING |
| HIGH | exir/backend/test/backend_with_compiler_demo.py | 30 | An example implementation to lower a module. Currently this example only supports the sin operator. The exa | STRING |
| HIGH | exir/_serialize/_program.py | 78 | Inserts a header just after the magic string of the provided flatbuffer data. Args: flatbuffer_data: The in | STRING |
| 7 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | install_executorch.py | 231 | # Step 1: Install core dependencies first | COMMENT |
| LOW⚡ | install_executorch.py | 234 | # Step 2: Install core package | COMMENT |
| LOW | install_executorch.py | 256 | # Step 3: Extra (optional) packages that is only useful for running examples. | COMMENT |
| LOW | extension/module/test/resources/gen_bundled_program.py | 14 | # Step 1: ExecuTorch Program Export | COMMENT |
| LOW | extension/module/test/resources/gen_bundled_program.py | 54 | # Step 2: Construct MethodTestSuite for Each Method | COMMENT |
| LOW⚡ | extension/module/test/resources/gen_bundled_program.py | 86 | # Step 3: Generate BundledProgram | COMMENT |
| LOW⚡ | extension/module/test/resources/gen_bundled_program.py | 89 | # Step 4: Serialize BundledProgram to flatbuffer. | COMMENT |
| LOW⚡ | extension/gguf_util/load_gguf.py | 96 | # Step 1: Build GGUFModelArgs | COMMENT |
| LOW⚡ | extension/gguf_util/load_gguf.py | 100 | # Step 2: Build GGUFWeights | COMMENT |
| LOW⚡ | extension/gguf_util/convert_main.py | 32 | # Step 1: Load the GGUF file | COMMENT |
| LOW⚡ | extension/gguf_util/convert_main.py | 35 | # Step 2: Convert the GGUF model to PTE | COMMENT |
| LOW | extension/gguf_util/convert_main.py | 47 | # Step 3: Save the PTE program so that | COMMENT |
| LOW⚡ | extension/gguf_util/converters/llama_converter.py | 110 | # Step 1: Create the PyTorch model | COMMENT |
| LOW⚡ | extension/gguf_util/converters/llama_converter.py | 116 | # Step 2: Load the weights into the PyTorch model | COMMENT |
| LOW⚡ | extension/gguf_util/converters/llama_converter.py | 120 | # Step 3: Export to ExecuTorch | COMMENT |
| LOW | extension/image/image_processor.cpp | 342 | // Step 1: orientation (orient -> ROI -> resize). Produce an oriented copy of | COMMENT |
| LOW | extension/image/image_processor.cpp | 366 | // Step 2: ROI crop (pointer arithmetic). | COMMENT |
| LOW | extension/image/image_processor.cpp | 387 | // Step 3: Swizzle BGRA/RGBA → RGB (alpha discarded). | COMMENT |
| LOW | extension/image/image_processor.cpp | 401 | // Step 4: Resize. | COMMENT |
| LOW | extension/image/image_processor.cpp | 422 | // Step 5: Normalize + layout into the caller's CHW output (padded). | COMMENT |
| LOW | extension/image/image_processor_apple.cpp | 695 | // Step 2: orientation. Rotate the BGRA buffer (vImage) so ROI/resize run in | COMMENT |
| LOW⚡ | extension/image/image_processor_apple.cpp | 721 | // Step 3: ROI crop (pointer arithmetic on BGRA data). | COMMENT |
| LOW⚡ | extension/image/image_processor_apple.cpp | 724 | // Step 4: resize. Letterbox padding is applied during normalization. | COMMENT |
| LOW | extension/image/image_processor_apple.cpp | 753 | // Step 5: normalize BGRA → CHW float buffer. | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 61 | # Step 1: Checkout old version of ExecuTorch | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 66 | # Step 2: Install the old version | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 75 | # Step 3: Export model | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 124 | # Step 4: Checkout current version (main) | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 130 | # Step 5: Install current version | COMMENT |
| LOW⚡ | .ci/scripts/test_coreml_bc.sh | 135 | # Step 6: Run the old pte file | COMMENT |
| LOW | backends/qualcomm/_passes/decompose_diagonal.py | 95 | # Step 1: Permute dim1, dim2 to last positions (if needed) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_diagonal.py | 107 | # Step 2: Reshape [..., M, N] -> [..., M*N] | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_diagonal.py | 117 | # Step 3: Compute flat diagonal indices | COMMENT |
| LOW | backends/qualcomm/_passes/decompose_diagonal.py | 142 | # Step 4: index_select on last dim | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_cdist.py | 19 | # Step 1: Compute differences | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_cdist.py | 22 | # Step 2: Square differences | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_cdist.py | 25 | # Step 3: Sum of squares | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_cdist.py | 28 | # Step 4: Square root | COMMENT |
| LOW | backends/qualcomm/_passes/decompose_var.py | 82 | # Step 1: mean_x = mean(x, dim, keepdim=True) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_var.py | 94 | # Step 2: diff = x - mean_x | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_var.py | 102 | # Step 3: sq = diff * diff (more efficient than pow(diff, 2)) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_var.py | 110 | # Step 4: var = mean(sq, dim, keepdim) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_var.py | 116 | # Step 5: Apply correction factor if needed | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_div_mode.py | 55 | # Step 1: div_result = div(x, y) | COMMENT |
| LOW⚡ | backends/qualcomm/_passes/decompose_div_mode.py | 61 | # Step 2: Apply rounding mode if needed | COMMENT |
| LOW | backends/qualcomm/_passes/convert_linear_to_conv2d.py | 169 | # Step 1: calibrate input | COMMENT |
| LOW | backends/qualcomm/_passes/convert_linear_to_conv2d.py | 196 | # Step 2: reshape weight | COMMENT |
| LOW | backends/qualcomm/_passes/convert_linear_to_conv2d.py | 272 | # Step 3: restore original output of linear node | COMMENT |
| LOW⚡ | …l_preparation/executorch_model_preparation_strategy.py | 143 | # Step 1: Load model | COMMENT |
| LOW⚡ | …l_preparation/executorch_model_preparation_strategy.py | 150 | # Step 2: Load tokenizer | COMMENT |
| LOW⚡ | …l_preparation/executorch_model_preparation_strategy.py | 157 | # Step 3: Build the export example inputs from the model itself. | COMMENT |
| LOW | …l_preparation/executorch_model_preparation_strategy.py | 168 | # Step 4: Generate calibration data via the cross-stage dataset adapter | COMMENT |
| LOW | …l_preparation/executorch_model_preparation_strategy.py | 179 | # Step 5: Optionally export tokenizer for runtime | COMMENT |
| LOW | …l_preparation/executorch_model_preparation_strategy.py | 190 | # Step 6: Extract chat_template from tokenizer (for instruct models). | COMMENT |
| LOW | …egies/quantization/executorch_quantization_strategy.py | 130 | # Step 1: Export model. The example inputs describe the model's own | COMMENT |
| LOW | …egies/quantization/executorch_quantization_strategy.py | 141 | # Step 2: Create quantizer | COMMENT |
| LOW⚡ | …egies/quantization/executorch_quantization_strategy.py | 168 | # Step 3: Prepare (insert observers) | COMMENT |
| LOW⚡ | …egies/quantization/executorch_quantization_strategy.py | 172 | # Step 4: Calibrate | COMMENT |
| LOW⚡ | …egies/quantization/executorch_quantization_strategy.py | 178 | # Step 5: Convert to quantized model | COMMENT |
| LOW⚡ | …/strategies/inference/executorch_inference_strategy.py | 97 | # Step 1: Push artifacts to device. Only the artifacts: the adapter | COMMENT |
| 116 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install_executorch.py | 136 | # Check if the directories exist for each required submodule | COMMENT |
| LOW | setup.py | 2802 | # Check if QNN SDK is available (via QNN_SDK_ROOT env var), and if so, | COMMENT |
| LOW | setup.py | 2956 | # Set PYTHONPATH to the location of the pip package. | COMMENT |
| LOW | install_utils.py | 122 | # Check if the detected version is supported | COMMENT |
| LOW | …tension/llm/custom_ops/test_update_cross_attn_cache.py | 17 | # Check if CUDA device has compatible compute capability for Triton kernels | COMMENT |
| LOW | extension/llm/export/export_passes.py | 51 | # Check if the next node is also a transpose node | COMMENT |
| LOW | extension/llm/export/export_passes.py | 69 | # Check if the two transpose nodes undo each other | COMMENT |
| LOW | extension/llm/export/export_passes.py | 79 | # Check if the next node is also a transpose node | COMMENT |
| LOW | extension/llm/export/export_passes.py | 91 | # Check if the two permutes undo each other | COMMENT |
| LOW | extension/training/examples/CIFAR/train_utils.py | 132 | model.eval() # Set model to evaluation mode | CODE |
| LOW | .ci/docker/common/install_cuda_windows_cross_compile.sh | 95 | # Check if already downloaded and extracted | COMMENT |
| LOW | .ci/scripts/download_hf_hub.sh | 57 | # Check if script is called directly | COMMENT |
| LOW | .ci/scripts/compare_dirs.sh | 10 | # Check if dir1's files are also found in dir2 with the same | COMMENT |
| LOW | .ci/scripts/compare_dirs.sh | 36 | # Check if the corresponding file exists in the second directory | COMMENT |
| LOW | backends/apple/metal/passes/decompose_linear_pass.py | 30 | # Check if this is a linear operation | COMMENT |
| LOW | backends/apple/metal/tests/test_metal_partitioner.py | 59 | # Check if we have any tagged nodes | COMMENT |
| LOW | backends/apple/metal/tests/test_metal_partitioner.py | 63 | # Check if all tagged nodes have the same tag | COMMENT |
| LOW | backends/apple/metal/tests/run_metal_test.sh | 13 | # ./run_metal_test.sh --check-build # Check if runtime is already built | COMMENT |
| LOW | backends/apple/metal/tests/run_metal_test.sh | 55 | # Check if we're on macOS | COMMENT |
| LOW | backends/apple/metal/tests/test_modules.py | 46 | # Check if MPS is available for export tests | COMMENT |
| LOW | backends/apple/metal/tests/test_modules.py | 52 | # Check if running in CI (GitHub Actions) | COMMENT |
| LOW | backends/apple/metal/tests/test_modules.py | 68 | # Check if executor_runner is built | COMMENT |
| LOW | backends/apple/metal/tests/test_modules.py | 1478 | # Check if this model/dtype combination should be skipped | COMMENT |
| LOW | backends/apple/metal/tests/test_modules.py | 1512 | # Check if this model/dtype combination should be skipped | COMMENT |
| LOW | backends/apple/coreml/partition/coreml_partitioner.py | 291 | # Check if we're being called from the deprecated to_backend workflow | STRING |
| LOW | backends/nxp/nxp_backend.py | 257 | # Check if provided intermediates_dir is a correct path (None is decoded to str) | COMMENT |
| LOW | backends/nxp/neutron_partitioner.py | 488 | # Check if the nodes support the partitioning result. Mark the problematic nodes with `NXP_DO_NOT_DELEGATE`. | COMMENT |
| LOW | backends/nxp/tests/graph_verifier.py | 229 | # Check if the node was tagged for delegation during partitioning | COMMENT |
| LOW⚡ | backends/nxp/tests/generic_tests/test_aot_example.py | 113 | # Check if delegated model was created and saved. | COMMENT |
| LOW⚡ | backends/nxp/tests/generic_tests/test_aot_example.py | 119 | # Check if nonempty Neutron to Edge map was created. | COMMENT |
| LOW⚡ | backends/nxp/tests/generic_tests/test_aot_example.py | 122 | # Check if ETRecord was created and saved. | COMMENT |
| LOW | …nxp/tests/generic_tests/test_convert_scalar_to_attr.py | 59 | # Check if the node with scalar arg did not disappear. | COMMENT |
| LOW | backends/nxp/tests/generic_tests/test_quantizer.py | 202 | # Check if QDQ pattern: | COMMENT |
| LOW | backends/nxp/tests/generic_tests/test_quantizer.py | 213 | # Check if input and output quantization is same | COMMENT |
| LOW | backends/nxp/tests/generic_tests/test_quantizer.py | 236 | # Check if QDQ pattern: | COMMENT |
| LOW | …ckends/nxp/backend/ir/tflite_generator/tflite_model.py | 599 | # Check if any of the inputs is quantized | COMMENT |
| LOW | …ends/nxp/backend/ir/converter/builder/model_builder.py | 194 | # Check if such tensor already exists | COMMENT |
| LOW | …ckend/ir/neutron_ir_post_processing/pattern_matcher.py | 648 | # Check if it is connected via the inputs. | COMMENT |
| LOW | …ckend/ir/neutron_ir_post_processing/pattern_matcher.py | 740 | # Check if it is connected via the inputs. | COMMENT |
| LOW | …_processing/optimizations/prune_transpose_operators.py | 146 | # Check if the `Transpose` is doing nothing. | COMMENT |
| LOW | …es/remove_additional_quantize_dequantize_nodes_pass.py | 102 | # Check if all quantization params are equal to ensure that QDQ cluster can be removed. | COMMENT |
| LOW | …kends/nxp/aten_passes/move_activation_before_concat.py | 55 | # Check if all cat inputs nodes are conv 2D or linear 2D type and their only user is cat. | COMMENT |
| LOW | …kends/nxp/aten_passes/move_activation_before_concat.py | 65 | # Check if following activation is supported on Neutron as fused activation. | COMMENT |
| LOW | …aten_passes/add_batch_size_for_3d_input_pool_2d_ops.py | 72 | # Check if input is 3D (C, H, W) | COMMENT |
| LOW | …ends/nxp/aten_passes/decompose_split_to_slices_pass.py | 175 | # Check if split is even necessary - if not, remove it | COMMENT |
| LOW | backends/test/suite/runner.py | 185 | # Check if any undelegated ops are in the unsupported ops set. | COMMENT |
| LOW | backends/qualcomm/_passes/utils.py | 332 | # Check if pattern is valid | COMMENT |
| LOW | backends/qualcomm/scripts/build.sh | 11 | # Check if running on macOS/Darwin | COMMENT |
| LOW | backends/qualcomm/scripts/install_qnn_sdk.sh | 11 | # Check if ANDROID_NDK_ROOT is already set and valid | COMMENT |
| LOW | backends/qualcomm/scripts/install_qnn_sdk.sh | 61 | # Check if QNN_SDK_ROOT is already set and valid | COMMENT |
| LOW | backends/qualcomm/scripts/install_qnn_sdk.sh | 132 | # Check if already configured externally and valid. | COMMENT |
| LOW | backends/qualcomm/scripts/install_qnn_sdk.sh | 212 | # Check if we already have a local installation | COMMENT |
| LOW | backends/cuda/tests/test_cuda_partitioner.py | 646 | # Check if we have any tagged nodes | COMMENT |
| LOW | backends/cuda/tests/test_cuda_partitioner.py | 650 | # Check if all tagged nodes have the same tag | COMMENT |
| LOW | backends/cuda/tests/test_cuda_partitioner.py | 766 | # Check if this is a constant (param, buffer, or lifted tensor constant) | COMMENT |
| LOW | backends/cuda/tests/test_cuda_export.py | 426 | # Set module to eval mode to avoid batch norm running statistics mutations | COMMENT |
| LOW | backends/openvino/tests/ops/base_openvino_op_test.py | 46 | # Check if the number of partitions created matches the expected number of partitions | COMMENT |
| LOW | backends/openvino/tests/ops/base_openvino_op_test.py | 51 | # Check if the individual partitions are assigned to Openvino backend | COMMENT |
| LOW | backends/openvino/scripts/openvino_build.sh | 60 | # Set parameters to configure the project with CMake | COMMENT |
| LOW⚡ | backends/samsung/_passes/annotate_qparams.py | 320 | # Check if input is a Dequant node | COMMENT |
| 153 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extension/llm/custom_ops/custom_ops.py | 558 | CODE | |
| LOW | extension/llm/custom_ops/test_sdpa_with_kv_cache.py | 45 | CODE | |
| LOW | extension/llm/custom_ops/preprocess_custom_ops.py | 56 | CODE | |
| LOW | extension/llm/custom_ops/test_quantized_sdpa.py | 155 | CODE | |
| LOW | extension/llm/custom_ops/test_quantized_sdpa.py | 220 | CODE | |
| LOW | extension/llm/export/builder.py | 79 | CODE | |
| LOW | extension/audio/mel_spectrogram.py | 44 | CODE | |
| LOW | …ripts/benchmark_tooling/get_benchmark_analysis_data.py | 603 | CODE | |
| LOW | test/end2end/test_end2end.py | 457 | CODE | |
| LOW | backends/apple/metal/tests/test_modules.py | 706 | CODE | |
| LOW | backends/nxp/nxp_backend.py | 163 | CODE | |
| LOW | backends/nxp/tests/executorch_pipeline.py | 178 | CODE | |
| LOW | backends/nxp/tests/executorch_pipeline.py | 268 | CODE | |
| LOW | backends/nxp/tests/executors.py | 310 | CODE | |
| LOW | backends/nxp/tests/simple_models.py | 14 | CODE | |
| LOW | backends/nxp/tests/simple_models.py | 43 | CODE | |
| LOW | backends/nxp/tests/simple_models.py | 74 | CODE | |
| LOW | backends/nxp/tests/simple_models.py | 103 | CODE | |
| LOW | backends/nxp/tests/simple_models.py | 134 | CODE | |
| LOW | backends/nxp/tests/nsys_testing.py | 384 | CODE | |
| LOW | backends/nxp/tests/tester/tester.py | 574 | CODE | |
| LOW | backends/nxp/tests/generic_tests/test_aot_example.py | 50 | CODE | |
| LOW | …ir/tflite_generator/builtin_options/conv_3d_options.py | 29 | CODE | |
| LOW | backends/test/harness/tester.py | 228 | CODE | |
| LOW | backends/test/harness/tester.py | 316 | CODE | |
| LOW | backends/test/harness/tester.py | 543 | CODE | |
| LOW | backends/test/suite/operators/test_conv1d.py | 21 | CODE | |
| LOW | backends/test/suite/operators/test_conv3d.py | 22 | CODE | |
| LOW | backends/test/suite/operators/test_conv2d.py | 22 | CODE | |
| LOW | backends/test/suite/operators/test_convtranspose2d.py | 22 | CODE | |
| LOW | backends/test/suite/operators/test_convtranspose3d.py | 22 | CODE | |
| LOW | backends/test/suite/operators/test_convtranspose1d.py | 22 | CODE | |
| LOW | backends/test/suite/operators/test_lstm.py | 27 | CODE | |
| LOW | backends/qualcomm/export_utils.py | 574 | CODE | |
| LOW | backends/qualcomm/export_utils.py | 731 | CODE | |
| LOW | backends/qualcomm/tests/models.py | 988 | CODE | |
| LOW | backends/qualcomm/tests/models.py | 1016 | CODE | |
| LOW | backends/qualcomm/tests/utils.py | 359 | CODE | |
| LOW | backends/qualcomm/tests/utils.py | 704 | CODE | |
| LOW | backends/qualcomm/tests/utils.py | 795 | CODE | |
| LOW | backends/qualcomm/utils/utils.py | 346 | CODE | |
| LOW | backends/qualcomm/utils/utils.py | 1212 | CODE | |
| LOW | backends/qualcomm/utils/utils.py | 186 | CODE | |
| LOW | backends/qualcomm/_passes/decompose_maxpool3d.py | 54 | CODE | |
| LOW | …comm/quantizer/observers/per_channel_param_observer.py | 21 | CODE | |
| LOW | …comm/quantizer/observers/per_channel_param_observer.py | 125 | CODE | |
| LOW | …ckends/qualcomm/quantizer/observers/concat_observer.py | 17 | CODE | |
| LOW | backends/cuda/tests/test_chunk_gated_delta_rule.py | 183 | CODE | |
| LOW | backends/cuda/tests/test_fused_moe.py | 104 | CODE | |
| LOW | backends/cuda/tests/test_cuda_export.py | 423 | CODE | |
| LOW | …pu/test/ops/dynamic_shape/test_dynamic_shape_export.py | 103 | CODE | |
| LOW | backends/transforms/test/test_create_mutable_buffer.py | 487 | CODE | |
| LOW | backends/transforms/test/test_create_mutable_buffer.py | 520 | CODE | |
| LOW | backends/transforms/test/test_create_mutable_buffer.py | 553 | CODE | |
| LOW | backends/transforms/test/test_create_mutable_buffer.py | 583 | CODE | |
| LOW | backends/transforms/test/test_create_mutable_buffer.py | 613 | CODE | |
| LOW | backends/vulkan/op_registry.py | 55 | CODE | |
| LOW | backends/vulkan/custom_ops_lib.py | 35 | CODE | |
| LOW | backends/vulkan/custom_ops_lib.py | 104 | CODE | |
| LOW | backends/vulkan/custom_ops_lib.py | 77 | CODE | |
| 186 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | kernels/portable/test/op_upsample_bilinear2d_aa_test.py | 11 | # The comprehensive C++ test suite in op_upsample_bilinear2d_aa_test.cpp provides | COMMENT |
| MEDIUM | kernels/portable/cpu/util/broadcast_util.cpp | 150 | // Essentially, we can broadcast broadcast_from if it meets three conditions | COMMENT |
| MEDIUM | kernels/optimized/utils/llvmMathExtras.h | 697 | /// Essentially, it is a floor operation across the domain of powers of two. | COMMENT |
| MEDIUM | kernels/optimized/utils/llvmMathExtras.h | 705 | /// Essentially, it is a ceil operation across the domain of powers of two. | COMMENT |
| LOW | extension/llm/custom_ops/custom_ops.py | 357 | # workaround. Should we just return cache instead? But I am afraid that | COMMENT |
| LOW | extension/llm/custom_ops/custom_ops.py | 377 | # workaround. Should we just return cache instead? But I am afraid that | COMMENT |
| LOW | extension/llm/custom_ops/custom_ops.py | 601 | # no copies, just pass-through | COMMENT |
| LOW | extension/llm/custom_ops/custom_ops.py | 618 | # Alias is logically a no-op – just pass them through. | COMMENT |
| LOW | extension/llm/export/export_passes.py | 135 | # Ignore specified mask simply set the is_causal flag. | COMMENT |
| MEDIUM | .ci/scripts/gather_test_models.py | 121 | # comprehensive E2E test of llava. | COMMENT |
| MEDIUM | …ripts/benchmark_tooling/analyze_benchmark_stability.py | 1245 | """Generate a comprehensive summary report""" | STRING |
| MEDIUM | backends/qualcomm/genai_pipeline/control_args.py | 270 | # IPC endpoint the CI harness listens on for results. | COMMENT |
| MEDIUM | backends/cuda/autotune/cuda_graph_timing.py | 267 | # Same lock as Inductor's own GPU timing (a no-op unless a harness set one). | COMMENT |
| MEDIUM | …webgpu/runtime/ops/layer_norm/native_layer_norm_wgsl.h | 37 | // Single-pass, numerically-robust mean+variance via Chan et al.'s parallel | COMMENT |
| MEDIUM | …s/transforms/test/test_decompose_channels_last_pass.py | 196 | # tests rather than the single-output _CASES harness. | COMMENT |
| LOW | backends/vulkan/utils.py | 1051 | # or non tensor argument. In this case, just return default storage and | COMMENT |
| MEDIUM | …vulkan/runtime/graph/ops/impl/QuantizedLinearQCSNW.cpp | 282 | // TODO(ssjia): Determine a more robust heuristic to determine when the coop | COMMENT |
| MEDIUM | backends/vulkan/runtime/graph/ops/impl/Q4gswLinear.cpp | 127 | // shape, but (8,8) is within 3% there and is robust across | COMMENT |
| LOW | backends/vulkan/_passes/tag_memory_meta_pass.py | 75 | # Case where the arg node has not been touched yet; in this case, simply set it and | COMMENT |
| LOW | backends/arm/process_node.py | 168 | # Get item nodes just add tensors, no node visitor is needed. | COMMENT |
| MEDIUM | backends/arm/test/runner_utils.py | 415 | # This is a hack since Q/DQ ops does not handle channels last input correctly: the simplest and most robust | COMMENT |
| LOW | backends/arm/operators/op_while.py | 76 | # If we have more inputs than outputs, we can just add missing output tensors. | COMMENT |
| MEDIUM | backends/arm/cmsis_pack/test/all_ops/gen_cproject.py | 183 | # sets this; the bare-device harness sets it here. ALL_OPS_ETHOS_U activates | STRING |
| LOW | backends/arm/tosa/utils.py | 94 | # Already in the right shape we can just add it to the list. | COMMENT |
| LOW | backends/arm/operator_support/ethos_u55_support.py | 115 | # If we couldn't determine dtype, just return ok. | COMMENT |
| MEDIUM | backends/arm/scripts/aot_arm_compiler.py | 781 | # To create a bundled program, we first create every test cases from input. We leverage eager model | COMMENT |
| LOW | backends/cadence/aot/compiler_utils.py | 197 | # If x was quantized per-tensor, simply create a tensor out of the scalar | COMMENT |
| LOW | backends/mlx/builder/op_helpers.py | 153 | # Both static - just return the sum | COMMENT |
| MEDIUM | backends/aoti/utils.h | 33 | // Map int32_t dtype to ExecuTorch ScalarType (robust version of hardcoded | COMMENT |
| MEDIUM | …ntime/core/portable_type/c10/c10/util/llvmMathExtras.h | 692 | /// Essentially, it is a floor operation across the domain of powers of two. | COMMENT |
| MEDIUM | …ntime/core/portable_type/c10/c10/util/llvmMathExtras.h | 700 | /// Essentially, it is a ceil operation across the domain of powers of two. | COMMENT |
| MEDIUM | …source/tutorials_source/devtools-debugging-tutorial.py | 18 | # This tutorial will show a full end-to-end flow of how to utilize the Developer Tools to debug a model | COMMENT |
| MEDIUM⚡ | …urce/tutorials_source/devtools-integration-tutorial.py | 20 | # This tutorial will show a full end-to-end flow of how to utilize the Developer Tools to profile a model. | COMMENT |
| LOW | devtools/inspector/_inspector.py | 583 | # If it's not a delegated op then we can just use the raw time values | COMMENT |
| MEDIUM | examples/qualcomm/qaihub_scripts/utils/export.py | 74 | # leverage QNN pybind interface to retrieve tensor encodings | COMMENT |
| MEDIUM | examples/qualcomm/qaihub_scripts/utils/export.py | 169 | # leverage SimpleADB for model library conversion | COMMENT |
| MEDIUM | examples/qualcomm/qaihub_scripts/utils/export.py | 317 | # leverage SimpleADB for e2e inference | COMMENT |
| MEDIUM | examples/qualcomm/util_scripts/cli.py | 112 | # leverage QNN pybind interface to retrieve tensor encodings | COMMENT |
| MEDIUM | examples/qualcomm/util_scripts/cli.py | 363 | # leverage SimpleADB for e2e inference | COMMENT |
| MEDIUM | examples/models/llama/install_requirements.sh | 12 | # Install lm-eval for Model Evaluation with lm-evalution-harness. | COMMENT |
| MEDIUM | examples/models/llama/export_llama_lib.py | 99 | # All models that leverage the transformer architecture defined in llama_transformer.py. | COMMENT |
| MEDIUM | examples/models/llama/eval_llama_lib.py | 363 | # See https://github.com/EleutherAI/lm-evaluation-harness/pull/1998/files | COMMENT |
| LOW | …/models/llama/source_transformation/custom_kv_cache.py | 187 | # When returning float values we just use the last value | COMMENT |
| MEDIUM | examples/devtools/scripts/export_bundled_program.py | 94 | # To create a bundled program, we first create every test cases from input. We leverage eager model | COMMENT |
| MEDIUM | .github/workflows/test-backend-cortex-m.yml | 35 | # Arm's test harness, and importing it pulls in around 350 arm modules -- | COMMENT |
| LOW⚡ | .github/scripts/propose_ghstack_orig_pr.py | 91 | # If there's more than one Differential Revision, let's just return empty | COMMENT |
| LOW | .github/scripts/trymerge.py | 737 | # so let's just use main instead | STRING |
| LOW | exir/lowered_backend_module.py | 716 | # the delegate will just return the result of the | COMMENT |
| LOW | exir/backend/backend_api.py | 799 | # this edge program wasn't partitioned, so we can just return it as is | COMMENT |
| LOW | exir/serde/serialize.py | 133 | # Replace the edge op with the original ATen op so that we can just call into | COMMENT |
| LOW | exir/serde/serialize.py | 496 | # Replace the edge op with the original ATen op so that we can just call into | COMMENT |
| LOW | exir/serde/schema.py | 217 | # (ex. cond, map) where single tensor returns will just return a single | COMMENT |
| MEDIUM | export/tests/test_export_session.py | 590 | # Create comprehensive recipes | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | backends/qualcomm/tests/rework/src/feature.py | 473 | # runtime_option: scaffold — GPUruntime perf hint not yet wired in C++ | COMMENT |
| MEDIUM | backends/qualcomm/tests/rework/src/feature.py | 488 | # runtime_option: scaffold — LPAI runtime perf hint not yet wired in C++ | COMMENT |
| MEDIUM | backends/vulkan/_passes/squeeze_unsqueeze_inputs.py | 45 | # Prefer not to introduce additional orchestration ops by default | COMMENT |
| MEDIUM | docs/source/success-stories.md | 223 | [Read the benchmark →](https://pytorch.org/blog/fast-ondevice-agentic-ai-with-executorch/) | CODE |
| MEDIUM | codegen/gen.py | 142 | # and the scaffolding to call into the dispatcher from these functions. | STRING |
| MEDIUM | …es/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py | 413 | # get embedding model | COMMENT |
| MEDIUM | …utils/llm_utils/tokenizers_/tokenization_utils_base.py | 1643 | see the RAG section of the [chat templating guide](https://huggingface.co/docs/transformers/main/en/chat | STRING |
| MEDIUM | examples/models/qwen3_5_moe/export.py | 1080 | # The wrapper.cpp is pure kernel launch orchestration — no heavy compute. | COMMENT |
| MEDIUM | examples/llm_server/python/openai_transcript.py | 35 | # The assistant header that precedes a turn's generation scaffold + content. | COMMENT |
| MEDIUM | examples/llm_server/python/openai_transcript.py | 49 | # A scaffold region is exactly empty (history strips it before the last user) or | COMMENT |
| MEDIUM | examples/llm_server/python/openai_transcript.py | 157 | # No generation scaffold: the worker prefills nothing ahead of the | COMMENT |
| MEDIUM | examples/llm_server/python/openai_transcript.py | 340 | # Splice ids and normalize each turn's scaffold; None => ambiguous region. | COMMENT |
| MEDIUM | examples/llm_server/python/protocol.py | 41 | # Optional prior-turn reasoning (chain-of-thought). Mirrors | COMMENT |
| MEDIUM | examples/llm_server/python/chat_template.py | 118 | # Cache of the (deterministic) generation scaffold per resolved mode, so | COMMENT |
| MEDIUM | examples/llm_server/python/serving_chat.py | 469 | # possibly a clamp to the context window) — trust it over the token-count | COMMENT |
| MEDIUM | examples/llm_server/python/serving_chat.py | 658 | # The generation scaffold the worker will prefill ahead of this turn's | COMMENT |
| MEDIUM | examples/llm_server/python/serving_chat.py | 661 | # reproduces the exact resident scaffold even if the mode changes between | COMMENT |
| MEDIUM | examples/llm_server/python/worker_client.py | 53 | # stop) or "length" (ran to max_new, possibly clamped to the context window). | COMMENT |
| MEDIUM | examples/llm_server/python/tests/test_sessions.py | 398 | # A client-injected assistant turn we never generated (few-shot exemplar / | COMMENT |
| MEDIUM | examples/llm_server/python/tests/test_contract.py | 448 | # context window, so the token-count heuristic can't tell a real stop from a | COMMENT |
| MEDIUM | …s/llm_server/python/tests/test_warm_resume_scaffold.py | 167 | # History stripped the scaffold; the fix inserts exactly one copy. | COMMENT |
| MEDIUM | …s/llm_server/python/tests/test_warm_resume_scaffold.py | 199 | # (wrong scaffold) and not append a second one (double-insert). | COMMENT |
| MEDIUM | …s/llm_server/python/tests/test_warm_resume_scaffold.py | 731 | # --- Harmony/ATEM thinking turns (no generation scaffold) ------------------ | COMMENT |
| MEDIUM | …s/llm_server/python/tests/test_warm_resume_scaffold.py | 1284 | # on them, so a template whose post-header scaffold depends on tools gets the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extension/kernel_util/make_boxed_from_unboxed_functor.h | 13 | /// Example usage: | COMMENT |
| LOW | .ci/scripts/detect_ci.sh | 7 | # Usage: | COMMENT |
| LOW | .ci/scripts/build-cadence-xtensa.sh | 16 | # Usage: | COMMENT |
| LOW | .ci/scripts/cuda_benchmark_from_e2e.sh | 18 | # Usage: | COMMENT |
| LOW | .ci/scripts/setup-xtensa-tools.sh | 17 | # Usage: | COMMENT |
| LOW | backends/apple/metal/tests/run_metal_test.sh | 9 | # Usage: | COMMENT |
| LOW | backends/xnnpack/utils/gen_xnnpack_constants.sh | 8 | # Usage: | COMMENT |
| LOW | backends/arm/cmsis_pack/scripts/build_pack.sh | 14 | # Usage: | COMMENT |
| LOW⚡ | backends/arm/cmsis_pack/scripts/copy_sources.sh | 14 | # Usage: | COMMENT |
| LOW | backends/arm/scripts/utils.sh | 17 | # Usage: | COMMENT |
| LOW | …kends/arm/scripts/build_executor_runner_vgf_android.sh | 10 | # Usage: | COMMENT |
| LOW | backends/aoti/slim/factory/from_etensor.h | 34 | /// Example usage: | COMMENT |
| LOW | devtools/scripts/profile_model.sh | 15 | # Usage: | COMMENT |
| LOW | devtools/scripts/benchmark_android.sh | 13 | # Usage: | COMMENT |
| LOW | …qualcomm/oss_scripts/llama/train/config/lr_config.yaml | 24 | # Usage: | COMMENT |
| LOW | examples/models/voxtral_realtime/run_rocm_e2e.sh | 4 | # Usage: | COMMENT |
| LOW | examples/models/voxtral_tts/run_cuda_e2e.sh | 7 | # Usage: | COMMENT |
| LOW | examples/arduino/build_arduino_library.sh | 11 | # Usage: | COMMENT |
| LOW | examples/export/qat_pipeline_split/run.sh | 13 | # Usage: | COMMENT |
| LOW | examples/espressif/build.sh | 15 | # Usage: | COMMENT |
| LOW | scripts/test_ios.sh | 8 | # Usage: | COMMENT |
| LOW | .github/scripts/trigger_cuda_benchmark.sh | 12 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | backends/vulkan/runtime/graph/ops/impl/BatchNorm.cpp | 48 | // In this implementation, we pack the weights along the x dimension, and | COMMENT |
| HIGH | …urce/examples-end-to-end-to-lower-model-to-delegate.md | 53 | # The submodule runs in a specific backend. In this example, `BackendWithCompilerDemo` backend | COMMENT |
| HIGH | examples/devtools/CMakeLists.txt | 9 | # support. In this example we link devtools and bundled_program libraries into | COMMENT |
| HIGH | exir/backend/test/test_backends_lifted.py | 515 | # the submodule runs in a specific backend. In this example, `BackendWithCompilerDemo` backend | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extension/llm/export/builder.py | 127 | # make sure to re-export this graph module to persist any changes. See | COMMENT |
| LOW | runtime/core/exec_aten/util/scalar_type_util.h | 510 | // Don't forget to extend this when adding new QInt types | COMMENT |
| LOW | runtime/core/exec_aten/util/scalar_type_util.h | 524 | // Don't forget to extend this when adding new QInt types | COMMENT |
| LOW | runtime/core/exec_aten/util/scalar_type_util.h | 538 | // Don't forget to extend this when adding new QInt types | COMMENT |
| MEDIUM | devtools/inspector/tests/inspector_test.py | 1728 | """A simple test model for demonstration purposes.""" | STRING |
| MEDIUM | …es/qualcomm/oss_scripts/llama/assets/samples/text.json | 10 | "content": "**Example:** \"Guessing Game\"\n\n**Objective:** To create a simple program that asks the user to gu | CODE |
| LOW | …utils/llm_utils/tokenizers_/tokenization_utils_fast.py | 715 | # make sure to be foward compatible | STRING |
| LOW | exir/backend/backend_api.py | 434 | # we make sure to remove them after we finished partition_and_lower | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extension/data_loader/mman_windows.cpp | 101 | // TODO: implement | COMMENT |
| LOW | backends/xnnpack/quantizer/xnnpack_quantizer.py | 398 | # TODO: implement the support for None to be canceling out previous annotations | COMMENT |
| LOW | backends/arm/quantizer/arm_quantizer.py | 1160 | # TODO: implement the support for None to be canceling out previous annotations | COMMENT |
| LOW | backends/cortex_m/ops/operators.py | 1678 | # TODO: implement dilation != 1. | COMMENT |
| LOW⚡ | devtools/inspector/_inspector.py | 1536 | # TODO: implement | STRING |
| LOW⚡ | devtools/inspector/_inspector.py | 1543 | # TODO: implement | STRING |
| LOW | examples/models/llava/model.py | 217 | # TODO: implement _upsample_bicubic_aa.out in portable kernel library. | COMMENT |
| LOW | exir/tests/test_quantization.py | 87 | # TODO: implement torch.ops.quantized_decomposed.add_relu.out | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | backends/cadence/aot/fuse_ops.py | 425 | CODE | |
| MEDIUM | backends/cadence/aot/fuse_ops.py | 427 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/models/llama/static_attention.py | 1645 | def helper(m): | CODE |