AI Slop Code RIsk Monitor

pytorch/executorch

On-device AI across mobile, embedded and edge for PyTorch

12.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

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.

12.1
Adjusted Signal
12.1
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
5.1K
Stars
Python
Language
1.8M
Lines of Code
8.5K
Files
17.2K
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 31.9/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 7.6/100 · LOW

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

Agent Over-Engineering Ratio 31.7/100 · MEDIUM

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

PR Review Velocity Impact 46.9/100 · MEDIUM

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 35HIGH 534MEDIUM 1370LOW 15300

Directory Score Breakdown

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

Pattern Findings

The scanner identified 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.

Hyper-Verbose Identifiers8942 hits · 8557 pts
SeverityFileLineSnippetContext
LOWinstall_executorch.py111def get_required_submodule_paths():CODE
LOWinstall_executorch.py132def check_and_update_submodules():CODE
LOWinstall_requirements.py171def install_optional_example_requirements(use_pytorch_nightly):CODE
LOWsetup.py935def _verify_cuda_runtime_matches_train(cmake_cache_dir: Optional[str]) -> None:CODE
LOWsetup.py1008def _sibling_library_search_paths(depth: int = 1) -> List[str]:CODE
LOWsetup.py1033def _cuda_runtime_search_paths(depth: int = 1) -> List[str]:CODE
LOWsetup.py1049def _is_cuda_toolkit_directory(entry: str) -> bool:CODE
LOWsetup.py1074def _is_unresolved_math_library_directory(entry: str) -> bool:CODE
LOWsetup.py1372def _windows_import_libraries() -> List["BuiltFile"]:CODE
LOWsetup.py1736 def _resubstitute_tracer_definition(self) -> None:CODE
LOWsetup.py1748 def copy_extensions_to_source(self) -> None:CODE
LOWsetup.py1848def _append_relative_search_paths(entries: List[str], depth: int = 1) -> None:CODE
LOWsetup.py2042def _strip_absolute_runtime_paths(library: Path, ships_cuda: bool) -> None:CODE
LOWsetup.py2445 def _write_cmake_version_file(self, dst_root: str) -> None:CODE
LOWsetup.py2571def _substitute_tracer_definition(path: str, cmake_cache_dir: str) -> None:CODE
LOWsetup.py2604def _substitute_tracer_definition_from_args(destination) -> None:CODE
LOWinstall_utils.py299def _cuda_version_to_pytorch_suffix(major, minor):CODE
LOWkernels/test/gen_supported_features.py51def generate_header_entry_text(namespace: str, feature: str, properties: dict):CODE
LOWkernels/test/gen_supported_features.py93def generate_definition_entry(d: dict):STRING
LOWkernels/test/gen_supported_features.py105def generate_definition_entry_text(namespace: str, feature: str, value: Any):STRING
LOW⚡kernels/test/test_bitwise_shift.py115 def test_left_shift_tensor_tensor(self):CODE
LOW⚡kernels/test/test_bitwise_shift.py122 def test_left_shift_tensor_scalar(self):CODE
LOW⚡kernels/test/test_bitwise_shift.py128 def test_right_shift_tensor_tensor(self):CODE
LOW⚡kernels/test/test_bitwise_shift.py135 def test_right_shift_tensor_scalar(self):CODE
LOW⚡kernels/test/test_case_gen.py36def make_out_dynamic_shape_bound_shape_same(tensor: torch.Tensor):CODE
LOW⚡kernels/test/test_case_gen.py43def make_out_dynamic_shape_bound_shape_larger(tensor: torch.Tensor):CODE
LOW⚡kernels/test/test_case_gen.py51def make_out_dynamic_shape_unbound_shape(tensor: torch.Tensor):CODE
LOWkernels/test/test_case_gen.py78def make_test_cases_dynamic_shape(*args):CODE
LOWkernels/test/test_case_gen.py104def make_test_cases_broadcast_two_input_tensor(x, y, cpp_args, torch_args, torch_fn):CODE
LOWkernels/test/test_case_gen.py282def make_simple_generated_case(*args, torch_fn):CODE
LOWkernels/test/test_case_gen.py362def gen_test_case_op_as_strided_copy():STRING
LOWkernels/test/test_case_gen.py367def gen_test_case_op_bitwise_not():STRING
LOWkernels/test/test_case_gen.py436def gen_test_case_op_detach_copy():STRING
LOWkernels/test/test_case_gen.py457def gen_test_case_op_full_like():STRING
LOWkernels/test/test_case_gen.py520def gen_test_case_op_log_softmax():STRING
LOWkernels/test/test_case_gen.py661def gen_test_case_op_transpose():STRING
LOWkernels/test/test_case_gen.py666def gen_test_case_op_unsqueeze():STRING
LOWkernels/test/test_case_gen.py724def gen_test_case_op_embedding():STRING
LOWkernels/test/test_case_gen.py734def gen_test_case_op_floor_divide():STRING
LOWkernels/test/test_case_gen.py791def gen_test_case_op_select_scatter():STRING
LOWkernels/test/test_case_gen.py847def gen_test_case_op_convolution():STRING
LOWkernels/test/test_case_gen.py857def gen_test_case_op_masked_fill():STRING
LOWkernels/quantized/test/test_quant_dequant_per_token.py34 def test_quantize_per_token_large_tensor(self):CODE
LOWkernels/quantized/test/test_quant_dequant_per_token.py47 def test_quantize_per_token_high_rank(self):CODE
LOWkernels/quantized/test/test_quant_dequant_per_token.py60 def test_quantize_per_token_dynamic(self):CODE
LOWkernels/quantized/test/test_quant_dequant_per_token.py85 def test_dequantize_per_token(self):CODE
LOWkernels/quantized/test/test_quant_dequant_per_token.py100 def test_dequantize_per_token_large_tensor(self):CODE
LOWkernels/quantized/test/test_quant_dequant_per_token.py113 def test_dequantize_per_token_high_rank(self):CODE
LOWkernels/quantized/test/test_quant_dequant_per_token.py126 def test_dequantize_per_token_dynamic(self):CODE
LOW⚡kernels/quantized/test/test_out_variants.py30 def test_choose_qparams_tensor_to_out_variant(self) -> None:CODE
LOW⚡kernels/quantized/test/test_out_variants.py38 def test_dequantize_per_tensor_to_out_variant(self) -> None:CODE
LOW⚡kernels/quantized/test/test_out_variants.py46 def test_dequantize_per_tensor_tensor_to_out_variant(self) -> None:CODE
LOW⚡kernels/quantized/test/test_out_variants.py56 def test_dequantize_per_channel_to_out_variant(self) -> None:CODE
LOW⚡kernels/quantized/test/test_out_variants.py64 def test_mixed_linear_to_out_variant(self) -> None:CODE
LOW⚡kernels/quantized/test/test_out_variants.py70 def test_mixed_mm_to_out_variant(self) -> None:CODE
LOW⚡kernels/quantized/test/test_out_variants.py76 def test_quantize_per_tensor_to_out_variant(self) -> None:CODE
LOW⚡kernels/quantized/test/test_out_variants.py84 def test_quantize_per_tensor_tensor_to_out_variant(self) -> None:CODE
LOW⚡kernels/quantized/test/test_out_variants.py94 def test_quantize_per_channel_to_out_variant(self) -> None:CODE
LOW…rnels/portable/test/test_grid_sampler_2d_executorch.py119 def test_all_mode_combinations(self):CODE
LOW…rnels/portable/test/test_grid_sampler_2d_executorch.py361 def test_exact_boundary_coordinates(self):CODE
8882 more matches not shown…
Decorative Section Separators808 hits · 2424 pts
SeverityFileLineSnippetContext
MEDIUM⚡kernels/test/test_bitwise_shift.py111 # ==========================================================================COMMENT
MEDIUM⚡kernels/test/test_bitwise_shift.py113 # ==========================================================================COMMENT
MEDIUM⚡kernels/test/test_bitwise_shift.py141 # ==========================================================================COMMENT
MEDIUM⚡kernels/test/test_bitwise_shift.py143 # ==========================================================================COMMENT
MEDIUMextension/llm/export/quant/quantize.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMextension/llm/export/quant/quantize.py310# ---------------------------------------------------------------------------COMMENT
MEDIUMextension/llm/export/quant/quantize.py342# ---------------------------------------------------------------------------COMMENT
MEDIUM…ytorch/executorch/ImageProcessorInstrumentationTest.kt39 // ─── Config validation ──────────────────────────────────────────────────────COMMENT
MEDIUM…ytorch/executorch/ImageProcessorInstrumentationTest.kt79 // ─── Lifecycle ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…ytorch/executorch/ImageProcessorInstrumentationTest.kt101 // ─── Channel order and normalization ────────────────────────────────────────COMMENT
MEDIUM…ytorch/executorch/ImageProcessorInstrumentationTest.kt134 // ─── Geometry ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…ytorch/executorch/ImageProcessorInstrumentationTest.kt200 // ─── Orientation ────────────────────────────────────────────────────────────COMMENT
MEDIUM…ytorch/executorch/ImageProcessorInstrumentationTest.kt253 // ─── Reuse ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ytorch/executorch/ImageProcessorInstrumentationTest.kt288 // ─── YUV ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ytorch/executorch/ImageProcessorInstrumentationTest.kt545 // ─── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt65 // ─── dataFiles constructor variants ─────────────────────────────────────────COMMENT
MEDIUM…a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt111 // ─── LlmModuleConfig with dataPath ──────────────────────────────────────────COMMENT
MEDIUM…a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt154 // ─── Invalid data file paths ────────────────────────────────────────────────COMMENT
MEDIUM…a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt200 // ─── Baseline equivalence ───────────────────────────────────────────────────COMMENT
MEDIUM…a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt227 // ─── LlmModuleConfig builder validation ─────────────────────────────────────COMMENT
MEDIUM…a/org/pytorch/executorch/LlmLoraInstrumentationTest.kt268 // ─── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…org/pytorch/executorch/AsrModuleInstrumentationTest.kt42 // ─── Constructor validation ─────────────────────────────────────────────────COMMENT
MEDIUM…org/pytorch/executorch/AsrModuleInstrumentationTest.kt102 // ─── Lifecycle ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…org/pytorch/executorch/AsrModuleInstrumentationTest.kt146 // ─── Transcribe validation ──────────────────────────────────────────────────COMMENT
MEDIUM…org/pytorch/executorch/AsrModuleInstrumentationTest.kt161 // ─── AsrTranscribeConfig ────────────────────────────────────────────────────COMMENT
MEDIUM…org/pytorch/executorch/AsrModuleInstrumentationTest.kt225 // ─── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…Test/java/org/pytorch/executorch/LlmPerformanceTest.kt219 // ─── LlmCallback ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…Test/java/org/pytorch/executorch/LlmPerformanceTest.kt241 // ─── Helpers ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM.ci/scripts/test_torchao_huggingface_checkpoints.sh4# -------------------------COMMENT
MEDIUM.ci/scripts/test_torchao_huggingface_checkpoints.sh6# -------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh12# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh14# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh87# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh89# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh108# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh110# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh121# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh123# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh134# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh136# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh207# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh209# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh224# ----------------------------COMMENT
MEDIUM.ci/scripts/test_wheel_package_qnn.sh226# ----------------------------COMMENT
MEDIUM⚡backends/apple/metal/tests/test_modules.py1608# =============================================================================COMMENT
MEDIUM⚡backends/apple/metal/tests/test_modules.py1610# =============================================================================COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py138# =============================================================================COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py140# =============================================================================COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py155# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py157# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py172# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py191# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py212# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py237# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py239# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py256# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py258# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py277# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py294# -------------------------------------------------------------------------COMMENT
MEDIUMbackends/apple/metal/tests/test_modules.py306# -------------------------------------------------------------------------COMMENT
748 more matches not shown…
Unused Imports1744 hits · 1540 pts
SeverityFileLineSnippetContext
LOWkernels/prim_ops/test/prim_ops_test.py10CODE
LOWkernels/quantized/test/test_quant_dequant_per_token.py12CODE
LOWkernels/quantized/test/test_out_variants.py10CODE
LOWkernels/quantized/test/test_out_variants.py12CODE
LOWkernels/quantized/test/test_out_variants.py13CODE
LOWkernels/quantized/test/test_out_variants.py15CODE
LOWextension/pytree/__init__.py26CODE
LOWextension/pytree/__init__.py26CODE
LOWextension/pytree/__init__.py26CODE
LOWextension/pytree/__init__.py40CODE
LOWextension/pytree/__init__.py40CODE
LOWextension/pytree/__init__.py40CODE
LOWextension/llm/custom_ops/bench_gated_delta_rule.py25CODE
LOWextension/llm/custom_ops/test_quantized_moe.py18CODE
LOWextension/llm/custom_ops/test_quantized_moe.py36CODE
LOW…tension/llm/custom_ops/test_update_cross_attn_cache.py12CODE
LOWextension/llm/custom_ops/test_preprocess_custom_ops.py14CODE
LOWextension/llm/custom_ops/custom_ops.py34CODE
LOWextension/llm/custom_ops/test_sdpa_with_kv_cache.py14CODE
LOWextension/llm/custom_ops/test_gated_delta.py15CODE
LOWextension/llm/custom_ops/test_update_cache.py14CODE
LOWextension/llm/custom_ops/model_sharding.py10CODE
LOWextension/llm/custom_ops/test_quantized_sdpa.py14CODE
LOWextension/llm/custom_ops/test_quantized_sdpa.py29CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py3CODE
LOWextension/llm/cache/update_and_attend.py15CODE
LOWextension/llm/cache/reference_cache.py29CODE
LOWextension/llm/runner/__init__.py18CODE
LOWextension/llm/runner/__init__.py18CODE
LOWextension/llm/runner/__init__.py18CODE
LOWextension/llm/runner/__init__.py18CODE
LOWextension/llm/runner/__init__.py18CODE
LOWextension/llm/batching/sampler.py33CODE
LOWextension/llm/export/gguf.py30CODE
LOWextension/llm/export/quantize.py223CODE
LOWextension/llm/export/__init__.py7CODE
LOWextension/llm/export/__init__.py8CODE
LOWextension/llm/export/__init__.py9CODE
LOWextension/llm/export/__init__.py10CODE
LOWextension/llm/export/export_passes.py114CODE
LOWextension/llm/export/quant/__init__.py7CODE
LOWextension/llm/export/quant/__init__.py7CODE
LOWextension/llm/export/quant/__init__.py7CODE
LOWextension/llm/export/quant/__init__.py7CODE
LOWextension/llm/export/quant/__init__.py7CODE
LOWextension/llm/export/quant/__init__.py14CODE
LOWextension/llm/export/quant/__init__.py14CODE
LOWextension/llm/export/quant/__init__.py14CODE
LOWextension/llm/export/quant/__init__.py14CODE
LOWextension/llm/export/quant/__init__.py20CODE
LOWextension/llm/export/quant/__init__.py20CODE
LOWextension/llm/export/quant/__init__.py20CODE
LOWextension/llm/modules/__init__.py7CODE
LOWextension/llm/modules/__init__.py7CODE
LOWextension/llm/modules/__init__.py7CODE
LOWextension/llm/modules/__init__.py7CODE
LOWextension/llm/modules/__init__.py13CODE
LOWextension/llm/modules/__init__.py13CODE
LOWextension/llm/modules/__init__.py14CODE
LOWextension/llm/modules/turboquant/__init__.py7CODE
1684 more matches not shown…
Cross-File Repetition292 hits · 1460 pts
SeverityFileLineSnippetContext
HIGHextension/module/test/resources/gen_bundled_program.py0an example model with multi-methods. each method has multiple input and single outputSTRING
HIGHdocs/source/bundled-io.md0an example model with multi-methods. each method has multiple input and single outputSTRING
HIGHdevtools/bundled_program/util/test_util.py0an example model with multi-methods. each method has multiple input and single outputSTRING
HIGH…ends/apple/coreml/quantizer/_coreml_quantizer_utils.py0given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retuSTRING
HIGHbackends/vulkan/quantizer/vulkan_quantizer_utils.py0given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retuSTRING
HIGHbackends/xnnpack/quantizer/xnnpack_quantizer_utils.py0given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retuSTRING
HIGHbackends/qualcomm/quantizer/rules.py0given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retuSTRING
HIGHbackends/mediatek/quantizer/annotator.py0given a list of nodes (that represents an operator pattern), return true if any of the node is annotated, otherwise retuSTRING
HIGHbackends/nxp/tests/simple_models.py0call `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.py0call `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.py0call `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.py0call `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.py0call `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.py0when `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.py0when `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.py0when `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.py0when `keep_dim = false`, the `sum` operator changes the rank, so the format have to be explicitly handled. the tests in STRING
HIGHbackends/nxp/backend/edge_helper.py0get the static data from a given node. if it doesn't have any data, return `none`.STRING
HIGHbackends/nxp/aten_passes/split_group_convolution.py0get 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.py0get 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.py0get the static data from a given node. if it doesn't have any data, return `none`.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/LogicalOrOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ds/nxp/backend/ir/lib/tflite/StablehloReduceOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/ZerosLikeOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…/backend/ir/lib/tflite/StablehloReduceWindowOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…kends/nxp/backend/ir/lib/tflite/ReduceWindowOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/EqualOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/PowOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/LessOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/AddOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…s/nxp/backend/ir/lib/tflite/StablehloScatterOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ends/nxp/backend/ir/lib/tflite/HashtableSizeOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/QuantizeOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/RightShiftOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…xp/backend/ir/lib/tflite/StablehloCustomCallOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/Pool2DOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/SoftmaxOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/ShapeOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ckends/nxp/backend/ir/lib/tflite/SparsityParameters.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ds/nxp/backend/ir/lib/tflite/ReverseSequenceOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/LeakyReluOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ends/nxp/backend/ir/lib/tflite/LSHProjectionOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/Metadata.py0this method is deprecated. please switch to getrootas.STRING
HIGH…nds/nxp/backend/ir/lib/tflite/StablehloSliceOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/MatrixDiagOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…kends/nxp/backend/ir/lib/tflite/ReadVariableOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGH…nxp/backend/ir/lib/tflite/StablehloTransposeOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/LessEqualOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/CallOnceOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/ReverseV2Options.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/RNNOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/DimensionMetadata.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/Int32Vector.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/NegOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/FloorDivOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/LogSoftmaxOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/SignatureDef.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/SelectOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/UniqueOptions.py0this method is deprecated. please switch to getrootas.STRING
HIGHbackends/nxp/backend/ir/lib/tflite/GreaterOptions.py0this method is deprecated. please switch to getrootas.STRING
232 more matches not shown…
Over-Commented Block1468 hits · 1429 pts
SeverityFileLineSnippetContext
LOWinstall_requirements.sh1#!/bin/bashCOMMENT
LOWinstall_executorch.py81COMMENT
LOWCMakeLists.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWCMakeLists.txt21 (rm -rf cmake-out \COMMENT
LOWCMakeLists.txt201 "Skip install() rules when ExecuTorch is consumed as a subproject"COMMENT
LOWCMakeLists.txt341#COMMENT
LOWCMakeLists.txt1081 executorch_shared PUBLIC ${_common_include_directories}COMMENT
LOWCMakeLists.txt1381 # Metal still uses ETensor-based shims (for now)COMMENT
LOWCMakeLists.txt1521 # These libraries register their operators or their backend from a staticCOMMENT
LOWCMakeLists.txt1541 extension_threadpool etdumpCOMMENT
LOWCMakeLists.txt1561 # The Torch hop cannot be left out. Without it this extension records noCOMMENT
LOWrequirements-examples.txt1# pip packages needed to run examples.COMMENT
LOWsetup.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWsetup.py21# 2. Redistributions in binary form must reproduce the above copyright notice,COMMENT
LOWsetup.py101_UNSHIPPABLE_HEADERS = frozenset(COMMENT
LOWsetup.py641 # which is exactly why they have to be removed here instead.COMMENT
LOWsetup.py981 shared with torch instead of shipping a second one.COMMENT
LOWsetup.py1161 "mpmath==1.3.0",COMMENT
LOWsetup.py1181 # release instead would evict it, because a dev release sorts below its own final.COMMENT
LOWsetup.py1201 # with coremltools 9.0 on a Linux aarch64 machine. Keep this in sync with the conditionCOMMENT
LOWsetup.py1821 # narrows it, which turned a 0o555 build output into 0o777.COMMENT
LOWsetup.py2001 # as a dependency and reaches it through a relative hop, so an absolute toolkit path is bothCOMMENT
LOWsetup.py2101 ),COMMENT
LOWsetup.py2281COMMENT
LOWsetup.py2361 # Module is how the documentation tells a C++ application to load andCOMMENT
LOWsetup.py2381 # The whole directory except the filter, which includes a regularCOMMENT
LOWsetup.py2461 # such as "1.5.0+cpu" or a development suffix, and `find_package(executorchCOMMENT
LOWsetup.py2681 # like `TorchConfig.cmake` that are provided by pip packages.COMMENT
LOWsetup.py3121 # used, since it builds one name and prepends a prefix the shared spellingCOMMENT
LOWinstall_executorch.sh1#!/bin/bashCOMMENT
LOWinstall_utils.py161 explicit = os.environ.get("CUDACXX")COMMENT
LOWkernels/prim_ops/et_copy_index.cpp21namespace executor {COMMENT
LOWkernels/prim_ops/et_copy_index.cpp41// map_1 = torch.ops.map(submodule_0, arg0_1, arg1_1); submodule_0 =COMMENT
LOWkernels/prim_ops/test/prim_ops_test.cpp1/*COMMENT
LOWkernels/prim_ops/test/CMakeLists.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWkernels/test/CMakeLists.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWkernels/test/op_index_select_test.cpp261 run_test_cases(x, /*dim=*/2, /*index=*/index, expected);COMMENT
LOWkernels/test/op_to_copy_test.cpp1/*COMMENT
LOW…nels/test/op_max_pool2d_with_indices_backward_test.cpp281#undef TEST_ENTRYCOMMENT
LOWkernels/test/op__to_dim_order_copy_test.cpp1/*COMMENT
LOWkernels/test/op_mean_test.cpp1/*COMMENT
LOWkernels/test/op_select_copy_test.cpp41 // Based on the split defintion, if we split any dim()=3 and size(1)=2COMMENT
LOWkernels/test/op_select_copy_test.cpp301 ET_FORALL_REAL_TYPES_AND(Bool, TEST_ENTRY);COMMENT
LOWkernels/test/op_select_scatter_test.cpp501/// zeros().COMMENT
LOWkernels/test/UnaryUfuncRealHBBF16ToFloatHBF16Test.h21// Generic test harness for ops that use unary_ufunc_realhb_to_floathCOMMENT
LOWkernels/test/op_linear_test.cpp1/*COMMENT
LOWkernels/test/op_stack_test.cpp121COMMENT
LOWkernels/test/op_mm_test.cpp1/*COMMENT
LOWkernels/test/op_amin_test.cpp1/*COMMENT
LOWkernels/test/op_min_test.cpp1/*COMMENT
LOWkernels/test/op_native_layer_norm_test.cpp1/*COMMENT
LOWkernels/test/op_sum_test.cpp1/*COMMENT
LOWkernels/test/supported_features_skip.h1/*COMMENT
LOWkernels/test/supported_features_skip.h21// fbcode: expands to `if (cond) return;` so the test reports PASS, not SKIP.COMMENT
LOWkernels/test/update_supported_feature_summary.sh1#!/bin/bashCOMMENT
LOWkernels/test/op_max_test.cpp1/*COMMENT
LOWkernels/test/op_clamp_test.cpp1/*COMMENT
LOWkernels/test/op_amax_test.cpp1/*COMMENT
LOWkernels/test/op_constant_pad_nd_test.cpp1/*COMMENT
LOWkernels/test/op_arange_test.cpp1/*COMMENT
1408 more matches not shown…
Self-Referential Comments454 hits · 1062 pts
SeverityFileLineSnippetContext
MEDIUMpytest-windows.ini3# This file is intended to be deleted once the enablement is complete.COMMENT
MEDIUMsetup.py2303 # Create the version file.COMMENT
MEDIUMkernels/portable/test/op_grid_sampler_2d_test.py119 # Create a checkerboard patternCOMMENT
MEDIUMkernels/portable/test/op_grid_sampler_2d_test.py165 # Create a smooth gradientCOMMENT
MEDIUMkernels/portable/test/op_grid_sampler_2d_test.py168 # Create a fine grid for upsamplingCOMMENT
MEDIUMtools/cmake/cmake_cache.py20 # This module is imported both as tools.cmake.cmake_cache and standalone, so the repository rootCOMMENT
MEDIUMtools/cmake/common/__init__.py33# Create a file tree in the current working directory (cwd). The structure of theCOMMENT
MEDIUMextension/pytree/__init__.py11# Create a loggerCOMMENT
MEDIUM…tension/llm/custom_ops/test_update_cross_attn_cache.py64 # Define a function that uses the op inside torch.condCOMMENT
MEDIUM…tension/llm/custom_ops/test_update_cross_attn_cache.py115 # Define a module that uses torch.cond with the opCOMMENT
MEDIUM…tension/llm/custom_ops/test_update_cross_attn_cache.py224 # Define a function that uses different ops in each branchCOMMENT
MEDIUM…/llm/custom_ops/spinquant/special_hadamard_code_gen.py2# This file is adapted fromCOMMENT
MEDIUMextension/llm/runner/test/test_runner_pybindings.py167 # Create an imageCOMMENT
MEDIUMextension/llm/export/test/test_export_llm.py59 # Create a temporary config fileCOMMENT
MEDIUMextension/llm/export/test/test_export_llm.py114 # Create a temporary config fileCOMMENT
MEDIUM⚡extension/llm/export/test/test_builder.py18 # Create a mock modelCOMMENT
MEDIUM⚡extension/llm/export/test/test_builder.py28 # Create a manager with preset dynamic_shapesCOMMENT
MEDIUMextension/llm/export/test/test_builder.py46 # Create a manager with enable_dynamic_shape=True and use_kv_cache=FalseCOMMENT
MEDIUMextension/llm/export/test/test_builder.py70 # Create a manager with enable_dynamic_shape=True and use_kv_cache=TrueCOMMENT
MEDIUMextension/llm/export/test/test_builder.py103 # Create a manager with enable_dynamic_shape=FalseCOMMENT
MEDIUMextension/pybindings/test/make_test.py216 # Create the ExecuTorch program from the graph.COMMENT
MEDIUM.ci/scripts/setup-ios.sh21# Create a temporary keychainCOMMENT
MEDIUM.ci/scripts/test_coreml_bc.sh23# Create a conda environment with Python 3.10 for compatibility with old ET versionsCOMMENT
MEDIUM.ci/scripts/wheel/envvar_linux.sh7# This file is sourced into the environment before building a pip wheel. ItCOMMENT
MEDIUM.ci/scripts/wheel/envvar_cuda_linux.sh7# This file is sourced into the environment before building a pip wheel. ItCOMMENT
MEDIUM.ci/scripts/wheel/envvar_base.sh7# This file is sourced into the environment before building a pip wheel. ItCOMMENT
MEDIUM.ci/scripts/wheel/envvar_macos.sh7# This file is sourced into the environment before building a pip wheel. ItCOMMENT
MEDIUM…ripts/benchmark_tooling/analyze_benchmark_stability.py402 # Create a string buffer to hold the report contentCOMMENT
MEDIUM…ripts/benchmark_tooling/analyze_benchmark_stability.py665 # Create a string buffer to hold the report contentCOMMENT
MEDIUM…ripts/benchmark_tooling/analyze_benchmark_stability.py1051 # Create a string buffer to hold the report contentCOMMENT
MEDIUM…ripts/benchmark_tooling/analyze_benchmark_stability.py1248 # Create a string buffer to hold the report contentCOMMENT
MEDIUMtest/end2end/exported_module.py124 # Create the eager module.COMMENT
MEDIUMtest/end2end/exported_module.py224 # Create the ExportedModule.COMMENT
MEDIUMbackends/apple/coreml/compiler/coreml_preprocess.py798 # Create a temporary directory for all the mlpackagesCOMMENT
MEDIUMbackends/apple/coreml/compiler/coreml_preprocess.py806 # Create a NamedDataStore to hold the shared multifunction modelsCOMMENT
MEDIUM…ir/converter/node_converter/test_hardtanh_converter.py72 # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator.COMMENT
MEDIUM…/ir/converter/node_converter/test_sigmoid_converter.py39 # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator.COMMENT
MEDIUM…tests/ir/converter/node_converter/test_mm_converter.py47 # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator.COMMENT
MEDIUM…ts/ir/converter/node_converter/test_addmm_converter.py55 # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator.COMMENT
MEDIUM…/converter/node_converter/test_leaky_relu_converter.py44 # Create a RandomDatasetCreator that covers also negative numbers to properly test the operator.COMMENT
MEDIUMbackends/nxp/backend/ops_aliases.py6# This file defines ops aliases for shorter and more readable descriptions of edge operators.COMMENT
MEDIUM…de_converters/ops_converters/permute_copy_converter.py221 """This method is currently far more complex than necessary, as Neutron C supports all permutations.STRING
MEDIUM…/node_converters/ops_converters/view_copy_converter.py90 # Create the TFLite Reshape with the new shapeCOMMENT
MEDIUM…ends/nxp/backend/ir/converter/builder/model_builder.py202 # Create a new one and register it for potential future use.COMMENT
MEDIUM…ends/nxp/backend/ir/converter/builder/model_builder.py249 # Create the output tensor of the 'Pad' operator.COMMENT
MEDIUM…ends/nxp/backend/ir/converter/builder/model_builder.py255 # Create the second input of the 'Pad' operator.COMMENT
MEDIUM…ends/nxp/backend/ir/converter/builder/model_builder.py442 # Create a Transpose operator and replace the graph inputCOMMENT
MEDIUM…ends/nxp/backend/ir/converter/builder/model_builder.py574 # Create the final edge-to-tflite mapping after model optimizationCOMMENT
MEDIUM…tions/permute_fully_connected_weights_after_reshape.py105 # Create a new tensor for the data, in case it is used by some other operator as well.COMMENT
MEDIUMbackends/nxp/backend/ir/lib/tflite/LogicalOrOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ds/nxp/backend/ir/lib/tflite/StablehloReduceOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMbackends/nxp/backend/ir/lib/tflite/ZerosLikeOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…/backend/ir/lib/tflite/StablehloReduceWindowOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…kends/nxp/backend/ir/lib/tflite/ReduceWindowOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMbackends/nxp/backend/ir/lib/tflite/EqualOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMbackends/nxp/backend/ir/lib/tflite/PowOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMbackends/nxp/backend/ir/lib/tflite/LessOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMbackends/nxp/backend/ir/lib/tflite/AddOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…s/nxp/backend/ir/lib/tflite/StablehloScatterOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ends/nxp/backend/ir/lib/tflite/HashtableSizeOptions.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
394 more matches not shown…
Deep Nesting1007 hits · 882 pts
SeverityFileLineSnippetContext
LOWinstall_executorch.py111CODE
LOWsetup.py450CODE
LOWsetup.py502CODE
LOWinstall_utils.py378CODE
LOWkernels/test/summarize_supported_features.py20CODE
LOWkernels/test/test_case_gen.py243CODE
LOW…rnels/portable/test/test_grid_sampler_2d_executorch.py361CODE
LOWtools/cmake/cmake_cache.py58CODE
LOWextension/llm/custom_ops/test_gated_delta.py491CODE
LOWextension/llm/custom_ops/model_sharding.py53CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py650CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py725CODE
LOWextension/llm/cache/test_update_and_attend.py185CODE
LOWextension/llm/cache/test_update_and_attend.py247CODE
LOWextension/llm/runner/test/test_runner_pybindings.py254CODE
LOWextension/llm/export/gguf.py546CODE
LOWextension/llm/export/quantize.py28CODE
LOWextension/llm/export/builder.py288CODE
LOWextension/llm/export/builder.py384CODE
LOWextension/llm/export/builder.py478CODE
LOWextension/llm/export/builder.py301CODE
LOWextension/llm/export/export_passes.py44CODE
LOWextension/llm/export/quantizer_lib.py260CODE
LOWextension/llm/export/quant/convert.py163CODE
LOWextension/training/examples/CIFAR/train_utils.py51CODE
LOWextension/training/examples/CIFAR/train_utils.py188CODE
LOW.ci/scripts/gather_benchmark_configs.py146CODE
LOW.ci/scripts/gather_benchmark_configs.py299CODE
LOW.ci/scripts/test_example_imports.py212CODE
LOW.ci/scripts/test_example_imports.py410CODE
LOW.ci/scripts/test_example_imports.py31CODE
LOW.ci/scripts/test_huggingface_optimum_model.py133CODE
LOW.ci/scripts/tests/test_wheel_test_modules.py74CODE
LOW.ci/scripts/tests/test_filter_cuda_matrix.py248CODE
LOW.ci/scripts/tests/test_wheel_vendored_packages.py64CODE
LOW.ci/scripts/tests/test_coreml_markers.py104CODE
LOW.ci/scripts/tests/test_runtime_path_filter.py53CODE
LOW.ci/scripts/tests/test_cu134_dependencies.py55CODE
LOW.ci/scripts/wheel/test_shared_libraries.py574CODE
LOW.ci/scripts/wheel/test_shared_libraries.py645CODE
LOW.ci/scripts/wheel/test_shared_libraries.py695CODE
LOW.ci/scripts/wheel/test_shared_libraries.py1707CODE
LOW.ci/scripts/wheel/test_clean_install.py101CODE
LOW…ripts/benchmark_tooling/analyze_benchmark_stability.py68CODE
LOW…ripts/benchmark_tooling/analyze_benchmark_stability.py655CODE
LOW…ripts/benchmark_tooling/analyze_benchmark_stability.py1242CODE
LOW…ripts/benchmark_tooling/get_benchmark_analysis_data.py282CODE
LOWutil/collect_env.py184CODE
LOWutil/collect_env.py344CODE
LOWutil/collect_env.py378CODE
LOWutil/activation_memory_profiler.py51CODE
LOWbackends/apple/metal/passes/decompose_linear_pass.py24CODE
LOWbackends/apple/coreml/recipes/coreml_recipe_provider.py42CODE
LOWbackends/apple/coreml/partition/coreml_partitioner.py181CODE
LOWbackends/apple/coreml/partition/coreml_partitioner.py343CODE
LOWbackends/apple/coreml/compiler/coreml_preprocess.py39CODE
LOW…ckends/apple/coreml/compiler/enumerated_shape_utils.py102CODE
LOWbackends/nxp/neutron_partitioner.py385CODE
LOWbackends/nxp/tests/profiling_utils.py13CODE
LOWbackends/nxp/tests/dataset_creator.py327CODE
947 more matches not shown…
Cross-Language Confusion102 hits · 516 pts
SeverityFileLineSnippetContext
HIGH…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py757 "cd measurements && make run_%s" % type_name, shell=True, stdout=devnullCODE
HIGHextension/llm/export/quantizer_lib.py112 "rm -rf cmake-out && mkdir cmake-out && (cd cmake-out && cmake -DEXECUTORCH_BUILD_KERNELS_QUANTIZED_CODE
HIGHextension/llm/export/quantizer_lib.py112 "rm -rf cmake-out && mkdir cmake-out && (cd cmake-out && cmake -DEXECUTORCH_BUILD_KERNELS_QUANTIZED_CODE
HIGH.ci/scripts/wheel/test_shared_libraries.py2680 return (lambda symbol: symbol in undefined, lambda symbol: symbol in defined)CODE
HIGHbackends/qualcomm/tests/utils.py258 adb.push(CODE
HIGHbackends/qualcomm/tests/utils.py631 adb.push(CODE
HIGHbackends/qualcomm/tests/rework/conftest.py368 adb.push(inputs=[inputs] if inputs is not None else None)CODE
HIGHbackends/qualcomm/tests/rework/conftest.py410 adb.push(inputs=[inputs], init_env=False)CODE
HIGH…/strategies/inference/default_device_runner_adapter.py72 self._adb.push(CODE
HIGHbackends/qualcomm/debugger/utils.py414 self.adb.push(CODE
HIGHbackends/webgpu/test/op_tests/cases.py1824 # case: pow(x, 2) == x*x. WGSL pow(neg) is undefined, so the shader special-casesCOMMENT
HIGHbackends/samsung/test/utils/runtime_executor.py129 test_manager.push()CODE
HIGHbackends/vulkan/test/op_tests/utils/gen_benchmark_vk.py230 if (high == 1.0 && low == 0.0)CODE
HIGH…nds/vulkan/test/op_tests/utils/gen_correctness_base.py317 if (high == 1.0 && low == 0.0)CODE
HIGH…kends/vulkan/test/op_tests/utils/gen_correctness_vk.py151 if (t1.scalar_type() == at::kLong || t2.scalar_type() == at::kLong) {CODE
HIGH…kends/vulkan/test/op_tests/utils/gen_correctness_vk.py155 if (!is_close && t1.numel() < 500) {CODE
HIGH…s/xnnpack/_passes/channels_last_tagged_reshape_pass.py162 # then we want to see this is nchw hence return falseCOMMENT
HIGHbackends/arm/_passes/insert_rescales_pass.py227 # zero point is non-null, the result will be in the range [-255;COMMENT
HIGHbackends/arm/scripts/aot_arm_compiler.py806 intermediates_path, f"input_{method_index}.pt" # type: ignore[possibly-undefined]CODE
HIGHbackends/mlx/custom_kernel_ops/gguf/q5k/linear.py166 if (tiisg == 0 && r < N) {{CODE
HIGHbackends/mlx/custom_kernel_ops/gguf/q5k/linear.py314 if (j < nr1 && i < nr0) {{CODE
HIGHbackends/mlx/custom_kernel_ops/gguf/q6k/linear.py142 if (tiisg == 0 && r < N) {{CODE
HIGHbackends/mlx/custom_kernel_ops/gguf/q6k/linear.py289 if (j < nr1 && i < nr0) {{CODE
HIGH⚡backends/mlx/custom_kernel_ops/gguf/q4k/embedding.py48 if (row < 0 || row >= V) {CODE
HIGHbackends/mlx/custom_kernel_ops/gguf/q4k/linear.py133 if (tiisg == 0 && r < N) {{CODE
HIGHbackends/mlx/custom_kernel_ops/gguf/q4k/linear.py279 if (j < nr1 && i < nr0) {{CODE
HIGHcodegen/tools/test/test_gen_selected_op_variants.py77 && (scalar_type == executorch::aten::ScalarType::Float || scalar_type == executorch::aten::ScalarType::Int))STRING
HIGHcodegen/tools/test/test_gen_selected_op_variants.py149 && (scalar_type == executorch::aten::ScalarType::Float || scalar_type == executorch::aten::ScalarType::Int))STRING
HIGHdevtools/inspector/tests/inspector_test.py2212 1. The output tensor has a valid (non-null) data pointerSTRING
HIGHexamples/qualcomm/qaihub_scripts/utils/export.py196 adb.push(files=files)CODE
HIGHexamples/qualcomm/qaihub_scripts/utils/export.py325 adb.push(inputs=inputs)CODE
HIGH…ub_scripts/stable_diffusion/qaihub_stable_diffusion.py323 adb.push(inputs=input_unet, files=files)CODE
HIGH…alcomm/qaihub_scripts/llama/llama3/qaihub_llama3_8b.py164 adb.push(files=custom_files)CODE
HIGH…alcomm/qaihub_scripts/llama/llama2/qaihub_llama2_7b.py164 adb.push(files=custom_files)CODE
HIGH…ualcomm/util_scripts/qnn_intermediate_debugger_demo.py85 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/util_scripts/cli.py372 adb.push(inputs=user_inputs, backends=[backend_type])CODE
HIGHexamples/qualcomm/util_scripts/gen_etrecord.py75 adb.push(inputs=[sample_input])CODE
HIGHexamples/qualcomm/scripts/wav2letter.py151 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/scripts/deeplab_v3.py104 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/scripts/mobilebert_fine_tune.py292 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/scripts/edsr.py140 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/scripts/mobilenet_v2.py72 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/scripts/inception_v4.py71 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/scripts/mobilenet_v3.py79 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/scripts/inception_v3.py73 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/scripts/torchvision_vit.py121 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/custom_op/custom_ops_lpai.py365 adb.push(inputs=sample_input, files=op_package_paths)CODE
HIGHexamples/qualcomm/custom_op/custom_ops_1.py216 adb.push(inputs=sample_input, files=op_package_paths)CODE
HIGHexamples/qualcomm/custom_op/custom_ops_2.py226 adb.push(inputs=sample_input, files=op_package_paths)CODE
HIGHexamples/qualcomm/oss_scripts/deit.py94 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/oss_scripts/ssd300_vgg16.py157 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/oss_scripts/pvt.py77 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/oss_scripts/dino_v2.py79 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/oss_scripts/convnext_small.py80 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/oss_scripts/vit_b_16.py81 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/oss_scripts/regnet.py77 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/oss_scripts/maxvit_t.py188 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/oss_scripts/roberta.py125 adb.push(inputs=[sample_input])CODE
HIGHexamples/qualcomm/oss_scripts/roberta.py137 adb.push(inputs=inputs)CODE
HIGHexamples/qualcomm/oss_scripts/squeezenet.py68 adb.push(inputs=inputs)CODE
42 more matches not shown…
Structural Annotation Overuse288 hits · 501 pts
SeverityFileLineSnippetContext
LOW⚡install_executorch.py231 # Step 1: Install core dependencies firstCOMMENT
LOW⚡install_executorch.py234 # Step 2: Install core packageCOMMENT
LOWinstall_executorch.py256 # Step 3: Extra (optional) packages that is only useful for running examples.COMMENT
LOW.wiki/troubleshooting/runtime-errors.md181### Step 1: ProfileCOMMENT
LOW⚡.wiki/troubleshooting/runtime-errors.md192### Step 2: AnalyzeCOMMENT
LOW⚡.wiki/troubleshooting/runtime-errors.md200### Step 3: Identify BottlenecksCOMMENT
LOW⚡.wiki/troubleshooting/runtime-errors.md207### Step 4: Advanced ProfilingCOMMENT
LOW.wiki/quantization/debugging.md102### Step 1: Export Both VersionsCOMMENT
LOW.wiki/quantization/debugging.md121### Step 2: Run Both and CompareCOMMENT
LOW.wiki/quantization/debugging.md139### Step 3: For CoreML, Extract and CompareCOMMENT
LOWextension/module/test/resources/gen_bundled_program.py14# Step 1: ExecuTorch Program ExportCOMMENT
LOWextension/module/test/resources/gen_bundled_program.py54 # Step 2: Construct MethodTestSuite for Each MethodCOMMENT
LOW⚡extension/module/test/resources/gen_bundled_program.py86 # Step 3: Generate BundledProgramCOMMENT
LOW⚡extension/module/test/resources/gen_bundled_program.py89 # Step 4: Serialize BundledProgram to flatbuffer.COMMENT
LOW⚡extension/gguf_util/load_gguf.py96 # Step 1: Build GGUFModelArgsCOMMENT
LOW⚡extension/gguf_util/load_gguf.py100 # Step 2: Build GGUFWeightsCOMMENT
LOW⚡extension/gguf_util/convert_main.py32 # Step 1: Load the GGUF fileCOMMENT
LOW⚡extension/gguf_util/convert_main.py35 # Step 2: Convert the GGUF model to PTECOMMENT
LOWextension/gguf_util/convert_main.py47 # Step 3: Save the PTE program so thatCOMMENT
LOW⚡extension/gguf_util/converters/llama_converter.py110 # Step 1: Create the PyTorch modelCOMMENT
LOW⚡extension/gguf_util/converters/llama_converter.py116 # Step 2: Load the weights into the PyTorch modelCOMMENT
LOW⚡extension/gguf_util/converters/llama_converter.py120 # Step 3: Export to ExecuTorchCOMMENT
LOWextension/image/image_processor.cpp342 // Step 1: orientation (orient -> ROI -> resize). Produce an oriented copy ofCOMMENT
LOWextension/image/image_processor.cpp366 // Step 2: ROI crop (pointer arithmetic).COMMENT
LOWextension/image/image_processor.cpp387 // Step 3: Swizzle BGRA/RGBA → RGB (alpha discarded).COMMENT
LOWextension/image/image_processor.cpp401 // Step 4: Resize.COMMENT
LOWextension/image/image_processor.cpp422 // Step 5: Normalize + layout into the caller's CHW output (padded).COMMENT
LOWextension/image/image_processor_apple.cpp695 // Step 2: orientation. Rotate the BGRA buffer (vImage) so ROI/resize run inCOMMENT
LOW⚡extension/image/image_processor_apple.cpp721 // Step 3: ROI crop (pointer arithmetic on BGRA data).COMMENT
LOW⚡extension/image/image_processor_apple.cpp724 // Step 4: resize. Letterbox padding is applied during normalization.COMMENT
LOWextension/image/image_processor_apple.cpp753 // Step 5: normalize BGRA → CHW float buffer.COMMENT
LOW.ci/docker/common/install_conda.sh59 # WARNING: This is a HACK from PyTorch core to be able to build PyTorch on 22.04.COMMENT
LOW.ci/scripts/gather_test_models.py8# WARNING: The CI runner logic should directly be in the corresponding yml filesCOMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh61# Step 1: Checkout old version of ExecuTorchCOMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh66# Step 2: Install the old versionCOMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh75# Step 3: Export modelCOMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh124# Step 4: Checkout current version (main)COMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh130# Step 5: Install current versionCOMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh135# Step 6: Run the old pte fileCOMMENT
LOWbackends/qualcomm/_passes/decompose_diagonal.py95 # Step 1: Permute dim1, dim2 to last positions (if needed)COMMENT
LOW⚡backends/qualcomm/_passes/decompose_diagonal.py107 # Step 2: Reshape [..., M, N] -> [..., M*N]COMMENT
LOW⚡backends/qualcomm/_passes/decompose_diagonal.py117 # Step 3: Compute flat diagonal indicesCOMMENT
LOWbackends/qualcomm/_passes/decompose_diagonal.py142 # Step 4: index_select on last dimCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_cdist.py19 # Step 1: Compute differencesCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_cdist.py22 # Step 2: Square differencesCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_cdist.py25 # Step 3: Sum of squaresCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_cdist.py28 # Step 4: Square rootCOMMENT
LOWbackends/qualcomm/_passes/decompose_var.py82 # Step 1: mean_x = mean(x, dim, keepdim=True)COMMENT
LOW⚡backends/qualcomm/_passes/decompose_var.py94 # Step 2: diff = x - mean_xCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_var.py102 # Step 3: sq = diff * diff (more efficient than pow(diff, 2))COMMENT
LOW⚡backends/qualcomm/_passes/decompose_var.py110 # Step 4: var = mean(sq, dim, keepdim)COMMENT
LOW⚡backends/qualcomm/_passes/decompose_var.py116 # Step 5: Apply correction factor if neededCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_div_mode.py55 # Step 1: div_result = div(x, y)COMMENT
LOW⚡backends/qualcomm/_passes/decompose_div_mode.py61 # Step 2: Apply rounding mode if neededCOMMENT
LOWbackends/qualcomm/_passes/convert_linear_to_conv2d.py169 # Step 1: calibrate inputCOMMENT
LOWbackends/qualcomm/_passes/convert_linear_to_conv2d.py196 # Step 2: reshape weightCOMMENT
LOWbackends/qualcomm/_passes/convert_linear_to_conv2d.py272 # Step 3: restore original output of linear nodeCOMMENT
LOW⚡…l_preparation/executorch_model_preparation_strategy.py143 # Step 1: Load modelCOMMENT
LOW⚡…l_preparation/executorch_model_preparation_strategy.py150 # Step 2: Load tokenizerCOMMENT
LOW⚡…l_preparation/executorch_model_preparation_strategy.py157 # Step 3: Build the export example inputs from the model itself.COMMENT
228 more matches not shown…
Excessive Try-Catch Wrapping408 hits · 457 pts
SeverityFileLineSnippetContext
LOWinstall_utils.py58 except Exception:CODE
LOWinstall_utils.py353 except Exception as err:CODE
LOWinstall_utils.py418 except Exception as e:CODE
LOWkernels/portable/__init__.py22except Exception: # noqa: E722CODE
LOW…rnels/portable/test/test_grid_sampler_2d_executorch.py112 except Exception as e:CODE
LOWtools/cmake/buck_util.py57 except Exception as e:CODE
LOWextension/llm/custom_ops/test_update_cache.py226 except Exception:CODE
LOWextension/llm/custom_ops/test_update_cache.py246 except Exception:CODE
LOWextension/llm/custom_ops/test_update_cache.py346 except Exception:CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py624 except Exception:CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py640 except Exception as e:CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py655 except Exception:CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py673 except Exception:CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py690 except Exception:CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py793 except Exception:CODE
LOW…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py828 except Exception as e:CODE
MEDIUM…nsion/llm/custom_ops/spinquant/third-party/FFHT/gen.py621def greedy_merged(type_name, log_n, composite_step):CODE
LOWextension/pybindings/portable_lib.py59 except Exception as e:CODE
LOWextension/pybindings/portable_lib.py74 except Exception as e:CODE
LOWextension/pybindings/test/test_pybindings.py47 except Exception:CODE
LOWextension/pybindings/test/test_pybindings.py57 except Exception:CODE
LOWextension/pybindings/test/test_pybindings.py276 except Exception:CODE
LOWextension/pybindings/test/test_pybindings.py617 except Exception:CODE
LOWextension/export_util/utils.py151 except Exception as e:CODE
MEDIUM.ci/scripts/cuda_benchmark.py100 print(f"Error parsing PyTorchObserver log: {e}", file=sys.stderr)CODE
LOW.ci/scripts/cuda_benchmark.py134 except Exception as e:CODE
LOW.ci/scripts/cuda_benchmark.py202 except Exception as e:CODE
MEDIUM.ci/scripts/cuda_benchmark.py203 print(f"Error: Failed to set GPU clocks: {e}", file=sys.stderr)CODE
LOW.ci/scripts/cuda_benchmark.py244 except Exception as e:CODE
MEDIUM.ci/scripts/cuda_benchmark.py245 print(f"Error: Failed to reset GPU clocks: {e}", file=sys.stderr)CODE
MEDIUM⚡.ci/scripts/cuda_benchmark.py330 print(f"Error: Command timed out on run {run_num}", file=sys.stderr)CODE
LOW⚡.ci/scripts/cuda_benchmark.py332 except Exception as e:CODE
MEDIUM⚡.ci/scripts/cuda_benchmark.py333 print(f"Error on run {run_num}: {e}", file=sys.stderr)CODE
LOW.ci/scripts/test-cuda-build.sh85except Exception as e:CODE
LOW.ci/scripts/test_model_e2e.sh615 except Exception as e:CODE
LOW.ci/scripts/test_backend_imports.py122 except Exception as error:CODE
LOW.ci/scripts/wheel/test_shared_libraries.py373 except Exception:CODE
LOWtest/end2end/test_temp_allocator_fix.py209 except Exception as e:CODE
MEDIUMbackends/apple/metal/tests/test_modules.py1396 print(f"Error reading binary file {filepath}: {e}")CODE
LOWbackends/apple/coreml/partition/coreml_partitioner.py376 except Exception as e:STRING
LOWbackends/nxp/tests/profiling_utils.py34 except Exception as e:CODE
LOWbackends/nxp/tests/profiling_utils.py48 except Exception as e:CODE
LOWbackends/nxp/tests/profiling_utils.py63 except Exception as e:CODE
LOWbackends/nxp/tests/profiling_utils.py101 except Exception:CODE
LOWbackends/nxp/tests/model_output_comparator.py94 except Exception as e:CODE
LOWbackends/nxp/tests/utils.py42 except Exception as e:CODE
LOWbackends/nxp/tests/tester/tester.py499 except Exception as exc:CODE
LOWbackends/nxp/tests/generic_tests/test_profiling.py146 except Exception as e:CODE
LOWbackends/nxp/backend/edge_helper.py399 except Exception:CODE
LOWbackends/nxp/backend/ir/converter/tensor_utils.py25 except Exception as e:CODE
LOW⚡…ends/nxp/backend/ir/converter/builder/model_builder.py625 except Exception:CODE
LOW⚡…ends/nxp/backend/ir/converter/builder/model_builder.py634 except Exception:CODE
LOW…ckend/ir/neutron_ir_post_processing/pattern_matcher.py118 except Exception:CODE
LOW…ckend/ir/neutron_ir_post_processing/pattern_matcher.py328 except Exception:CODE
LOW…nds/nxp/aten_passes/remove_nodes_with_known_outputs.py182 except Exception:CODE
LOWbackends/native/serialization/graph_serialize.py1264 except Exception:CODE
LOWbackends/test/harness/tester.py365 except Exception:CODE
LOWbackends/test/suite/runner.py129 except Exception as e:CODE
LOWbackends/test/suite/runner.py134 except Exception as e:CODE
LOW⚡backends/test/suite/runner.py145 except Exception as e:CODE
348 more matches not shown…
Fake / Example Data431 hits · 418 pts
SeverityFileLineSnippetContext
LOW⚡backends/apple/coreai/test/test_partitioner.py79 for op in ("placeholder", "output", "call_module", "call_method"):CODE
LOWbackends/apple/coreai/test/test_recipes.py48 if n.op == "placeholder" and hasattr(n.meta.get("val"), "dtype")CODE
LOWbackends/apple/coreai/passes/narrow_dtypes.py41 placeholders = [n for n in graph.nodes if n.op == "placeholder"]CODE
LOWbackends/apple/coreai/passes/test/test_narrow_dtypes.py26 return [n for n in gm.graph.nodes if n.op == "placeholder"]CODE
LOWbackends/apple/coreai/compiler/io_compat.py105 n.name: n for n in edge_program.graph.nodes if n.op == "placeholder"CODE
LOWbackends/apple/coreai/compiler/enumerated_shapes.py41 n.name: n for n in exported_program.graph.nodes if n.op == "placeholder"CODE
LOWbackends/apple/coreai/compiler/enumerated_shapes.py192 n.name: n for n in edge_program.graph.nodes if n.op == "placeholder"CODE
LOW…ckends/apple/coreml/compiler/enumerated_shape_utils.py98 if node.op == "placeholder" and node.name in user_inputs:CODE
LOW⚡backends/nxp/tests/generic_tests/test_recipe_export.py147 real_nodes = [n for n in nodes if n.op not in ("placeholder", "output")]CODE
LOW⚡backends/nxp/tests/generic_tests/test_recipe_export.py151 placeholder_nodes = [n for n in nodes if n.op == "placeholder"]CODE
LOWbackends/nxp/backend/node_format_inference.py396 return node.op == "placeholder"CODE
LOWbackends/nxp/backend/edge_program_converter.py149 if node.op == "placeholder":CODE
LOWbackends/nxp/edge_passes/remove_io_quant_ops_pass.py34 n for n in graph.nodes if n.op == "placeholder" and n.name == user_inputCODE
LOW…sion_passes/add_simulated_linear_bn_fusion_qat_pass.py52 if node.op == "placeholder":CODE
LOWbackends/nxp/quantizer/neutron_quantizer.py401 if node.op == "placeholder" and len(node.users) > 0:CODE
LOWbackends/native/partitioner.py84 if node.op in ("placeholder", "output", "get_attr"):CODE
LOWbackends/native/test/test_passes.py101 x = next(n for n in graph.nodes if n.op == "placeholder")CODE
LOWbackends/native/test/test_passes.py138 x = next(n for n in graph.nodes if n.op == "placeholder")CODE
LOWbackends/native/test/test_passes.py157 x = next(n for n in graph.nodes if n.op == "placeholder")CODE
LOW⚡backends/native/test/test_partitioner.py53 for op in ("placeholder", "output", "get_attr", "call_module", "call_method"):CODE
LOW⚡backends/native/serialization/graph_serialize.py573 "placeholder": OpKind.PLACEHOLDER,CODE
LOW⚡backends/native/serialization/graph_serialize.py1105 or weight.op != "placeholder"CODE
LOW⚡backends/native/serialization/graph_serialize.py1107 or scale.op != "placeholder"CODE
LOW⚡backends/native/serialization/graph_serialize.py1109 or zero_point.op != "placeholder"CODE
LOWbackends/native/serialization/graph_serialize.py980 user_inputs = [n.name for n in graph_module.graph.nodes if n.op == "placeholder"]CODE
LOWbackends/native/serialization/graph_serialize.py1011 if n.op == "placeholder" and "native_packed_quant" in n.metaCODE
LOWbackends/native/passes/remove_runtime_asserts.py88 val = node.meta.get("val") if node.op == "placeholder" else NoneCODE
LOWbackends/test/graph_builder.py30 if node.op != "placeholder":CODE
LOWbackends/qualcomm/qnn_preprocess.py144 "placeholder",CODE
LOWbackends/qualcomm/builders/utils.py103 return tensor.op == "placeholder" and not is_parameter(tensor, edge_program)CODE
LOWbackends/qualcomm/builders/utils.py114 if tensor.op == "placeholder" and is_buffer(edge_program, tensor):CODE
LOWbackends/qualcomm/tests/test_passes.py287 if node.op == "placeholder" and is_parameter(node, exported_program)CODE
LOWbackends/qualcomm/tests/test_passes.py335 if node.op == "placeholder" and is_parameter(node, exported_program)CODE
LOWbackends/qualcomm/tests/test_qnn_delegate.py7713 "placeholder",STRING
LOWbackends/qualcomm/tests/test_qnn_delegate.py7959 if n.op == "placeholder":STRING
LOWbackends/qualcomm/tests/test_qnn_delegate.py8875 "placeholder",STRING
LOWbackends/qualcomm/tests/rework/src/pattern.py190 if n.op == "placeholder"CODE
LOWbackends/qualcomm/tests/rework/src/pattern.py344 if node.op == "placeholder":CODE
LOWbackends/qualcomm/tests/rework/src/pattern.py349 if node.op == "placeholder" and QCOM_QUANTIZED_IO in node.meta:CODE
LOWbackends/qualcomm/tests/rework/src/pattern.py5123 return torch.uint8 if node.op == "placeholder" else NoneCODE
LOWbackends/qualcomm/tests/rework/src/pattern.py5129 placeholders = [n for n in gm.graph.nodes if n.op == "placeholder"]CODE
LOWbackends/qualcomm/utils/utils.py133 node.op in ("placeholder", "output"),CODE
LOWbackends/qualcomm/_passes/canonicalize_conv.py151 if filter_node.op in ("placeholder", "get_attr")CODE
LOWbackends/qualcomm/_passes/convert_mha_to_sha.py563 "placeholder": _visit_placeholder,CODE
LOWbackends/qualcomm/_passes/insert_io_qdq.py50 n.op == "placeholder"CODE
LOWbackends/qualcomm/_passes/recompose_rms_norm.py23 return _is_node(node) and node.op == "placeholder"CODE
LOWbackends/qualcomm/_passes/utils.py240 elif decomposed_node.op == "placeholder":CODE
LOW…ds/qualcomm/_passes/lpai_partition_fallback_support.py296 if q_node.op == "placeholder":CODE
LOWbackends/qualcomm/_passes/i64_to_i32.py141 elif n.op == "placeholder" or n.op == "get_attr":CODE
LOWbackends/qualcomm/debugger/format_outputs.py105 if len(node.users) == 0 and node.op == "placeholder":CODE
LOWbackends/qualcomm/debugger/format_outputs.py143 if len(node.users) == 0 and node.op == "placeholder":CODE
LOWbackends/qualcomm/debugger/format_outputs.py183 if len(node.users) == 0 and node.op == "placeholder":CODE
LOWbackends/qualcomm/partition/qnn_partitioner.py256 if node.op != "placeholder" or len(node.users) != 0:CODE
LOWbackends/qualcomm/quantizer/custom_annotation.py446 if node.op == "placeholder" and "attention_kv_cache_past_" in node.name:CODE
LOW…backend_delegate_passes/permute_memory_formats_pass.py46 if node.op != "placeholder"CODE
LOW…backend_delegate_passes/permute_memory_formats_pass.py83 and exit_node_arg.op != "placeholder"CODE
LOWbackends/cuda/passes/lower_offgraph_kv.py348 n for n in graph.nodes if n.op == "placeholder" and n.name in user_inputsCODE
LOWbackends/cuda/passes/lower_offgraph_kv.py570 [n for n in traced.graph.nodes if n.op == "placeholder"],CODE
LOWbackends/cuda/passes/lower_offgraph_kv.py577 if traced_node.op == "placeholder":CODE
LOWbackends/cuda/passes/move_cond_predicate_to_cpu.py75 pred_node.op == "placeholder"CODE
371 more matches not shown…
Hallucination Indicators35 hits · 400 pts
SeverityFileLineSnippetContext
CRITICALkernels/prim_ops/et_copy_index.cpp58// torch.ops.executorch.prim.add.int(iteration_index, 1, iteration_index)COMMENT
CRITICALkernels/prim_ops/et_copy_index.cpp59// done_bool = torch.ops.executorch.prim.eq.int(iteration_index,COMMENT
CRITICALbackends/apple/coreml/test/tester.py103 executorch.backends.test.harness.Tester.default_stage_classes()CODE
CRITICALbackends/apple/coreml/partition/coreml_partitioner.py194 is_supported = ct.converters.mil.frontend.torch.is_torch_fx_node_supported(CODE
CRITICALbackends/test/suite/__init__.py52 for name, f in executorch.backends.test.suite.flow.all_flows().items()CODE
CRITICAL⚡backends/test/facto/test_facto_arm.py165 tester.to_executorch.return_value.serialize.return_value.run_method_and_compare_outputs.assert_called_once_wCODE
CRITICALbackends/qualcomm/tests/tester.py107 stage_classes = executorch.backends.test.harness.Tester.default_stage_classes() | {CODE
CRITICALbackends/qualcomm/quantizer/rules.py194 quantization_config.weight.observer_or_fake_quant_ctr.p.keywords.update(CODE
CRITICALbackends/qualcomm/quantizer/README.md173 quantization_config.weight.observer_or_fake_quant_ctr.p.keywords.update(CODE
CRITICALbackends/qualcomm/quantizer/annotators/lpai_rules.py547 quantization_config.weight.observer_or_fake_quant_ctr.p.keywords.update(CODE
CRITICALbackends/qualcomm/quantizer/annotators/htp_rules.py974 quantization_config.weight.observer_or_fake_quant_ctr.p.keywords.update(CODE
CRITICALbackends/webgpu/test/tester.py132 executorch.backends.test.harness.Tester.default_stage_classes()CODE
CRITICALbackends/openvino/test/tester/tester.py76 executorch.backends.test.harness.Tester.default_stage_classes()CODE
CRITICALbackends/openvino/quantizer/quantizer.py129 self._algo = nncf.quantization.algorithms.weight_compression.algorithm.WeightCompression(CODE
CRITICALbackends/vulkan/test/tester.py79 executorch.backends.test.harness.Tester.default_stage_classes()CODE
CRITICALbackends/xnnpack/test/tester/tester.py116 executorch.backends.test.harness.Tester.default_stage_classes()CODE
CRITICAL…kends/xnnpack/test/quantizer/test_pt2e_quantization.py215 torch.ao.quantization.observer.PlaceholderObserver.with_args(CODE
CRITICAL…kends/xnnpack/test/quantizer/test_pt2e_quantization.py306 torch.ao.quantization.observer.PlaceholderObserver.with_args(CODE
CRITICALbackends/mlx/test/tester.py62 executorch.backends.test.harness.Tester.default_stage_classes()CODE
CRITICAL⚡…mple_ethos_u/model_export/export_silero_vad_ethos_u.py272 exir_ops.edge.quantized_decomposed.quantize_per_tensor.default.to_out_variant()CODE
CRITICAL⚡…mple_ethos_u/model_export/export_silero_vad_ethos_u.py273 exir_ops.edge.quantized_decomposed.dequantize_per_tensor.default.to_out_variant()CODE
CRITICAL…mple_ethos_u/model_export/export_silero_vad_ethos_u.py284 exir_ops.edge.quantized_decomposed.quantize_per_tensor.default.to_out_variant()CODE
CRITICAL…mple_ethos_u/model_export/export_silero_vad_ethos_u.py285 exir_ops.edge.quantized_decomposed.dequantize_per_tensor.default.to_out_variant()CODE
CRITICAL…mple_ethos_u/model_export/export_silero_vad_ethos_u.py307 exir_ops.edge.quantized_decomposed.quantize_per_tensor.default.to_out_variant()CODE
CRITICAL…mple_ethos_u/model_export/export_silero_vad_ethos_u.py308 exir_ops.edge.quantized_decomposed.dequantize_per_tensor.default.to_out_variant()CODE
CRITICALexir/tests/test_arg_validator.py63 ops.edge.aten.add.Tensor.name(),CODE
CRITICAL⚡exir/tests/common.py90 torch.ops.aten.max.default.tags.append(canonical)CODE
CRITICAL⚡exir/tests/common.py91 torch.ops.aten.sum.default.tags.append(canonical)CODE
CRITICAL⚡exir/tests/common.py92 torch.ops.aten.searchsorted.Tensor.tags.append(canonical)CODE
CRITICAL⚡exir/tests/common.py93 torch.ops.aten.ones_like.default.tags.append(canonical)CODE
CRITICAL⚡exir/tests/common.py94 torch.ops.aten.upsample_nearest2d.default.tags.append(canonical)CODE
CRITICAL⚡exir/tests/common.py95 torch.ops.aten.index.Tensor.tags.append(canonical)CODE
CRITICAL⚡exir/tests/common.py96 torch.ops.aten.addbmm.default.tags.append(canonical)CODE
CRITICALexir/emit/_emitter.py809 iteration_index) iteration_index = torch.ops.executorch.prim.add.int(iteration_index, 1,STRING
CRITICALexir/emit/_emitter.py810 iteration_index) done_bool = torch.ops.executorch.prim.eq.int(iteration_index, sym_size,STRING
Modern Structural Boilerplate367 hits · 368 pts
SeverityFileLineSnippetContext
LOWextension/pytree/__init__.py12logger = logging.getLogger(__name__)CODE
LOWextension/llm/runner/__init__.py255__all__ = [CODE
LOWextension/llm/export/__init__.py12__all__ = [CODE
LOWextension/llm/modules/attention.py19logger = logging.getLogger(__name__)CODE
LOWextension/llm/modules/__init__.py16__all__ = [CODE
LOWextension/llm/modules/turboquant/__init__.py9__all__ = [CODE
LOWextension/training/__init__.py17__all__ = [CODE
LOWextension/pybindings/portable_lib.py34logger = logging.getLogger(__name__)CODE
LOWextension/export_util/__init__.py9__all__ = [CODE
LOW.ci/scripts/gather_benchmark_configs.py257def set_output(name: str, val: Any) -> None:CODE
LOW.ci/scripts/gather_test_models.py84def set_output(name: str, val: Any) -> None:CODE
LOWbackends/apple/metal/passes/__init__.py11__all__ = ["DecomposeLinearPass"]CODE
LOWbackends/apple/coreai/__init__.py46__all__ = [CODE
LOWbackends/apple/coreai/palettizer/__init__.py9__all__ = [CODE
LOWbackends/apple/coreai/passes/__init__.py11__all__ = ["NarrowToCoreAIDtypesPass"]CODE
LOWbackends/apple/coreai/recipes/__init__.py15__all__ = [CODE
LOWbackends/apple/coreai/recipes/recipe_provider.py22logger = logging.getLogger(__name__)CODE
LOWbackends/apple/coreai/partition/partitioner.py35logger = logging.getLogger(__name__)CODE
LOWbackends/apple/coreai/quantizer/__init__.py9__all__ = [CODE
LOWbackends/apple/coreai/compiler/preprocess.py42logger = logging.getLogger(__name__)CODE
LOWbackends/apple/coreai/compiler/io_compat.py23logger = logging.getLogger(__name__)CODE
LOWbackends/apple/coreai/compiler/enumerated_shapes.py25logger = logging.getLogger(__name__)CODE
LOWbackends/apple/coreml/recipes/__init__.py14__all__ = [CODE
LOWbackends/apple/coreml/partition/__init__.py7__all__ = [CODE
LOWbackends/apple/coreml/partition/coreml_partitioner.py32logger = logging.getLogger(__name__)CODE
LOWbackends/apple/coreml/quantizer/__init__.py7__all__ = [CODE
LOWbackends/apple/coreml/compiler/coreml_preprocess.py35logger = logging.getLogger(__name__)CODE
LOWbackends/apple/coreml/compiler/__init__.py7__all__ = [CODE
LOWbackends/nxp/tests/config_importer.py8logger = logging.getLogger(__name__)CODE
LOWbackends/nxp/tests/nsys_testing.py60logger = logging.getLogger(__name__)CODE
LOWbackends/nxp/tests/outputs_dir_importer.py8logger = logging.getLogger(__name__)CODE
LOWbackends/nxp/tests/tester/__init__.py8__all__ = ["NeutronTester"]CODE
LOWbackends/nxp/backend/node_format_inference.py42logger = logging.getLogger(__name__)CODE
LOWbackends/nxp/backend/neutron_map.py307 def _update_neutron_subgraphs_info(self, extracted_graph: str) -> None:CODE
LOW…ckends/nxp/backend/ir/tflite_generator/tflite_model.py31logger = logging.getLogger(__name__)CODE
LOWbackends/nxp/backend/ir/tflite_generator/meta/meta.py21logger = logging.getLogger(__name__)CODE
LOW…r/converter/node_converters/ops_converters/__init__.py135__all__ = [CODE
LOW…n_passes/simulated_linear_bn_fusion_passes/__init__.py13__all__ = [CODE
LOWbackends/nxp/recipes/__init__.py14__all__ = [CODE
LOWbackends/native/__init__.py10__all__ = [CODE
LOWbackends/native/serialization/__init__.py19__all__ = [CODE
LOWbackends/native/passes/__init__.py55__all__ = [CODE
LOWbackends/test/harness/__init__.py3__all__ = ["Tester"]CODE
LOWbackends/test/harness/stages/serialize.py11logger = logging.getLogger(__name__)CODE
LOWbackends/test/harness/stages/__init__.py11__all__ = [CODE
LOWbackends/test/suite/__init__.py19logger = logging.getLogger(__name__)CODE
LOWbackends/test/suite/flow.py16logger = logging.getLogger(__name__)CODE
LOWbackends/test/suite/flows/portable.py6logger = logging.getLogger(__name__)CODE
LOWbackends/test/suite/flows/samsung.py10logger = logging.getLogger(__name__)CODE
LOWbackends/test/suite/flows/xnnpack.py14logger = logging.getLogger(__name__)CODE
LOWbackends/test/facto/test_facto.py129logger = logging.getLogger(__name__)CODE
LOWbackends/qualcomm/qnn_preprocess.py43logger = logging.getLogger(__name__)CODE
LOWbackends/qualcomm/builders/__init__.py125__all__ = [CODE
LOWbackends/qualcomm/utils/qnn_sdk_setup.py44def _setup_qnn_sdk_locked() -> None:CODE
LOWbackends/qualcomm/_passes/__init__.py79__all__ = [CODE
LOW…ends/qualcomm/_passes/lift_constant_scalar_operands.py127 def _update_node(self, node: fx.Node, tensor_args: Dict) -> None:CODE
LOWbackends/qualcomm/_passes/i64_to_i32.py115 def _update_meta(self, node: torch.fx.node) -> None:CODE
LOWbackends/qualcomm/_passes/backends/htp/__init__.py9__all__ = [CODE
LOWbackends/qualcomm/_passes/backends/gpu/__init__.py9__all__ = [CODE
LOWbackends/qualcomm/_passes/backends/lpai/__init__.py9__all__ = [CODE
307 more matches not shown…
Empty Error Handlers69 hits · 345 pts
SeverityFileLineSnippetContext
HIGHextension/flat_tensor/serialize/serialize.py223except ValueError:CODE
HIGHbackends/apple/metal/metal_backend.py100except ImportError:CODE
HIGHbackends/apple/metal/metal_backend.py109except ImportError:CODE
HIGHbackends/native/serialization/graph_serialize.py194except AttributeError:CODE
HIGHbackends/native/serialization/graph_serialize.py197except (ValueError, TypeError, RuntimeError):CODE
HIGHbackends/qualcomm/scripts/download_qnn_sdk.py787except Exception:CODE
HIGHbackends/qualcomm/scripts/download_qnn_sdk.py798except requests.exceptions.RequestException:CODE
HIGHbackends/qualcomm/scripts/download_qnn_sdk.py640except Exception:CODE
HIGHbackends/cuda/cuda_backend.py523except ImportError:CODE
HIGHbackends/cuda/cuda_backend.py1087except Exception:CODE
HIGHbackends/cuda/cuda_weight_collector.py79except AttributeError:CODE
HIGHbackends/cuda/triton/kernels/__init__.py47except ImportError:CODE
HIGHbackends/cuda/triton/kernels/__init__.py54except ImportError:CODE
HIGHbackends/cuda/triton/kernels/__init__.py63except ImportError:CODE
HIGHbackends/cuda/benchmarks/benchmark_moe.py250except ImportError:CODE
HIGHbackends/webgpu/scripts/gen_wgsl_headers.py701except OSError:CODE
HIGH…s/transforms/remove_permutes_around_elementwise_ops.py106except AttributeError:CODE
HIGHbackends/vulkan/test/test_vulkan_delegate.py48except:CODE
HIGHbackends/arm/test/conftest.py130except Exception: # nosec B110 - pytest redefines options, safe to ignoreCODE
HIGHbackends/arm/test/runner_utils.py1074except Exception: # nosec B110 - best-effort casting for debug output onlyCODE
HIGHbackends/arm/test/misc/test_debug_feats.py182except AssertionError:CODE
HIGH…kends/arm/operator_support/tosa_supported_operators.py289except TypeError:CODE
HIGHbackends/arm/_passes/int32_range_analysis.py212except AttributeError:CODE
HIGH…ends/arm/scripts/generate_neural_graphics_test_data.py535except _NFRUAutoencoderInputCaptured:CODE
HIGHbackends/arm/vgf/model_converter.py189except InvalidVersion:CODE
HIGHbackends/cadence/aot/compiler_funcs.py561except AttributeError:CODE
HIGHbackends/cadence/aot/compiler_funcs.py570except AttributeError:CODE
HIGHbackends/mlx/passes.py333except Exception:CODE
HIGHbackends/mlx/passes.py348except Exception:CODE
HIGHbackends/mlx/serialization/mlx_graph_serialize.py414except (TypeError, AttributeError):CODE
HIGHbackends/mlx/builder/program_builder.py1027except Exception:CODE
HIGHbackends/cortex_m/passes/aten_to_cortex_m_pass.py270except (AttributeError, TypeError):CODE
HIGHcodegen/test/test_executorch_gen.py239except OSError:CODE
HIGHcodegen/test/test_executorch_gen.py325except OSError:CODE
HIGHcodegen/test/test_executorch_gen.py517except Exception:CODE
HIGHcodegen/test/test_executorch_gen.py525except Exception:CODE
HIGHexamples/mediatek/model_export_scripts/emformer_rnnt.py120except:CODE
HIGHexamples/mediatek/model_export_scripts/emformer_rnnt.py127except:CODE
HIGHexamples/models/qwen3/convert_weights.py110except FileNotFoundError:CODE
HIGHexamples/models/granite_speech/convert_weights.py40except:CODE
HIGHexamples/models/smolvlm/convert_weights.py44except:CODE
HIGHexamples/models/muse-glimmer/export/common.py47except AttributeError:CODE
HIGHexamples/models/qwen3_5/convert_weights.py89except FileNotFoundError:CODE
HIGHexamples/models/internvl3/convert_weights.py47except:CODE
HIGHexamples/models/llama/attention.py84except (AttributeError, RuntimeError):CODE
HIGHexamples/models/llama/install_requirement_helper.py39except ImportError:CODE
HIGHexamples/llm_server/evals/terminal_bench/runner.py207except ProcessLookupError:CODE
HIGHexamples/llm_server/evals/terminal_bench/runner.py221except ProcessLookupError:CODE
HIGHexamples/llm_server/evals/terminal_bench/runner.py195except (OSError, ValueError):CODE
HIGHexamples/llm_server/python/chat_template.py87except (ValueError, TypeError):CODE
HIGHexamples/llm_server/python/multiplexed_worker_client.py87except (OSError, ValueError):CODE
HIGHexamples/llm_server/python/multiplexed_worker_client.py99except ProcessLookupError:CODE
HIGHexamples/llm_server/python/multiplexed_worker_client.py112except (OSError, asyncio.TimeoutError):CODE
HIGHexamples/llm_server/python/worker_client.py127except OSError:CODE
HIGHexamples/llm_server/python/worker_client.py155except Exception: # noqa: BLE001 - fake/foreign Popen objects may be immutableCODE
HIGHexamples/llm_server/python/session_runtime.py545except (asyncio.CancelledError, Exception):CODE
HIGHexamples/llm_server/python/session_runtime.py411except (asyncio.CancelledError, Exception):CODE
HIGH…amples/llm_server/python/tests/test_session_runtime.py232except asyncio.CancelledError:CODE
HIGH…amples/llm_server/python/tests/test_session_runtime.py281except asyncio.CancelledError:CODE
HIGH…les/llm_server/python/tests/test_concurrent_serving.py456except WorkerError:CODE
9 more matches not shown…
Docstring Block Structure67 hits · 335 pts
SeverityFileLineSnippetContext
HIGHextension/llm/modules/attention.py209 Args: x (torch.Tensor): input tensor with shape [b x s_x x d] for the query y (OptionalSTRING
HIGHextension/llm/modules/kv_cache.py69Update KV cache with the new ``k_val``, ``v_val`` and return the updated cache. Note: When updatingSTRING
HIGHextension/flat_tensor/serialize/serialize.py151Tries to read an flat_tensor header from the provided data. Does not validate that the header is well-formed. CSTRING
HIGH.ci/scripts/gather_benchmark_configs.py147 Generate a list of compatible benchmark configurations for a given model name and target OS. Args: modSTRING
HIGH.ci/scripts/test_huggingface_optimum_model.py233 Determine the tokenizer path based on files saved by tokenizer.save_pretrained(). Args: model_dir: TheSTRING
HIGHbackends/qualcomm/utils/utils.py1225 Helper function generating compiler specs for Qualcomm AI Engine Direct Args: soc_model: The SoC you pSTRING
HIGHbackends/qualcomm/genai_pipeline/genai_pipeline.py153Build one stage from the registry, or ``None`` if it is skipped. Args: engine_proxy: Routes each stSTRING
HIGHbackends/qualcomm/genai_pipeline/control_args.py363Build from a ``PipelineContext`` plus per-stage overrides. The context supplies the four settings it owns; anytSTRING
HIGH…l_preparation/executorch_model_preparation_strategy.py106Prepare the model, tokenizer, and calibration data. Args: context: The pipeline context with globalSTRING
HIGH…gies/model_preparation/default_model_loader_adapter.py159Export tokenizer to disk and return the runtime tokenizer file. ``save_pretrained`` writes several files and reSTRING
HIGH…egies/quantization/executorch_quantization_strategy.py95Quantize the model using ExecuTorch/QNN quantization. Executes the full PT2E quantization pipeline: expSTRING
HIGH…/strategies/inference/executorch_inference_strategy.py75Run inference using compiled model artifacts on device. Args: context: The pipeline context with glSTRING
HIGH…ine/strategies/compilation/default_compiler_adapter.py37Recover the ``QnnExecuTorchOptions`` carried by a list of compile specs. ``generate_qnn_executorch_compiler_spec`` STRING
HIGH…ine/strategies/compilation/default_compiler_adapter.py202Compile the model via ``to_edge_transform_and_lower_to_qnn``. Args: model: The model to compile (nnSTRING
HIGH…ategies/compilation/executorch_compilation_strategy.py113Compile the model to on-device .pte artifacts. Args: context: The pipeline context with global settSTRING
HIGH…_pipeline/datasets/default_calibration_data_adapter.py34Generate calibration data as random token sequences. Args: tokenizer: The tokenizer to use. Only ``STRING
HIGH…nai_pipeline/datasets/default_training_data_adapter.py34Return caller-supplied QAT training data. Args: tokenizer: The tokenizer (unused by this implementaSTRING
HIGH…omm/genai_pipeline/compilation/compile_spec_builder.py40Convert a SoC name to its ``QcomChipset`` enum member. ``PipelineContext`` carries ``soc_model`` as a string so thaSTRING
HIGH…omm/genai_pipeline/compilation/compile_spec_builder.py99Convert a backend name to its ``QnnExecuTorchBackendType`` member. Mirrors ``export_utils.get_backend_type``, but vSTRING
HIGHbackends/cuda/triton/kernels/sdpa.py223 Validate dimensions and return shape info. Args: query: Query tensor [B, H_q, L_q, D] key: Key STRING
HIGHbackends/transforms/utils.py32 Helper function to create a fake tensor using the fake_mode from existing nodes in the graph. Args: grSTRING
HIGH…kends/xnnpack/serialization/xnnpack_graph_serialize.py134 Converts the given bytes into an XNNHeader object. We check that the magic and length is valid, but doSTRING
HIGH…kends/xnnpack/serialization/xnnpack_graph_serialize.py263Returns the input followed by enough zero bytes to become the requested length. Args: data: The data to padSTRING
HIGHbackends/arm/test/runner_utils.py223Get output QuantizationParams from a program. Args: output_nodes (list(Node)): A list of output nodes to geSTRING
HIGHbackends/arm/operators/op_tosa_rescale.py28Derive integer multipliers and shifts from floating-point scales. TOSA uses the RESCALE operation to scale between STRING
HIGHbackends/arm/operators/node_visitor.py185Define a TOSA operator node. Args: node (torch.fx.Node): FX node being lowered. tosa_grSTRING
HIGHbackends/arm/tosa/backend.py115Lower an exported program to a TOSA flatbuffer. Apply Arm transformation passes to ``edge_program``, then walk STRING
HIGHbackends/arm/tosa/utils.py26Determine whether the fake tensors share a broadcastable shape. Args: fake_tensors (list[FakeTensor]): FakeSTRING
HIGHbackends/arm/tosa/utils.py65Broadcast the FX nodes to a shared shape inside the TOSA graph. This emits the reshape and tile operators needed toSTRING
HIGHbackends/arm/tosa/specification.py192Create a specification from a standard string format. Example: ``TOSA-1.00.0+INT+FP+int4+cf``. Args: STRING
HIGHbackends/arm/tosa/mapping.py85Map a ``torch.dtype`` to a ``ts.DType``. Args: data_type (torch.dtype): PyTorch dtype to convert. RetuSTRING
HIGHbackends/arm/tosa/mapping.py130Extract dtype, shape, and dimension order from FX metadata. Args: meta (dict): FX node ``meta`` containing STRING
HIGHbackends/arm/_passes/rewrite_conv_pass.py83Adjust padding to satisfy TOSA's integer output-size requirement. Torch ``Conv2d`` does not require the result STRING
HIGHbackends/arm/_passes/rewrite_upsample.py52Compute resize coefficients for a single spatial dimension. Args: input_size (int | torch.SymInt): STRING
HIGHbackends/arm/_passes/fuse_batch_norm2d_pass.py64Fuse BatchNorm into grouped transposed-convolution parameters. This helper runs before ``DecomposeGroupedConvPaSTRING
HIGHbackends/arm/scripts/aot_arm_compiler.py212Resolve a model name into a model instance and example inputs. Args: model_name: Identifier for the model. STRING
HIGHbackends/arm/quantizer/quantization_config.py258Get the derived or validated bias spec. For conv/linear ops, derive bias qparams from the input/weight observerSTRING
HIGHbackends/arm/quantizer/quantization_config.py291Compute bias scale/zero-point from activation/weight observers. Expect two observers or fake-quantize modulSTRING
HIGHbackends/arm/vgf/quantization_assessment.py763Compare FP32 and quantized exported graphs using module FQN identity. Args: fp32_model: FP32 ExportedPrograSTRING
HIGHbackends/arm/vgf/backend.py269Validate a delegation tag before it is used in an artifact filename. Delegation tags originate from graph metadata STRING
HIGHbackends/arm/vgf/backend.py301Construct an output path that is confined to ``directory``. Both paths are resolved before comparison so traversal STRING
HIGHbackends/arm/vgf/quantization_quality.py92Compute VGF quantization-quality metrics for a tensor pair. Args: reference: Floating-point reference tensoSTRING
HIGHbackends/arm/vgf/compile_spec.py98Run VGF environment preflight checks. By default this validates only AoT/export prerequisites. Runtime and STRING
HIGHbackends/mlx/partitioner.py351 Partition the edge program for MLX delegation. Args: edge_program: The ExportedProgram to STRING
HIGHbackends/mlx/pattern_utils.py106 One step in a backward walk through the graph. Used with walk_back() to define pattern chains. Supports both eSTRING
HIGHbackends/mlx/pattern_utils.py201 Walk backwards through a chain of ops, matching against a pattern. Starting from *node*, try to match each steSTRING
HIGHdevtools/inspector/_inspector.py1176 Resolve the reference graph module to use for AOT operations. This method centralizes the logic for deSTRING
HIGH…ctor/numerical_comparator/numerical_comparator_base.py166Compare two outputs, handling both sequence and non-sequence cases. Args: a: The first intermediateSTRING
HIGHexamples/qualcomm/oss_scripts/llama/tokenizer.py146 Validate and normalize a multi-turn prompt sequence, then prepare it into a message list. ThisSTRING
HIGH…/aot_utils/llm_utils/tokenizers_/tokenization_utils.py408Add a list of new tokens to the tokenizer class. If the new tokens are not in the vocabulary, they are added toSTRING
HIGH…utils/llm_utils/tokenizers_/tokenization_utils_base.py61Import the DecodeError from protobuf if available. Args: _ (Any): Placeholder argument. Returns: STRING
HIGH…utils/llm_utils/tokenizers_/tokenization_utils_base.py913Adds special tokens. Add a dictionary of special tokens (eos, pad, cls, etc.) to the encoder and link them to cSTRING
HIGH…utils/llm_utils/tokenizers_/tokenization_utils_base.py1038Add 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.py374Tries to locate a file in a local folder and repo, downloads and cache it if necessary. Args: path_or_repo_STRING
HIGHexamples/models/model_factory.py23 Create an instance of a model class that implements EagerModelBase and retrieve related data. Args: STRING
HIGHscripts/pick_doc_commits.py46Runs a git command and returns its stdout as a list of lines. Prints the command and its output to debug_log() if vSTRING
HIGHexir/native/native.py361Lower ExportedProgram(s) through the native backend. ``programs`` is a single ``ExportedProgram`` (lowered as the sSTRING
HIGHexir/backend/backend_api.py74 Add overloaded implementations for to_backend: :: def to_backend( backend_id: str, edgSTRING
HIGHexir/backend/test/backend_with_compiler_demo.py30 An example implementation to lower a module. Currently this example only supports the sin operator. The exaSTRING
HIGHexir/_serialize/_program.py78Inserts a header just after the magic string of the provided flatbuffer data. Args: flatbuffer_data: The inSTRING
7 more matches not shown…
Verbosity Indicators176 hits · 325 pts
SeverityFileLineSnippetContext
LOW⚡install_executorch.py231 # Step 1: Install core dependencies firstCOMMENT
LOW⚡install_executorch.py234 # Step 2: Install core packageCOMMENT
LOWinstall_executorch.py256 # Step 3: Extra (optional) packages that is only useful for running examples.COMMENT
LOWextension/module/test/resources/gen_bundled_program.py14# Step 1: ExecuTorch Program ExportCOMMENT
LOWextension/module/test/resources/gen_bundled_program.py54 # Step 2: Construct MethodTestSuite for Each MethodCOMMENT
LOW⚡extension/module/test/resources/gen_bundled_program.py86 # Step 3: Generate BundledProgramCOMMENT
LOW⚡extension/module/test/resources/gen_bundled_program.py89 # Step 4: Serialize BundledProgram to flatbuffer.COMMENT
LOW⚡extension/gguf_util/load_gguf.py96 # Step 1: Build GGUFModelArgsCOMMENT
LOW⚡extension/gguf_util/load_gguf.py100 # Step 2: Build GGUFWeightsCOMMENT
LOW⚡extension/gguf_util/convert_main.py32 # Step 1: Load the GGUF fileCOMMENT
LOW⚡extension/gguf_util/convert_main.py35 # Step 2: Convert the GGUF model to PTECOMMENT
LOWextension/gguf_util/convert_main.py47 # Step 3: Save the PTE program so thatCOMMENT
LOW⚡extension/gguf_util/converters/llama_converter.py110 # Step 1: Create the PyTorch modelCOMMENT
LOW⚡extension/gguf_util/converters/llama_converter.py116 # Step 2: Load the weights into the PyTorch modelCOMMENT
LOW⚡extension/gguf_util/converters/llama_converter.py120 # Step 3: Export to ExecuTorchCOMMENT
LOWextension/image/image_processor.cpp342 // Step 1: orientation (orient -> ROI -> resize). Produce an oriented copy ofCOMMENT
LOWextension/image/image_processor.cpp366 // Step 2: ROI crop (pointer arithmetic).COMMENT
LOWextension/image/image_processor.cpp387 // Step 3: Swizzle BGRA/RGBA → RGB (alpha discarded).COMMENT
LOWextension/image/image_processor.cpp401 // Step 4: Resize.COMMENT
LOWextension/image/image_processor.cpp422 // Step 5: Normalize + layout into the caller's CHW output (padded).COMMENT
LOWextension/image/image_processor_apple.cpp695 // Step 2: orientation. Rotate the BGRA buffer (vImage) so ROI/resize run inCOMMENT
LOW⚡extension/image/image_processor_apple.cpp721 // Step 3: ROI crop (pointer arithmetic on BGRA data).COMMENT
LOW⚡extension/image/image_processor_apple.cpp724 // Step 4: resize. Letterbox padding is applied during normalization.COMMENT
LOWextension/image/image_processor_apple.cpp753 // Step 5: normalize BGRA → CHW float buffer.COMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh61# Step 1: Checkout old version of ExecuTorchCOMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh66# Step 2: Install the old versionCOMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh75# Step 3: Export modelCOMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh124# Step 4: Checkout current version (main)COMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh130# Step 5: Install current versionCOMMENT
LOW⚡.ci/scripts/test_coreml_bc.sh135# Step 6: Run the old pte fileCOMMENT
LOWbackends/qualcomm/_passes/decompose_diagonal.py95 # Step 1: Permute dim1, dim2 to last positions (if needed)COMMENT
LOW⚡backends/qualcomm/_passes/decompose_diagonal.py107 # Step 2: Reshape [..., M, N] -> [..., M*N]COMMENT
LOW⚡backends/qualcomm/_passes/decompose_diagonal.py117 # Step 3: Compute flat diagonal indicesCOMMENT
LOWbackends/qualcomm/_passes/decompose_diagonal.py142 # Step 4: index_select on last dimCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_cdist.py19 # Step 1: Compute differencesCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_cdist.py22 # Step 2: Square differencesCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_cdist.py25 # Step 3: Sum of squaresCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_cdist.py28 # Step 4: Square rootCOMMENT
LOWbackends/qualcomm/_passes/decompose_var.py82 # Step 1: mean_x = mean(x, dim, keepdim=True)COMMENT
LOW⚡backends/qualcomm/_passes/decompose_var.py94 # Step 2: diff = x - mean_xCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_var.py102 # Step 3: sq = diff * diff (more efficient than pow(diff, 2))COMMENT
LOW⚡backends/qualcomm/_passes/decompose_var.py110 # Step 4: var = mean(sq, dim, keepdim)COMMENT
LOW⚡backends/qualcomm/_passes/decompose_var.py116 # Step 5: Apply correction factor if neededCOMMENT
LOW⚡backends/qualcomm/_passes/decompose_div_mode.py55 # Step 1: div_result = div(x, y)COMMENT
LOW⚡backends/qualcomm/_passes/decompose_div_mode.py61 # Step 2: Apply rounding mode if neededCOMMENT
LOWbackends/qualcomm/_passes/convert_linear_to_conv2d.py169 # Step 1: calibrate inputCOMMENT
LOWbackends/qualcomm/_passes/convert_linear_to_conv2d.py196 # Step 2: reshape weightCOMMENT
LOWbackends/qualcomm/_passes/convert_linear_to_conv2d.py272 # Step 3: restore original output of linear nodeCOMMENT
LOW⚡…l_preparation/executorch_model_preparation_strategy.py143 # Step 1: Load modelCOMMENT
LOW⚡…l_preparation/executorch_model_preparation_strategy.py150 # Step 2: Load tokenizerCOMMENT
LOW⚡…l_preparation/executorch_model_preparation_strategy.py157 # Step 3: Build the export example inputs from the model itself.COMMENT
LOW…l_preparation/executorch_model_preparation_strategy.py168 # Step 4: Generate calibration data via the cross-stage dataset adapterCOMMENT
LOW…l_preparation/executorch_model_preparation_strategy.py179 # Step 5: Optionally export tokenizer for runtimeCOMMENT
LOW…l_preparation/executorch_model_preparation_strategy.py190 # Step 6: Extract chat_template from tokenizer (for instruct models).COMMENT
LOW…egies/quantization/executorch_quantization_strategy.py130 # Step 1: Export model. The example inputs describe the model's ownCOMMENT
LOW…egies/quantization/executorch_quantization_strategy.py141 # Step 2: Create quantizerCOMMENT
LOW⚡…egies/quantization/executorch_quantization_strategy.py168 # Step 3: Prepare (insert observers)COMMENT
LOW⚡…egies/quantization/executorch_quantization_strategy.py172 # Step 4: CalibrateCOMMENT
LOW⚡…egies/quantization/executorch_quantization_strategy.py178 # Step 5: Convert to quantized modelCOMMENT
LOW⚡…/strategies/inference/executorch_inference_strategy.py97 # Step 1: Push artifacts to device. Only the artifacts: the adapterCOMMENT
116 more matches not shown…
Redundant / Tautological Comments213 hits · 323 pts
SeverityFileLineSnippetContext
LOWinstall_executorch.py136 # Check if the directories exist for each required submoduleCOMMENT
LOWsetup.py2802 # Check if QNN SDK is available (via QNN_SDK_ROOT env var), and if so,COMMENT
LOWsetup.py2956 # Set PYTHONPATH to the location of the pip package.COMMENT
LOWinstall_utils.py122 # Check if the detected version is supportedCOMMENT
LOW…tension/llm/custom_ops/test_update_cross_attn_cache.py17# Check if CUDA device has compatible compute capability for Triton kernelsCOMMENT
LOWextension/llm/export/export_passes.py51 # Check if the next node is also a transpose nodeCOMMENT
LOWextension/llm/export/export_passes.py69 # Check if the two transpose nodes undo each otherCOMMENT
LOWextension/llm/export/export_passes.py79 # Check if the next node is also a transpose nodeCOMMENT
LOWextension/llm/export/export_passes.py91 # Check if the two permutes undo each otherCOMMENT
LOWextension/training/examples/CIFAR/train_utils.py132 model.eval() # Set model to evaluation modeCODE
LOW.ci/docker/common/install_cuda_windows_cross_compile.sh95 # Check if already downloaded and extractedCOMMENT
LOW.ci/scripts/download_hf_hub.sh57# Check if script is called directlyCOMMENT
LOW.ci/scripts/compare_dirs.sh10# Check if dir1's files are also found in dir2 with the sameCOMMENT
LOW.ci/scripts/compare_dirs.sh36 # Check if the corresponding file exists in the second directoryCOMMENT
LOWbackends/apple/metal/passes/decompose_linear_pass.py30 # Check if this is a linear operationCOMMENT
LOWbackends/apple/metal/tests/test_metal_partitioner.py59 # Check if we have any tagged nodesCOMMENT
LOWbackends/apple/metal/tests/test_metal_partitioner.py63 # Check if all tagged nodes have the same tagCOMMENT
LOWbackends/apple/metal/tests/run_metal_test.sh13# ./run_metal_test.sh --check-build # Check if runtime is already builtCOMMENT
LOWbackends/apple/metal/tests/run_metal_test.sh55 # Check if we're on macOSCOMMENT
LOWbackends/apple/metal/tests/test_modules.py46# Check if MPS is available for export testsCOMMENT
LOWbackends/apple/metal/tests/test_modules.py52# Check if running in CI (GitHub Actions)COMMENT
LOWbackends/apple/metal/tests/test_modules.py68# Check if executor_runner is builtCOMMENT
LOWbackends/apple/metal/tests/test_modules.py1478 # Check if this model/dtype combination should be skippedCOMMENT
LOWbackends/apple/metal/tests/test_modules.py1512 # Check if this model/dtype combination should be skippedCOMMENT
LOWbackends/apple/coreml/partition/coreml_partitioner.py291 # Check if we're being called from the deprecated to_backend workflowSTRING
LOWbackends/nxp/nxp_backend.py257 # Check if provided intermediates_dir is a correct path (None is decoded to str)COMMENT
LOWbackends/nxp/neutron_partitioner.py488 # Check if the nodes support the partitioning result. Mark the problematic nodes with `NXP_DO_NOT_DELEGATE`.COMMENT
LOWbackends/nxp/tests/graph_verifier.py229 # Check if the node was tagged for delegation during partitioningCOMMENT
LOW⚡backends/nxp/tests/generic_tests/test_aot_example.py113 # Check if delegated model was created and saved.COMMENT
LOW⚡backends/nxp/tests/generic_tests/test_aot_example.py119 # Check if nonempty Neutron to Edge map was created.COMMENT
LOW⚡backends/nxp/tests/generic_tests/test_aot_example.py122 # Check if ETRecord was created and saved.COMMENT
LOW…nxp/tests/generic_tests/test_convert_scalar_to_attr.py59 # Check if the node with scalar arg did not disappear.COMMENT
LOWbackends/nxp/tests/generic_tests/test_quantizer.py202 # Check if QDQ pattern:COMMENT
LOWbackends/nxp/tests/generic_tests/test_quantizer.py213 # Check if input and output quantization is sameCOMMENT
LOWbackends/nxp/tests/generic_tests/test_quantizer.py236 # Check if QDQ pattern:COMMENT
LOW…ckends/nxp/backend/ir/tflite_generator/tflite_model.py599 # Check if any of the inputs is quantizedCOMMENT
LOW…ends/nxp/backend/ir/converter/builder/model_builder.py194 # Check if such tensor already existsCOMMENT
LOW…ckend/ir/neutron_ir_post_processing/pattern_matcher.py648 # Check if it is connected via the inputs.COMMENT
LOW…ckend/ir/neutron_ir_post_processing/pattern_matcher.py740 # Check if it is connected via the inputs.COMMENT
LOW…_processing/optimizations/prune_transpose_operators.py146 # Check if the `Transpose` is doing nothing.COMMENT
LOW…es/remove_additional_quantize_dequantize_nodes_pass.py102 # 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.py55 # 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.py65 # Check if following activation is supported on Neutron as fused activation.COMMENT
LOW…aten_passes/add_batch_size_for_3d_input_pool_2d_ops.py72 # Check if input is 3D (C, H, W)COMMENT
LOW…ends/nxp/aten_passes/decompose_split_to_slices_pass.py175 # Check if split is even necessary - if not, remove itCOMMENT
LOWbackends/test/suite/runner.py185 # Check if any undelegated ops are in the unsupported ops set.COMMENT
LOWbackends/qualcomm/_passes/utils.py332 # Check if pattern is validCOMMENT
LOWbackends/qualcomm/scripts/build.sh11# Check if running on macOS/DarwinCOMMENT
LOWbackends/qualcomm/scripts/install_qnn_sdk.sh11 # Check if ANDROID_NDK_ROOT is already set and validCOMMENT
LOWbackends/qualcomm/scripts/install_qnn_sdk.sh61 # Check if QNN_SDK_ROOT is already set and validCOMMENT
LOWbackends/qualcomm/scripts/install_qnn_sdk.sh132 # Check if already configured externally and valid.COMMENT
LOWbackends/qualcomm/scripts/install_qnn_sdk.sh212 # Check if we already have a local installationCOMMENT
LOWbackends/cuda/tests/test_cuda_partitioner.py646 # Check if we have any tagged nodesCOMMENT
LOWbackends/cuda/tests/test_cuda_partitioner.py650 # Check if all tagged nodes have the same tagCOMMENT
LOWbackends/cuda/tests/test_cuda_partitioner.py766 # Check if this is a constant (param, buffer, or lifted tensor constant)COMMENT
LOWbackends/cuda/tests/test_cuda_export.py426 # Set module to eval mode to avoid batch norm running statistics mutationsCOMMENT
LOWbackends/openvino/tests/ops/base_openvino_op_test.py46 # Check if the number of partitions created matches the expected number of partitionsCOMMENT
LOWbackends/openvino/tests/ops/base_openvino_op_test.py51 # Check if the individual partitions are assigned to Openvino backendCOMMENT
LOWbackends/openvino/scripts/openvino_build.sh60 # Set parameters to configure the project with CMakeCOMMENT
LOW⚡backends/samsung/_passes/annotate_qparams.py320 # Check if input is a Dequant nodeCOMMENT
153 more matches not shown…
AI Structural Patterns246 hits · 220 pts
SeverityFileLineSnippetContext
LOWextension/llm/custom_ops/custom_ops.py558CODE
LOWextension/llm/custom_ops/test_sdpa_with_kv_cache.py45CODE
LOWextension/llm/custom_ops/preprocess_custom_ops.py56CODE
LOWextension/llm/custom_ops/test_quantized_sdpa.py155CODE
LOWextension/llm/custom_ops/test_quantized_sdpa.py220CODE
LOWextension/llm/export/builder.py79CODE
LOWextension/audio/mel_spectrogram.py44CODE
LOW…ripts/benchmark_tooling/get_benchmark_analysis_data.py603CODE
LOWtest/end2end/test_end2end.py457CODE
LOWbackends/apple/metal/tests/test_modules.py706CODE
LOWbackends/nxp/nxp_backend.py163CODE
LOWbackends/nxp/tests/executorch_pipeline.py178CODE
LOWbackends/nxp/tests/executorch_pipeline.py268CODE
LOWbackends/nxp/tests/executors.py310CODE
LOWbackends/nxp/tests/simple_models.py14CODE
LOWbackends/nxp/tests/simple_models.py43CODE
LOWbackends/nxp/tests/simple_models.py74CODE
LOWbackends/nxp/tests/simple_models.py103CODE
LOWbackends/nxp/tests/simple_models.py134CODE
LOWbackends/nxp/tests/nsys_testing.py384CODE
LOWbackends/nxp/tests/tester/tester.py574CODE
LOWbackends/nxp/tests/generic_tests/test_aot_example.py50CODE
LOW…ir/tflite_generator/builtin_options/conv_3d_options.py29CODE
LOWbackends/test/harness/tester.py228CODE
LOWbackends/test/harness/tester.py316CODE
LOWbackends/test/harness/tester.py543CODE
LOWbackends/test/suite/operators/test_conv1d.py21CODE
LOWbackends/test/suite/operators/test_conv3d.py22CODE
LOWbackends/test/suite/operators/test_conv2d.py22CODE
LOWbackends/test/suite/operators/test_convtranspose2d.py22CODE
LOWbackends/test/suite/operators/test_convtranspose3d.py22CODE
LOWbackends/test/suite/operators/test_convtranspose1d.py22CODE
LOWbackends/test/suite/operators/test_lstm.py27CODE
LOWbackends/qualcomm/export_utils.py574CODE
LOWbackends/qualcomm/export_utils.py731CODE
LOWbackends/qualcomm/tests/models.py988CODE
LOWbackends/qualcomm/tests/models.py1016CODE
LOWbackends/qualcomm/tests/utils.py359CODE
LOWbackends/qualcomm/tests/utils.py704CODE
LOWbackends/qualcomm/tests/utils.py795CODE
LOWbackends/qualcomm/utils/utils.py346CODE
LOWbackends/qualcomm/utils/utils.py1212CODE
LOWbackends/qualcomm/utils/utils.py186CODE
LOWbackends/qualcomm/_passes/decompose_maxpool3d.py54CODE
LOW…comm/quantizer/observers/per_channel_param_observer.py21CODE
LOW…comm/quantizer/observers/per_channel_param_observer.py125CODE
LOW…ckends/qualcomm/quantizer/observers/concat_observer.py17CODE
LOWbackends/cuda/tests/test_chunk_gated_delta_rule.py183CODE
LOWbackends/cuda/tests/test_fused_moe.py104CODE
LOWbackends/cuda/tests/test_cuda_export.py423CODE
LOW…pu/test/ops/dynamic_shape/test_dynamic_shape_export.py103CODE
LOWbackends/transforms/test/test_create_mutable_buffer.py487CODE
LOWbackends/transforms/test/test_create_mutable_buffer.py520CODE
LOWbackends/transforms/test/test_create_mutable_buffer.py553CODE
LOWbackends/transforms/test/test_create_mutable_buffer.py583CODE
LOWbackends/transforms/test/test_create_mutable_buffer.py613CODE
LOWbackends/vulkan/op_registry.py55CODE
LOWbackends/vulkan/custom_ops_lib.py35CODE
LOWbackends/vulkan/custom_ops_lib.py104CODE
LOWbackends/vulkan/custom_ops_lib.py77CODE
186 more matches not shown…
AI Slop Vocabulary53 hits · 123 pts
SeverityFileLineSnippetContext
MEDIUMkernels/portable/test/op_upsample_bilinear2d_aa_test.py11# The comprehensive C++ test suite in op_upsample_bilinear2d_aa_test.cpp providesCOMMENT
MEDIUMkernels/portable/cpu/util/broadcast_util.cpp150 // Essentially, we can broadcast broadcast_from if it meets three conditionsCOMMENT
MEDIUMkernels/optimized/utils/llvmMathExtras.h697/// Essentially, it is a floor operation across the domain of powers of two.COMMENT
MEDIUMkernels/optimized/utils/llvmMathExtras.h705/// Essentially, it is a ceil operation across the domain of powers of two.COMMENT
LOWextension/llm/custom_ops/custom_ops.py357 # workaround. Should we just return cache instead? But I am afraid thatCOMMENT
LOWextension/llm/custom_ops/custom_ops.py377 # workaround. Should we just return cache instead? But I am afraid thatCOMMENT
LOWextension/llm/custom_ops/custom_ops.py601 # no copies, just pass-throughCOMMENT
LOWextension/llm/custom_ops/custom_ops.py618 # Alias is logically a no-op – just pass them through.COMMENT
LOWextension/llm/export/export_passes.py135 # Ignore specified mask simply set the is_causal flag.COMMENT
MEDIUM.ci/scripts/gather_test_models.py121 # comprehensive E2E test of llava.COMMENT
MEDIUM…ripts/benchmark_tooling/analyze_benchmark_stability.py1245 """Generate a comprehensive summary report"""STRING
MEDIUMbackends/qualcomm/genai_pipeline/control_args.py270 # IPC endpoint the CI harness listens on for results.COMMENT
MEDIUMbackends/cuda/autotune/cuda_graph_timing.py267 # 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.h37// Single-pass, numerically-robust mean+variance via Chan et al.'s parallelCOMMENT
MEDIUM…s/transforms/test/test_decompose_channels_last_pass.py196# tests rather than the single-output _CASES harness.COMMENT
LOWbackends/vulkan/utils.py1051 # or non tensor argument. In this case, just return default storage andCOMMENT
MEDIUM…vulkan/runtime/graph/ops/impl/QuantizedLinearQCSNW.cpp282 // TODO(ssjia): Determine a more robust heuristic to determine when the coopCOMMENT
MEDIUMbackends/vulkan/runtime/graph/ops/impl/Q4gswLinear.cpp127// shape, but (8,8) is within 3% there and is robust acrossCOMMENT
LOWbackends/vulkan/_passes/tag_memory_meta_pass.py75 # Case where the arg node has not been touched yet; in this case, simply set it andCOMMENT
LOWbackends/arm/process_node.py168 # Get item nodes just add tensors, no node visitor is needed.COMMENT
MEDIUMbackends/arm/test/runner_utils.py415 # This is a hack since Q/DQ ops does not handle channels last input correctly: the simplest and most robustCOMMENT
LOWbackends/arm/operators/op_while.py76 # If we have more inputs than outputs, we can just add missing output tensors.COMMENT
MEDIUMbackends/arm/cmsis_pack/test/all_ops/gen_cproject.py183 # sets this; the bare-device harness sets it here. ALL_OPS_ETHOS_U activatesSTRING
LOWbackends/arm/tosa/utils.py94 # Already in the right shape we can just add it to the list.COMMENT
LOWbackends/arm/operator_support/ethos_u55_support.py115 # If we couldn't determine dtype, just return ok.COMMENT
MEDIUMbackends/arm/scripts/aot_arm_compiler.py781 # To create a bundled program, we first create every test cases from input. We leverage eager modelCOMMENT
LOWbackends/cadence/aot/compiler_utils.py197 # If x was quantized per-tensor, simply create a tensor out of the scalarCOMMENT
LOWbackends/mlx/builder/op_helpers.py153 # Both static - just return the sumCOMMENT
MEDIUMbackends/aoti/utils.h33// Map int32_t dtype to ExecuTorch ScalarType (robust version of hardcodedCOMMENT
MEDIUM…ntime/core/portable_type/c10/c10/util/llvmMathExtras.h692/// Essentially, it is a floor operation across the domain of powers of two.COMMENT
MEDIUM…ntime/core/portable_type/c10/c10/util/llvmMathExtras.h700/// Essentially, it is a ceil operation across the domain of powers of two.COMMENT
MEDIUM…source/tutorials_source/devtools-debugging-tutorial.py18# This tutorial will show a full end-to-end flow of how to utilize the Developer Tools to debug a modelCOMMENT
MEDIUM⚡…urce/tutorials_source/devtools-integration-tutorial.py20# This tutorial will show a full end-to-end flow of how to utilize the Developer Tools to profile a model.COMMENT
LOWdevtools/inspector/_inspector.py583 # If it's not a delegated op then we can just use the raw time valuesCOMMENT
MEDIUMexamples/qualcomm/qaihub_scripts/utils/export.py74 # leverage QNN pybind interface to retrieve tensor encodingsCOMMENT
MEDIUMexamples/qualcomm/qaihub_scripts/utils/export.py169 # leverage SimpleADB for model library conversionCOMMENT
MEDIUMexamples/qualcomm/qaihub_scripts/utils/export.py317 # leverage SimpleADB for e2e inferenceCOMMENT
MEDIUMexamples/qualcomm/util_scripts/cli.py112 # leverage QNN pybind interface to retrieve tensor encodingsCOMMENT
MEDIUMexamples/qualcomm/util_scripts/cli.py363 # leverage SimpleADB for e2e inferenceCOMMENT
MEDIUMexamples/models/llama/install_requirements.sh12# Install lm-eval for Model Evaluation with lm-evalution-harness.COMMENT
MEDIUMexamples/models/llama/export_llama_lib.py99# All models that leverage the transformer architecture defined in llama_transformer.py.COMMENT
MEDIUMexamples/models/llama/eval_llama_lib.py363 # See https://github.com/EleutherAI/lm-evaluation-harness/pull/1998/filesCOMMENT
LOW…/models/llama/source_transformation/custom_kv_cache.py187 # When returning float values we just use the last valueCOMMENT
MEDIUMexamples/devtools/scripts/export_bundled_program.py94 # To create a bundled program, we first create every test cases from input. We leverage eager modelCOMMENT
MEDIUM.github/workflows/test-backend-cortex-m.yml35 # Arm's test harness, and importing it pulls in around 350 arm modules --COMMENT
LOW⚡.github/scripts/propose_ghstack_orig_pr.py91 # If there's more than one Differential Revision, let's just return emptyCOMMENT
LOW.github/scripts/trymerge.py737 # so let's just use main insteadSTRING
LOWexir/lowered_backend_module.py716 # the delegate will just return the result of theCOMMENT
LOWexir/backend/backend_api.py799 # this edge program wasn't partitioned, so we can just return it as isCOMMENT
LOWexir/serde/serialize.py133 # Replace the edge op with the original ATen op so that we can just call intoCOMMENT
LOWexir/serde/serialize.py496 # Replace the edge op with the original ATen op so that we can just call intoCOMMENT
LOWexir/serde/schema.py217 # (ex. cond, map) where single tensor returns will just return a singleCOMMENT
MEDIUMexport/tests/test_export_session.py590 # Create comprehensive recipesCOMMENT
Modern AI Meta-Vocabulary24 hits · 67 pts
SeverityFileLineSnippetContext
MEDIUMbackends/qualcomm/tests/rework/src/feature.py473 # runtime_option: scaffold — GPUruntime perf hint not yet wired in C++COMMENT
MEDIUMbackends/qualcomm/tests/rework/src/feature.py488 # runtime_option: scaffold — LPAI runtime perf hint not yet wired in C++COMMENT
MEDIUMbackends/vulkan/_passes/squeeze_unsqueeze_inputs.py45 # Prefer not to introduce additional orchestration ops by defaultCOMMENT
MEDIUMdocs/source/success-stories.md223[Read the benchmark →](https://pytorch.org/blog/fast-ondevice-agentic-ai-with-executorch/)CODE
MEDIUMcodegen/gen.py142# and the scaffolding to call into the dispatcher from these functions.STRING
MEDIUM…es/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py413 # get embedding modelCOMMENT
MEDIUM…utils/llm_utils/tokenizers_/tokenization_utils_base.py1643 see the RAG section of the [chat templating guide](https://huggingface.co/docs/transformers/main/en/chatSTRING
MEDIUMexamples/models/qwen3_5_moe/export.py1080 # The wrapper.cpp is pure kernel launch orchestration — no heavy compute.COMMENT
MEDIUMexamples/llm_server/python/openai_transcript.py35# The assistant header that precedes a turn's generation scaffold + content.COMMENT
MEDIUMexamples/llm_server/python/openai_transcript.py49# A scaffold region is exactly empty (history strips it before the last user) orCOMMENT
MEDIUMexamples/llm_server/python/openai_transcript.py157 # No generation scaffold: the worker prefills nothing ahead of theCOMMENT
MEDIUMexamples/llm_server/python/openai_transcript.py340 # Splice ids and normalize each turn's scaffold; None => ambiguous region.COMMENT
MEDIUMexamples/llm_server/python/protocol.py41 # Optional prior-turn reasoning (chain-of-thought). MirrorsCOMMENT
MEDIUMexamples/llm_server/python/chat_template.py118 # Cache of the (deterministic) generation scaffold per resolved mode, soCOMMENT
MEDIUMexamples/llm_server/python/serving_chat.py469 # possibly a clamp to the context window) — trust it over the token-countCOMMENT
MEDIUMexamples/llm_server/python/serving_chat.py658 # The generation scaffold the worker will prefill ahead of this turn'sCOMMENT
MEDIUMexamples/llm_server/python/serving_chat.py661 # reproduces the exact resident scaffold even if the mode changes betweenCOMMENT
MEDIUMexamples/llm_server/python/worker_client.py53 # stop) or "length" (ran to max_new, possibly clamped to the context window).COMMENT
MEDIUMexamples/llm_server/python/tests/test_sessions.py398 # A client-injected assistant turn we never generated (few-shot exemplar /COMMENT
MEDIUMexamples/llm_server/python/tests/test_contract.py448# context window, so the token-count heuristic can't tell a real stop from aCOMMENT
MEDIUM…s/llm_server/python/tests/test_warm_resume_scaffold.py167 # History stripped the scaffold; the fix inserts exactly one copy.COMMENT
MEDIUM…s/llm_server/python/tests/test_warm_resume_scaffold.py199 # (wrong scaffold) and not append a second one (double-insert).COMMENT
MEDIUM…s/llm_server/python/tests/test_warm_resume_scaffold.py731# --- Harmony/ATEM thinking turns (no generation scaffold) ------------------COMMENT
MEDIUM…s/llm_server/python/tests/test_warm_resume_scaffold.py1284 # on them, so a template whose post-header scaffold depends on tools gets theCOMMENT
Example Usage Blocks22 hits · 33 pts
SeverityFileLineSnippetContext
LOWextension/kernel_util/make_boxed_from_unboxed_functor.h13/// Example usage:COMMENT
LOW.ci/scripts/detect_ci.sh7# Usage:COMMENT
LOW.ci/scripts/build-cadence-xtensa.sh16# Usage:COMMENT
LOW.ci/scripts/cuda_benchmark_from_e2e.sh18# Usage:COMMENT
LOW.ci/scripts/setup-xtensa-tools.sh17# Usage:COMMENT
LOWbackends/apple/metal/tests/run_metal_test.sh9# Usage:COMMENT
LOWbackends/xnnpack/utils/gen_xnnpack_constants.sh8# Usage:COMMENT
LOWbackends/arm/cmsis_pack/scripts/build_pack.sh14# Usage:COMMENT
LOW⚡backends/arm/cmsis_pack/scripts/copy_sources.sh14# Usage:COMMENT
LOWbackends/arm/scripts/utils.sh17# Usage:COMMENT
LOW…kends/arm/scripts/build_executor_runner_vgf_android.sh10# Usage:COMMENT
LOWbackends/aoti/slim/factory/from_etensor.h34/// Example usage:COMMENT
LOWdevtools/scripts/profile_model.sh15# Usage:COMMENT
LOWdevtools/scripts/benchmark_android.sh13# Usage:COMMENT
LOW…qualcomm/oss_scripts/llama/train/config/lr_config.yaml24# Usage:COMMENT
LOWexamples/models/voxtral_realtime/run_rocm_e2e.sh4# Usage:COMMENT
LOWexamples/models/voxtral_tts/run_cuda_e2e.sh7# Usage:COMMENT
LOWexamples/arduino/build_arduino_library.sh11# Usage:COMMENT
LOWexamples/export/qat_pipeline_split/run.sh13# Usage:COMMENT
LOWexamples/espressif/build.sh15# Usage:COMMENT
LOWscripts/test_ios.sh8# Usage:COMMENT
LOW.github/scripts/trigger_cuda_benchmark.sh12# Usage:COMMENT
AI Response Leakage4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHbackends/vulkan/runtime/graph/ops/impl/BatchNorm.cpp48 // In this implementation, we pack the weights along the x dimension, andCOMMENT
HIGH…urce/examples-end-to-end-to-lower-model-to-delegate.md53# The submodule runs in a specific backend. In this example, `BackendWithCompilerDemo` backendCOMMENT
HIGHexamples/devtools/CMakeLists.txt9# support. In this example we link devtools and bundled_program libraries intoCOMMENT
HIGHexir/backend/test/test_backends_lifted.py515 # the submodule runs in a specific backend. In this example, `BackendWithCompilerDemo` backendCOMMENT
Slop Phrases8 hits · 10 pts
SeverityFileLineSnippetContext
LOWextension/llm/export/builder.py127 # make sure to re-export this graph module to persist any changes. SeeCOMMENT
LOWruntime/core/exec_aten/util/scalar_type_util.h510 // Don't forget to extend this when adding new QInt typesCOMMENT
LOWruntime/core/exec_aten/util/scalar_type_util.h524 // Don't forget to extend this when adding new QInt typesCOMMENT
LOWruntime/core/exec_aten/util/scalar_type_util.h538 // Don't forget to extend this when adding new QInt typesCOMMENT
MEDIUMdevtools/inspector/tests/inspector_test.py1728 """A simple test model for demonstration purposes."""STRING
MEDIUM…es/qualcomm/oss_scripts/llama/assets/samples/text.json10 "content": "**Example:** \"Guessing Game\"\n\n**Objective:** To create a simple program that asks the user to guCODE
LOW…utils/llm_utils/tokenizers_/tokenization_utils_fast.py715 # make sure to be foward compatibleSTRING
LOWexir/backend/backend_api.py434 # we make sure to remove them after we finished partition_and_lowerCOMMENT
TODO Padding8 hits · 9 pts
SeverityFileLineSnippetContext
LOWextension/data_loader/mman_windows.cpp101 // TODO: implementCOMMENT
LOWbackends/xnnpack/quantizer/xnnpack_quantizer.py398 # TODO: implement the support for None to be canceling out previous annotationsCOMMENT
LOWbackends/arm/quantizer/arm_quantizer.py1160 # TODO: implement the support for None to be canceling out previous annotationsCOMMENT
LOWbackends/cortex_m/ops/operators.py1678 # TODO: implement dilation != 1.COMMENT
LOW⚡devtools/inspector/_inspector.py1536 # TODO: implementSTRING
LOW⚡devtools/inspector/_inspector.py1543 # TODO: implementSTRING
LOWexamples/models/llava/model.py217 # TODO: implement _upsample_bicubic_aa.out in portable kernel library.COMMENT
LOWexir/tests/test_quantization.py87 # TODO: implement torch.ops.quantized_decomposed.add_relu.outCOMMENT
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMbackends/cadence/aot/fuse_ops.py425CODE
MEDIUMbackends/cadence/aot/fuse_ops.py427CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWexamples/models/llama/static_attention.py1645 def helper(m):CODE