AI Slop Code RIsk Monitor

pytorch/pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

13.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pytorch/pytorch, a Python project with 104,089 GitHub stars. SynthScan examined 4,629,659 lines of code across 11450 source files, recording 63916 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 13.8 (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.

13.8
Adjusted Signal
13.8
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
104.1K
Stars
Python
Language
4.6M
Lines of Code
11.4K
Files
63.9K
Pattern Hits
2026-10-12
Scan Date
0.17
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 37.9/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.5/100 · LOW

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

Agent Over-Engineering Ratio 35.0/100 · MEDIUM

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

PR Review Velocity Impact 57.1/100 · HIGH

Which changes need focused human review? 63916 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 137HIGH 1761MEDIUM 2183LOW 59835

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 63916 distinct pattern matches across 27 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 Identifiers38214 hits · 28609 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py139def regenerate_clangtidy_files():CODE
LOW.spin/cmds.py251def _check_linter_python_versions():CODE
LOW.spin/cmds.py504def regenerate_github_workflows():CODE
LOWtools/gen_vulkan_spv.py157def extract_leading_whitespace(line: str) -> str:CODE
LOWtools/render_junit.py52def convert_junit_to_testcases(xml: JUnitXml | TestSuite) -> list[TestCase]: # type: ignore[no-any-unimported]CODE
LOWtools/cpython_diff_sync.py214def reverse_apply_to_pristine(py_path: Path, diff_path: Path) -> bytes:CODE
LOWtools/create_worktree.py108def clone_submodule_recursive(CODE
LOWtools/packaging/build_wheel.py53def get_supported_python_versions() -> list[str]:CODE
LOWtools/packaging/build_wheel.py74def _find_manylinux_interpreters() -> list[str]:CODE
LOWtools/experimental/torchfuzz/test_determinism.py71def test_deterministic_output():CODE
LOWtools/experimental/torchfuzz/ops_fuzzer.py30def _get_template_filtered_operators(CODE
LOWtools/experimental/torchfuzz/visualize_graph.py134def visualize_operation_graph(CODE
LOWtools/experimental/torchfuzz/visualize_graph.py157def operation_graph_to_networkx(graph: OperationGraph) -> None:CODE
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py485def _print_operation_distribution(results: list[FuzzerResult]) -> None:CODE
LOWtools/experimental/torchfuzz/tensor_fuzzer.py189def _compute_contiguous_strides(size: tuple[int, ...]) -> list[int]:CODE
LOWtools/experimental/torchfuzz/tensor_fuzzer.py212def _compute_non_contiguous_dense_strides(size: tuple[int, ...]) -> list[int]:CODE
LOWtools/experimental/torchfuzz/tensor_fuzzer.py303def _compute_storage_size_needed(CODE
LOWtools/experimental/torchfuzz/tensor_fuzzer.py435def fuzz_non_contiguous_dense_tensor(CODE
LOWtools/experimental/torchfuzz/fuzzer.py27def _parse_supported_ops_with_weights(spec: str) -> tuple[list[str], dict[str, float]]:CODE
LOWtools/experimental/torchfuzz/fuzzer.py56def _resolve_generate_only_path(CODE
LOW⚡tools/experimental/torchfuzz/test_streams_template.py31 def test_template_inherits_default_ops(self):CODE
LOW⚡tools/experimental/torchfuzz/test_streams_template.py37 def test_template_uses_backward_check(self):CODE
LOW⚡tools/experimental/torchfuzz/test_streams_template.py47 def test_codegen_creates_streams(self):CODE
LOW⚡tools/experimental/torchfuzz/test_streams_template.py51 def test_codegen_has_stream_context(self):CODE
LOW⚡tools/experimental/torchfuzz/test_streams_template.py55 def test_codegen_has_final_sync(self):CODE
LOW⚡tools/experimental/torchfuzz/test_streams_template.py63 def test_codegen_has_backward(self):CODE
LOW⚡tools/experimental/torchfuzz/test_streams_template.py67 def test_codegen_has_requires_grad(self):CODE
LOW⚡tools/experimental/torchfuzz/test_streams_template.py72 def test_codegen_cross_stream_sync(self):CODE
LOWtools/experimental/torchfuzz/test_streams_template.py84 def test_codegen_event_based_sync(self):CODE
LOWtools/experimental/torchfuzz/test_streams_template.py96 def test_codegen_deterministic(self):CODE
LOWtools/experimental/torchfuzz/test_streams_template.py102 def test_codegen_is_valid_python(self):CODE
LOWtools/experimental/torchfuzz/codegen.py383def convert_graph_to_python_code(CODE
LOWtools/experimental/torchfuzz/codegen.py555def generate_simple_operation_code(CODE
LOWtools/experimental/torchfuzz/type_promotion.py106def get_promotion_table_for_strings() -> dict:CODE
LOWtools/experimental/torchfuzz/type_promotion.py162def get_scalar_promotion_pairs(CODE
LOWtools/experimental/torchfuzz/operators/registry.py38def _concrete_operator_classes(module: ModuleType) -> list[type[Operator]]:CODE
LOWtools/experimental/torchfuzz/operators/registry.py72 def _register_default_operators(self):CODE
LOW⚡tools/experimental/torchfuzz/operators/registry.py148def set_operator_weight_by_torch_op(torch_op_name: str, weight: float) -> None:CODE
LOWtools/experimental/torchfuzz/operators/registry.py159def set_operator_weights_by_torch_op(weights: dict[str, float]) -> None:CODE
LOWtools/experimental/torchfuzz/cuda/_codegen.py579 def _generate_random_placement(self, tensor_size: tuple[int, ...]) -> str:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py33 def test_integer_trunc_replaces_zero_divisors(self) -> None:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py41 def test_integer_floor_replaces_zero_divisors(self) -> None:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py49 def test_float_rounding_mode_preserves_divisor(self) -> None:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py56 def test_default_mode_preserves_integer_divisor(self) -> None:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py70 def test_expand_does_not_match_exp(self) -> None:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py76 def test_exp_does_not_match_expand(self) -> None:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py82 def test_unsqueeze_does_not_match_squeeze(self) -> None:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py88 def test_squeeze_does_not_match_unsqueeze(self) -> None:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py94 def test_registry_key_requires_exact_match(self) -> None:CODE
LOW⚡tools/experimental/torchfuzz/tests/test_ops_fuzzer.py100 def test_partial_registry_key_does_not_match(self) -> None:CODE
LOW…mental/torchfuzz/tests/test_matrix_multiply_codegen.py31 def test_matmul_emits_no_cast(self) -> None:CODE
LOW⚡…mental/torchfuzz/tests/test_matrix_multiply_codegen.py51 def test_no_cast_at_any_float_dtype(self) -> None:CODE
LOW⚡…mental/torchfuzz/tests/test_matrix_multiply_codegen.py59 def test_inputs_are_specified_at_the_output_dtype(self) -> None:CODE
LOW⚡…mental/torchfuzz/tests/test_matrix_multiply_codegen.py68 def test_input_count_is_still_validated(self) -> None:CODE
LOWtools/native_aot/build_stage2.py661def _refuse_unshipped_rebuilds(before: dict[str, tuple[int, int]]) -> None:CODE
LOWtools/native_aot/build_stage2.py841def _invalidate_stale_include() -> None:CODE
LOWtools/native_aot/toolchains.py815def _assert_link_exts_are_exportable(registry: dict[str, Toolchain]) -> None:CODE
LOWtools/native_aot/export.py416def _check_no_orphan_artifacts(out_dir: str, specs) -> None:CODE
LOWtools/native_aot/export.py572def build_arches_from_cuda_arch_list(arch_list: str) -> list[str]:CODE
LOWtools/native_aot/export.py600def archs_from_cuda_arch_list(arch_list: str) -> list[str]:CODE
38154 more matches not shown…
Over-Commented Block5951 hits · 5530 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# PyTorch build overviewCOMMENT
LOWCMakeLists.txt21# 4. Dependencies (cmake/Dependencies.cmake): find or build the third-partyCOMMENT
LOWCMakeLists.txt101# "torch" so the C++ distribution lands at torch/lib and torch/include, as theCOMMENT
LOWCMakeLists.txt761 #COMMENT
LOWCMakeLists.txt901COMMENT
LOWCMakeLists.txt1121endif()COMMENT
LOWpyproject.toml1# Package ######################################################################COMMENT
LOWpyproject.toml61# Force the Ninja generator on Windows. scikit-build-core otherwise defaults toCOMMENT
LOWpyproject.toml81# Other than CMAKE_GENERATOR above (win32), cmake.define is intentionally absentCOMMENT
LOWpyproject.toml101# includes below restore all of them.COMMENT
LOWpyproject.toml161packages = ["torch", "torchgen", "functorch"]COMMENT
LOWpyproject.toml301# Editable installs use redirect mode: Python files come from the source tree,COMMENT
LOWsetup.py1# PyTorch is built with scikit-build-core through the PEP 517 interfaceCOMMENT
LOW.lintrunner.toml601]COMMENT
LOWtools/git_add_generated_dirs.sh1#!/bin/shCOMMENT
LOWtools/build_with_debinfo.py1#!/usr/bin/env python3COMMENT
LOWtools/git_reset_generated_dirs.sh1#!/bin/shCOMMENT
LOWtools/iwyu/run.sh1# Run include-what-you-use on a file or folderCOMMENT
LOWtools/native_aot/build_stage2.py421 # 3.14t and shipped a kernel-free 3.14t CUDA wheel. What has no wheel isCOMMENT
LOWtools/native_aot/gen_aot_lib.py61COMMENT
LOWtools/native_aot/gen_aot_lib.py741COMMENT
LOWtools/native_aot/gen_aot_lib.py1021 if not os.path.isdir(args.artifacts_dir):COMMENT
LOWtools/native_aot/toolchains.py61COMMENT
LOWtools/test/test_stable_shim_usage_linter.py141 shim_functions = get_shim_functions([sample_shim])COMMENT
LOWtools/test/stable_shim_usage_linter_data/sample_usage.h141// Case 18: Correct, fallback function version is lower than current block, target still equal.COMMENT
LOWtools/test/stable_shim_usage_linter_data/sample_shim.h1#ifndef SAMPLE_SHIM_HCOMMENT
LOWtools/test/stable_shim_usage_linter_data/sample_shim.h21AOTI_TORCH_EXPORT void old_function_2(void* ptr);COMMENT
LOWtools/test/stable_shim_usage_linter_data/sample_shim.h41AOTI_TORCH_EXPORT int legacy_fallback(int arg);COMMENT
LOWtools/test/stable_shim_usage_linter_data/sample_shim.h101COMMENT
LOWtools/test/header_only_linter_testdata/umbrella.h1#pragma onceCOMMENT
LOWtools/linter/adapters/flake8_linter.py1# /// scriptCOMMENT
LOWtools/linter/adapters/flake8_linter.py201 # "B901": `return x` inside a generatorCOMMENT
LOWtools/linter/adapters/raw_throw_linter.py41# does not cover. An empty prefix means the justification holds everywhere. AddCOMMENT
LOWtools/linter/adapters/raw_throw_linter.py61 # Reach the interpreter as a Python type c10 has no equivalent of, soCOMMENT
LOWtools/linter/adapters/raw_throw_linter.py81 "RecursiveMethodCallError": "torch/csrc/jit/",COMMENT
LOWtools/linter/adapters/pyproject_linter.py161 return [COMMENT
LOWtools/linter/adapters/pyproject_linter.py181 # }COMMENT
LOWtools/linter/adapters/ruff_linter.py161COMMENT
LOWtools/linter/adapters/pyrefly_linter.py1# /// scriptCOMMENT
LOWtools/linter/adapters/pyrefly_linter.py21# "optree==0.17.0",COMMENT
LOWtools/autograd/load_derivatives.py341 "forward definition of gradient as element_wise but it does not "COMMENT
LOWtools/autograd/load_derivatives.py561 r.name for r in f.func.returnsCOMMENT
LOWtools/autograd/gen_python_functions.py1# Generates Python bindings for ATen functionsCOMMENT
LOWtools/autograd/gen_python_functions.py21#COMMENT
LOWtools/autograd/gen_python_functions.py1181 return sort_overloads(grouped, symint=symint)COMMENT
LOWtools/autograd/gen_python_functions.py1201# If they have different number of parameters then they are not ambiguous - butCOMMENT
LOWtools/autograd/gen_autograd_functions.py81void will_release_variables() override {COMMENT
LOWtools/autograd/gen_variable_type.py1# Generates VariableType.h/cppCOMMENT
LOWtools/autograd/gen_variable_type.py421# NOTE [ TensorImpl and Storage Pointer Sanity Checks ]COMMENT
LOWtools/autograd/gen_variable_type.py1001 # NotImplemented kernel to set grad_fn to be NotImplemented, so that forwardCOMMENT
LOWtools/autograd/gen_trace_type.py241# This replacement implemented in-place with minimum modifications ofCOMMENT
LOWtools/autograd/derivatives.yaml1# Defines derivative formulas and Python signatures of methods on VariableCOMMENT
LOWtools/autograd/derivatives.yaml21# of how to register separate derivates for different dispatch keys).COMMENT
LOWtools/autograd/derivatives.yaml41# - If that argument is differentiable, in the sense that a gradient with respectCOMMENT
LOWtools/autograd/derivatives.yaml61# are in scope:COMMENT
LOWtools/autograd/derivatives.yaml81#COMMENT
LOWtools/autograd/derivatives.yaml101# (NB: if your function computes gradient for a list of tensors,COMMENT
LOWtools/autograd/derivatives.yaml121# Another interpretation of this expression would read as `var_0` is neededCOMMENT
LOWtools/autograd/derivatives.yaml141#COMMENT
LOWtools/autograd/derivatives.yaml161# (implemented using zeros_like). These gradients are (hopefully) notCOMMENT
5891 more matches not shown…
Unused Imports5415 hits · 4702 pts
SeverityFileLineSnippetContext
LOWtools/regenerate_cpython_diffs.py21CODE
LOWtools/extract_scripts.py3CODE
LOWtools/nvcc_fix_deps.py16CODE
LOWtools/gen_vulkan_spv.py3CODE
LOWtools/gen_cupti_stubs.py24CODE
LOWtools/embed_libomp_macos.py16CODE
LOWtools/render_junit.py3CODE
LOWtools/strtobool.py3CODE
LOWtools/generate_torch_version.py1CODE
LOWtools/cpython_diff_sync.py34CODE
LOWtools/build_with_debinfo.py17CODE
LOWtools/nightly.py49CODE
LOWtools/experimental/torchfuzz/__init__.py4CODE
LOWtools/experimental/torchfuzz/__init__.py4CODE
LOWtools/experimental/torchfuzz/__init__.py4CODE
LOWtools/experimental/torchfuzz/__init__.py4CODE
LOWtools/experimental/torchfuzz/__init__.py4CODE
LOWtools/experimental/torchfuzz/__init__.py4CODE
LOWtools/experimental/torchfuzz/__init__.py12CODE
LOWtools/experimental/torchfuzz/__init__.py12CODE
LOWtools/experimental/torchfuzz/__init__.py12CODE
LOWtools/experimental/torchfuzz/__init__.py13CODE
LOWtools/experimental/torchfuzz/__init__.py13CODE
LOWtools/experimental/torchfuzz/__init__.py13CODE
LOWtools/experimental/torchfuzz/__init__.py14CODE
LOWtools/experimental/torchfuzz/__init__.py14CODE
LOWtools/experimental/torchfuzz/__init__.py14CODE
LOW…ols/experimental/torchfuzz/operators/loss_functions.py18CODE
LOWtools/experimental/torchfuzz/operators/bitwise.py13CODE
LOWtools/experimental/torchfuzz/operators/logical.py8CODE
LOWtools/experimental/torchfuzz/operators/reduction.py33CODE
LOWtools/experimental/torchfuzz/operators/activations.py33CODE
LOWtools/experimental/torchfuzz/operators/__init__.py3CODE
LOWtools/experimental/torchfuzz/operators/__init__.py4CODE
LOWtools/experimental/torchfuzz/operators/__init__.py5CODE
LOWtools/experimental/torchfuzz/operators/__init__.py6CODE
LOWtools/experimental/torchfuzz/operators/__init__.py7CODE
LOWtools/experimental/torchfuzz/operators/__init__.py8CODE
LOWtools/experimental/torchfuzz/operators/__init__.py9CODE
LOWtools/experimental/torchfuzz/operators/__init__.py10CODE
LOWtools/experimental/torchfuzz/operators/__init__.py10CODE
LOWtools/experimental/torchfuzz/operators/__init__.py10CODE
LOWtools/experimental/torchfuzz/operators/__init__.py10CODE
LOWtools/experimental/torchfuzz/operators/__init__.py10CODE
LOWtools/experimental/torchfuzz/operators/__init__.py10CODE
LOWtools/experimental/torchfuzz/operators/__init__.py10CODE
LOWtools/experimental/torchfuzz/operators/__init__.py10CODE
LOWtools/experimental/torchfuzz/operators/__init__.py20CODE
LOWtools/experimental/torchfuzz/operators/__init__.py20CODE
LOWtools/experimental/torchfuzz/operators/__init__.py20CODE
LOWtools/experimental/torchfuzz/operators/__init__.py20CODE
LOWtools/experimental/torchfuzz/operators/__init__.py26CODE
LOWtools/experimental/torchfuzz/operators/__init__.py26CODE
LOWtools/experimental/torchfuzz/operators/__init__.py26CODE
LOWtools/experimental/torchfuzz/operators/__init__.py26CODE
LOWtools/experimental/torchfuzz/operators/__init__.py26CODE
LOWtools/experimental/torchfuzz/operators/__init__.py26CODE
LOWtools/experimental/torchfuzz/operators/__init__.py26CODE
LOWtools/experimental/torchfuzz/operators/__init__.py26CODE
LOWtools/experimental/torchfuzz/operators/__init__.py36CODE
5355 more matches not shown…
Empty Error Handlers824 hits · 3950 pts
SeverityFileLineSnippetContext
HIGH.spin/cmds.py30except AttributeError:CODE
HIGHtools/generate_torch_version.py30except Exception:CODE
HIGHtools/create_worktree.py133except OSError:CODE
HIGHtools/experimental/torchfuzz/visualize_graph.py35except (subprocess.CalledProcessError, FileNotFoundError):CODE
HIGHtools/experimental/torchfuzz/multi_process_fuzzer.py161except ValueError:CODE
HIGHtools/experimental/torchfuzz/fuzzer.py218except (KeyError, ValueError):CODE
HIGHtools/native_aot/build_stage2.py234except ValueError:CODE
HIGHtools/native_aot/build_stage2.py240except ValueError:CODE
HIGHtools/native_aot/gen_aot_lib.py708except OSError:CODE
HIGHtools/setup_helpers/cupti.py75except ImportError:CODE
HIGH…ing/target_determination/heuristics/mentioned_in_pr.py53except Exception:CODE
HIGHtools/torchtlx/_probe.py66except md.PackageNotFoundError:CODE
HIGH…age_plugins_package/src/coverage_plugins/jit_plugin.py68except OSError:CODE
HIGHtools/stats/monitor.py90except ModuleNotFoundError:CODE
HIGHtools/stats/monitor.py97except ModuleNotFoundError:CODE
HIGHtools/stats/monitor.py563except pynvml.NVMLError:CODE
HIGHtools/stats/monitor.py569except amdsmi.AmdSmiException:CODE
HIGHtools/stats/monitor.py479except amdsmi.AmdSmiException:CODE
HIGHtools/stats/monitor.py484except pynvml.NVMLError:CODE
HIGHtools/stats/monitor.py499except Exception:CODE
HIGHtools/stats/monitor.py524except Exception:CODE
HIGHtools/stats/monitor.py542except Exception:CODE
HIGHtools/stats/upload_test_stats.py98except ValueError:CODE
HIGH.ci/lumen_cli/tests/test_utils.py44except Exception:CODE
HIGH.ci/lumen_cli/tests/test_app.py22except SystemExit:CODE
HIGH.ci/libtorch/extract_libtorch_from_wheel.py318except Exception:CODE
HIGH.ci/wheel/linux/build_env_setup.py218except FileNotFoundError:CODE
HIGHtest/test_mps.py8669except Exception as e:CODE
HIGHtest/test_python_dispatch.py1735except RuntimeError:CODE
HIGHtest/test_linalg.py1719except np.linalg.LinAlgError:CODE
HIGHtest/test_linalg.py10010except (FileNotFoundError, PermissionError):CODE
HIGHtest/test_linalg.py10021except KeyError:CODE
HIGHtest/conftest.py420except (AttributeError, TypeError, ValueError):CODE
HIGHtest/test_logging.py326except ChildProcessError:CODE
HIGHtest/test_logging.py409except ChildProcessError:CODE
HIGHtest/test_type_promotion.py501except NotImplementedError:CODE
HIGHtest/test_proxy_tensor.py1622except GuardOnDataDependentSymNode:CODE
HIGHtest/test_torch.py10438except RuntimeError:CODE
HIGHtest/test_tensor_creation_ops.py4474except Exception:CODE
HIGHtest/test_jit_fuser_te.py2920except Exception as e:CODE
HIGHtest/test_jit_fuser_te.py2940except Exception as e:CODE
HIGHtest/test_cuda.py7742except RuntimeError as e:CODE
HIGHtest/test_cuda.py421except RuntimeError as e:CODE
HIGHtest/test_cuda.py6184except BaseException:CODE
HIGHtest/test_cuda.py650except RuntimeError as e:CODE
HIGHtest/run_test.py1291except (ImportError, RuntimeError):CODE
HIGHtest/test_xpu.py2999except BaseException:CODE
HIGHtest/test_ops.py3205except torch._subclasses.fake_tensor.UnsupportedOperatorException:CODE
HIGHtest/test_ops.py3057except torch._subclasses.fake_tensor.UnsupportedFakeTensorException:CODE
HIGHtest/test_ops.py3059except torch._subclasses.fake_tensor.UnsupportedOperatorException:CODE
HIGHtest/test_autograd.py3224except StopIteration:CODE
HIGHtest/test_autograd.py3236except StopIteration:CODE
HIGHtest/test_autograd.py3276except StopIteration:CODE
HIGHtest/test_autograd.py3288except StopIteration:CODE
HIGHtest/test_overrides.py998except TypeError:CODE
HIGHtest/test_cpp_extensions_jit.py1057except RuntimeError:CODE
HIGHtest/test_cpp_extensions_jit.py1489except RuntimeError:CODE
HIGHtest/test_spectral_ops.py38except ModuleNotFoundError:CODE
HIGHtest/test_fx.py5369except TypeError as e:CODE
HIGHtest/test_fx.py5964except ValueError:CODE
764 more matches not shown…
Deep Nesting4268 hits · 3153 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py116CODE
LOW.spin/cmds.py349CODE
LOWtools/regenerate_cpython_diffs.py91CODE
LOWtools/extract_scripts.py52CODE
LOWtools/clean.py7CODE
LOWtools/gen_vulkan_spv.py315CODE
LOWtools/gen_vulkan_spv.py376CODE
LOWtools/stale_issues.py12CODE
LOWtools/stale_issues.py87CODE
LOWtools/gen_cupti_stubs.py114CODE
LOWtools/embed_libomp_macos.py28CODE
LOWtools/render_junit.py62CODE
LOWtools/generate_torch_version.py51CODE
LOWtools/cpython_diff_sync.py228CODE
LOWtools/download_mnist.py40CODE
LOWtools/create_worktree.py187CODE
LOWtools/nightly.py891CODE
LOWtools/nightly.py1160CODE
LOWtools/nightly.py320CODE
LOWtools/experimental/torchfuzz/test_determinism.py71CODE
LOWtools/experimental/torchfuzz/ops_fuzzer.py245CODE
LOWtools/experimental/torchfuzz/visualize_graph.py39CODE
LOWtools/experimental/torchfuzz/visualize_graph.py157CODE
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py83CODE
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py217CODE
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py517CODE
LOWtools/experimental/torchfuzz/tensor_fuzzer.py98CODE
LOWtools/experimental/torchfuzz/tensor_fuzzer.py212CODE
LOWtools/experimental/torchfuzz/tensor_fuzzer.py319CODE
LOWtools/experimental/torchfuzz/tensor_fuzzer.py483CODE
LOWtools/experimental/torchfuzz/fuzzer.py79CODE
LOWtools/experimental/torchfuzz/fuzzer.py277CODE
LOWtools/experimental/torchfuzz/codegen.py555CODE
LOWtools/experimental/torchfuzz/codegen.py210CODE
LOW…s/experimental/torchfuzz/operators/tensor_pointwise.py61CODE
LOWtools/experimental/torchfuzz/operators/layout.py192CODE
LOWtools/experimental/torchfuzz/operators/constant.py46CODE
LOWtools/experimental/torchfuzz/cuda/_codegen.py163CODE
LOWtools/experimental/torchfuzz/cuda/_codegen.py410CODE
LOWtools/experimental/torchfuzz/cuda/_codegen.py593CODE
LOWtools/native_aot/build_stage2.py177CODE
LOWtools/native_aot/build_stage2.py782CODE
LOWtools/native_aot/gen_aot_lib.py291CODE
LOWtools/native_aot/gen_aot_lib.py520CODE
LOWtools/native_aot/gen_aot_lib.py953CODE
LOWtools/native_aot/toolchains.py283CODE
LOWtools/test/test_gen_backend_stubs.py27CODE
LOWtools/test/test_native_aot_tools.py177CODE
LOWtools/test/test_native_aot_tools.py294CODE
LOWtools/test/test_native_aot_tools.py475CODE
LOWtools/test/test_native_aot_tools.py1108CODE
LOWtools/test/test_native_aot_tools.py2980CODE
LOWtools/test/test_native_aot_tools.py3521CODE
LOWtools/test/test_native_aot_tools.py4125CODE
LOWtools/test/test_native_aot_tools.py4700CODE
LOWtools/test/test_native_aot_tools.py4738CODE
LOWtools/test/test_native_aot_tools.py5161CODE
LOWtools/test/test_native_aot_tools.py5219CODE
LOWtools/test/test_native_aot_tools.py6485CODE
LOWtools/test/test_native_aot.py114CODE
4208 more matches not shown…
Decorative Section Separators947 hits · 2876 pts
SeverityFileLineSnippetContext
MEDIUMtools/experimental/torchfuzz/codegen.py310# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/codegen.py312# ---------------------------------------------------------------------------COMMENT
MEDIUM…ols/experimental/torchfuzz/operators/loss_functions.py49# ---------------------------------------------------------------------------COMMENT
MEDIUM…ols/experimental/torchfuzz/operators/loss_functions.py51# ---------------------------------------------------------------------------COMMENT
MEDIUM…ols/experimental/torchfuzz/operators/loss_functions.py99# ---------------------------------------------------------------------------COMMENT
MEDIUM…ols/experimental/torchfuzz/operators/loss_functions.py101# ---------------------------------------------------------------------------COMMENT
MEDIUM…ols/experimental/torchfuzz/operators/loss_functions.py215# ---------------------------------------------------------------------------COMMENT
MEDIUM…ols/experimental/torchfuzz/operators/loss_functions.py217# ---------------------------------------------------------------------------COMMENT
MEDIUM…ols/experimental/torchfuzz/operators/loss_functions.py250# ---------------------------------------------------------------------------COMMENT
MEDIUM…ols/experimental/torchfuzz/operators/loss_functions.py252# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/bitwise.py66# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/bitwise.py68# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/bitwise.py185# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/bitwise.py187# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/bitwise.py205# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/bitwise.py207# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/bitwise.py220# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/bitwise.py222# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/logical.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/logical.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/logical.py83# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/logical.py85# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/logical.py103# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/logical.py105# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py210# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py212# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py502# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py504# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py629# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/reduction.py631# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/activations.py44# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/activations.py51# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/activations.py109# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/activations.py111# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py107# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py109# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py269# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py271# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py317# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py319# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py356# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py358# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py410# ---------------------------------------------------------------------------COMMENT
MEDIUM…ls/experimental/torchfuzz/operators/tensor_creation.py412# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/comparison.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/comparison.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/comparison.py147# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/comparison.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/comparison.py207# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/experimental/torchfuzz/operators/comparison.py209# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/experimental/torchfuzz/operators/elementwise_math.py41# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/experimental/torchfuzz/operators/elementwise_math.py43# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/experimental/torchfuzz/operators/elementwise_math.py189# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/experimental/torchfuzz/operators/elementwise_math.py191# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/experimental/torchfuzz/operators/elementwise_math.py221# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/experimental/torchfuzz/operators/elementwise_math.py223# ---------------------------------------------------------------------------COMMENT
887 more matches not shown…
Cross-Language Confusion534 hits · 2620 pts
SeverityFileLineSnippetContext
HIGHtools/native_aot/toolchains.py572 device >= 0 && device < C10_COMPILE_TIME_MAX_GPUS, "device index ", device);CODE
HIGHtools/native_aot/toolchains.py595 if (gx == 0 || gy == 0 || gz == 0) return;CODE
HIGHtools/native_aot/toolchains.py677 # The launcher passes both hidden scratch pointers as null, so a kernel thatSTRING
HIGHtools/native_aot/decl.py122 helpers | prelude -> [if (dispatch) { launch; return true; }]* -> return falseSTRING
HIGH⚡tools/test/test_build_with_debinfo.py55 "cd /repo/build/metal && xcrun metal -c /repo/a.metal -o a.air",CODE
HIGH⚡tools/test/test_build_with_debinfo.py56 "cd /repo/build/metal && xcrun metallib -o a.metallib a.air",CODE
HIGH⚡tools/test/test_native_aot_tools.py1109 # The launcher passes both hidden pointers as null, so the kernel wouldCOMMENT
HIGH⚡tools/test/test_native_aot_tools.py2222 self.assertIn("major == 9 && _naot_props->minor == 0", accept)CODE
HIGH⚡tools/test/test_native_aot_tools.py2223 self.assertIn("major == 10 && _naot_props->minor == 0", accept)CODE
HIGH⚡tools/test/test_native_aot_tools.py2229 i9 = body.index(" if ((_naot_props->major == 9 && _naot_props->minor == 0))")CODE
HIGH⚡tools/test/test_native_aot_tools.py2230 i10 = body.index(" if ((_naot_props->major == 10 && _naot_props->minor == 0))")CODE
HIGH⚡tools/test/test_native_aot_tools.py2479 self.assertIn("if (gx == 0 || gy == 0 || gz == 0) return;", self.SRC)CODE
HIGH⚡tools/test/test_native_aot_tools.py2503 self.assertIn("device >= 0 && device < C10_COMPILE_TIME_MAX_GPUS", self.SRC)CODE
HIGHtools/test/test_native_aot_tools.py6116 # Nothing links torch_cuda with --no-undefined, so dropping the archive linksCOMMENT
HIGHtools/test/test_native_aot_tools.py1397 self.assertIn("if (N == 1024 && k == 8) {", src)CODE
HIGHtools/test/test_native_aot_tools.py1431 self.assertIn("if (N == 1024 && k == 8) {", src)CODE
HIGHtools/test/test_native_aot_tools.py1450 self.assertIn("if (N == 1024 && k == 8) {", src)CODE
HIGHtools/test/test_native_aot_tools.py1464 " if (N == 1024 && k == 8) {\n"CODE
HIGHtools/test/test_native_aot_tools.py1479 "return self.scalar_type() == at::kFloat && k == 8;",CODE
HIGHtools/test/test_native_aot_tools.py1499 self.assertIn("return self.scalar_type() == at::kFloat && k == 8;", src)CODE
HIGHtools/test/test_native_aot_tools.py6089 return "return self.scalar_type() == at::kFloat && k == 8;"CODE
HIGHtools/linter/adapters/lintrunner_version_linter.py57 description="Lintrunner is not installed, did you forget to run `make setup-lint && make lint`?",CODE
HIGH⚡.ci/lumen_cli/tests/test_run_plan.py99 "export A=x && pytest -q",CODE
HIGH⚡.ci/lumen_cli/tests/test_run_plan.py100 "export B=y && pytest -q tests/unit",CODE
HIGHtest/test_datapipe.py565 self.assertTrue(df.equals(cdf))CODE
HIGH⚡test/test_schema_check.py469 # Empty containers return falseCOMMENT
HIGH⚡test/test_jit.py6563 # 1. nan == nan should return trueSTRING
HIGH⚡test/test_pytree.py1326 '"children_spec": [{"type": null, "context": null, 'STRING
HIGH⚡test/test_pytree.py1327 '"children_spec": []}, {"type": null, "context": null, 'STRING
HIGH⚡test/test_pytree.py1328 '"children_spec": []}]}, {"type": null, "context": null, 'STRING
HIGH⚡test/test_pytree.py1330 '"[4, 5, 6]", "children_spec": [{"type": null, "context": null, 'STRING
HIGH⚡test/test_pytree.py1331 '"children_spec": []}, {"type": null, "context": null, "children_spec": 'STRING
HIGH⚡test/test_pytree.py1332 '[]}, {"type": null, "context": null, "children_spec": []}]}]}]'STRING
HIGHtest/test_cuda.py13366 if (row < M && col < N) {STRING
HIGHtest/test_opaque_obj_v2.py484 queue.push(b)CODE
HIGHtest/test_meta.py1191 with MetaCrossRefDispatchMode.push(STRING
HIGH⚡test/inductor/test_torchbind.py122 q.push(torch.ones(2, 3))CODE
HIGHtest/inductor/test_torchbind.py350 self.tq.push(x.cos())CODE
HIGHtest/inductor/test_torchbind.py351 self.tq.push(x.sin())CODE
HIGHtest/cpp_extensions/test_libtorch_agnostic.py2496 # Runtime predates the shim: dlsym returns null, so we fall back toCOMMENT
HIGHtest/nn/test_pooling.py1062 "MaxUnpool2d": r"Assertion `maxind >= 0 && maxind < outputImageSize` failed",CODE
HIGHtest/nn/test_pooling.py1063 "MaxUnpool3d": r"Assertion `index >= 0 && index < outputImageSize` failed",CODE
HIGHtest/nn/test_embedding.py1181 msg = "Expected idx >= 0 && idx < num_embeddings"CODE
HIGHtest/nn/test_embedding.py2057 "embedding_idx >= 0 && embedding_idx < num_embeddings"STRING
HIGHtest/nn/test_embedding.py2059 else "bag_idx >= 0 && bag_idx < num_bags"STRING
HIGHtest/python_native/test_native_aot.py167 self.assertIn("cc_major < 10 || N != 1024", register)CODE
HIGHtest/distributed/test_distributed_spawn.py67 f"e.g.\ntouch /tmp/barrier && TEMP_DIR=/tmp BACKEND='nccl' WORLD_SIZE=2 python {__file__}",CODE
HIGH⚡test/distributed/test_fake_pg.py76 # default init path leaves the backend options null).COMMENT
HIGHtest/fx/test_fx_split.py348 # pyre-fixme[61]: `name` is undefined, or not always defined.COMMENT
HIGHtest/quantization/eager/test_equalize_eager.py61 identical modules should return trueSTRING
HIGHtest/quantization/eager/test_equalize_eager.py62 modules with high difference in weights should return falseSTRING
HIGH⚡test/cpython/v3_13/test_contextlib.py812 stack.push(_expect_ok)CODE
HIGH⚡test/cpython/v3_13/test_contextlib.py815 stack.push(cm)CODE
HIGH⚡test/cpython/v3_13/test_contextlib.py817 stack.push(_suppress_exc)CODE
HIGH⚡test/cpython/v3_13/test_contextlib.py820 stack.push(cm)CODE
HIGH⚡test/cpython/v3_13/test_contextlib.py822 stack.push(_expect_exc)CODE
HIGH⚡test/cpython/v3_13/test_contextlib.py824 stack.push(_expect_exc)CODE
HIGH⚡test/cpython/v3_13/test_contextlib.py893 stack.push(lambda *exc: False)CODE
HIGH⚡test/cpython/v3_13/test_contextlib.py898 stack.push(lambda *exc: True)CODE
HIGH⚡test/cpython/v3_13/test_contextlib.py1066 stack.push(suppress_exc)CODE
474 more matches not shown…
Self-Referential Comments686 hits · 1937 pts
SeverityFileLineSnippetContext
MEDIUMtools/update_masked_docs.py30# This file is generated, do not modify it!STRING
MEDIUMtools/experimental/torchfuzz/ops_fuzzer.py463 # Create the operation nodeCOMMENT
MEDIUMtools/experimental/torchfuzz/multi_process_fuzzer.py22 # Create a mock tqdm class for type safetyCOMMENT
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py250 # Create a valid permutation that's still denseCOMMENT
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py343 # Create a local Random instance to avoid interfering with global stateCOMMENT
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py500 # Create a local random instance to avoid interfering with global stateCOMMENT
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py508 # Create a scalar value based on dtypeCOMMENT
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py528 # Create a scalar value based on dtypeCOMMENT
MEDIUMtools/experimental/torchfuzz/fuzzer.py128 # Create a unique folder for this iterationCOMMENT
MEDIUMtools/experimental/torchfuzz/operators/item.py27 # Create a tensor spec that can produce a scalar via .item()COMMENT
MEDIUMtools/test/test_gb_registry_linter.py438 # Create a callsite with one of the duplicate typesCOMMENT
MEDIUM⚡tools/test/heuristics/test_interface.py29 # Create a dummy heuristic classCOMMENT
MEDIUMtools/linter/adapters/stable_shim_usage_linter.py128 "# This file is automatically updated by the stable_shim_usage_linter.\n"CODE
MEDIUMtools/linter/adapters/s3_init.py122 # Create the output folderCOMMENT
MEDIUMtools/autograd/gen_variable_type.py433# The following code templates implement the checks for this invariant:COMMENT
MEDIUMtools/autograd/derivatives.yaml1502# Defining a backward will make codegen spit out the forward call asCOMMENT
MEDIUMtools/setup_helpers/gen_version_header.py59 # Create the output dir if it doesn't exist.COMMENT
MEDIUM.ci/lumen_cli/tests/test_utils.py26 # Create a temporary directory for the test to run inCOMMENT
MEDIUM.ci/lumen_cli/cli/lib/core/vllm/vllm_test_library.yaml2# This file defines the test plans for vllm CI developmentCOMMENT
MEDIUM.ci/libtorch/extract_libtorch_from_wheel.py520 # Create the zipCOMMENT
MEDIUM⚡test/test_mps.py1433 # Create a workload on `s1` and record it on `t`, but don't commit itCOMMENT
MEDIUM⚡test/test_mps.py1443 # Create a workload on `s2` and record it on `t`, then commit and waitCOMMENT
MEDIUM⚡test/test_mps.py1453 # Create a separate thread to start waiting for any outstanding eventsCOMMENT
MEDIUMtest/test_python_dispatch.py618 # Create a fragmentCOMMENT
MEDIUMtest/test_linalg.py10630 # Create the results file in the parent so we can always clean it up,STRING
MEDIUMtest/test_linalg.py11053 # Create the results file in the parent so we can always clean it up,STRING
MEDIUMtest/test_functionalization.py1801 # Create a view of xCOMMENT
MEDIUM⚡test/test_hub.py316 # Create an entry with malicious pathCOMMENT
MEDIUM⚡test/test_hub.py322 # Create a single entry with malicious path for legacy formatCOMMENT
MEDIUM⚡test/test_hub.py390 # Create a legacy-style malicious zip (single entry with traversal)COMMENT
MEDIUMtest/test_hub.py412 # Create a zip that looks like a GitHub repository but has malicious contentCOMMENT
MEDIUMtest/test_matmul_cuda.py1115 # Create a doubly-non-contiguous 2D matrix: stride on both dims > 1COMMENT
MEDIUMtest/test_torch.py3757 # Create the 4 possible combinations of scalar sizes for source / indexCOMMENT
MEDIUMtest/test_torch.py3806 # Create the 8 possible combinations of scalar sizes for target / index / sourceCOMMENT
MEDIUMtest/test_torch.py9516 # This method is primarily exposed for torchvision's resizeCOMMENT
MEDIUMtest/test_torch.py11766# The following block extends TestTorch with negative dim wrapping testsCOMMENT
MEDIUM⚡test/test_dynamic_shapes.py7250 # Create a backed symbolCOMMENT
MEDIUM⚡test/test_dynamic_shapes.py7255 # Create an unbacked symbolCOMMENT
MEDIUMtest/test_dynamic_shapes.py4530 # Create a symint during fake tensor tracingCOMMENT
MEDIUMtest/test_dynamic_shapes.py5637 # Create a scalar tensor to scatter into the selected indexCOMMENT
MEDIUMtest/test_dynamic_shapes.py6693 # Create a tensor with shape [..., 2] where batch dim is unbackedCOMMENT
MEDIUMtest/test_dynamic_shapes.py7196 # Create a derived expression: u0 // 2COMMENT
MEDIUMtest/test_dynamic_shapes.py7340 # Create a backed foreign symbol that this env cannot translate.COMMENT
MEDIUMtest/test_optim.py2160 # Create a random 2D tensor for compatibility with Muon.COMMENT
MEDIUMtest/test_optim.py2219 # Create an arbitrary 2D tensor for compatibility with Muon.COMMENT
MEDIUM⚡test/test_nn.py7732 # Create an appropriately-sized input with a single spatial element.COMMENT
MEDIUMtest/test_subclass.py231 # Define a subclass that does not rewrap for any function in its __torch_dispatch__ impl.COMMENT
MEDIUMtest/test_indexing.py2012 # Create the 8 possible combinations of scalar sizes for target / index / sourceCOMMENT
MEDIUMtest/test_indexing.py2195 # Create the 4 possible combinations of scalar sizes for index / sourceCOMMENT
MEDIUMtest/test_custom_ops.py1570 # Define a named tuple for a Point with x and y coordinatesCOMMENT
MEDIUMtest/test_cuda.py3193 # This function is intended to test the lazy creation and reuse of per-threadSTRING
MEDIUMtest/test_cuda.py3676 # Define a function to create generator states, with optional graph registrationSTRING
MEDIUMtest/test_cuda.py3690 # Define a function to perform specific RNG actions using the generator's statesSTRING
MEDIUMtest/test_cuda.py3707 # Define a function to retrieve the final offsets of the original and new generator statesSTRING
MEDIUMtest/test_cuda.py6687 # Create a pipe to communicate between parent and child processesSTRING
MEDIUMtest/test_cuda.py7530 # Create a simple model with a backward passSTRING
MEDIUMtest/test_cuda.py7719 # Create an instance of the modelSTRING
MEDIUMtest/test_cuda.py7724 # Create a sample input tensorSTRING
MEDIUMtest/test_cuda.py13432 # Define a simple vector addition kernelSTRING
MEDIUMtest/test_opaque_obj_v2.py111# Create a class with an unsupported descriptorCOMMENT
626 more matches not shown…
Excessive Try-Catch Wrapping1583 hits · 1580 pts
SeverityFileLineSnippetContext
LOWtools/regenerate_cpython_diffs.py63 except Exception as e:CODE
LOWtools/regenerate_cpython_diffs.py167 except Exception as e:CODE
LOWtools/bolt_profile_quality.py132 except Exception as error:STRING
LOWtools/render_junit.py33 except Exception as err:CODE
MEDIUMtools/nightly_hotpatch.py94 print("Error: PyTorch is not installed in the current Python environment.")CODE
LOWtools/nightly_hotpatch.py130 except Exception as e:CODE
MEDIUMtools/nightly_hotpatch.py131 print(f"An error occurred while downloading the patch: {e}")CODE
MEDIUM⚡tools/nightly_hotpatch.py178 print("Error: The 'patch' utility is not installed or not found in PATH.")CODE
LOW⚡tools/nightly_hotpatch.py180 except Exception as e:CODE
MEDIUM⚡tools/nightly_hotpatch.py181 print(f"An error occurred while applying the patch: {e}")CODE
LOWtools/generate_torch_version.py30 except Exception:CODE
LOWtools/generate_torch_version.py47 except Exception:CODE
LOWtools/cpython_diff_sync.py314 except Exception as e:CODE
LOWtools/nightly.py721 except Exception as e:CODE
LOWtools/nightly.py945 except Exception:CODE
LOWtools/experimental/torchfuzz/ops_fuzzer.py229 except Exception:CODE
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py183 except Exception as e:CODE
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py363 except Exception as e:CODE
LOWtools/experimental/torchfuzz/fuzzer.py265 except Exception as e:CODE
MEDIUMtools/experimental/torchfuzz/fuzzer.py273 print(f"Error: {error_message}")CODE
LOWtools/experimental/torchfuzz/fuzzer.py443 except Exception as e:CODE
LOWtools/experimental/torchfuzz/fuzzer.py482 except Exception as e:CODE
LOWtools/native_aot/export.py178 except Exception:CODE
LOWtools/test/gen_operators_yaml_test.py141 except Exception:CODE
LOWtools/test/test_native_aot_tools.py2592 except Exception as e:CODE
LOWtools/linter/license_files_audit.py213 except Exception as e:CODE
LOWtools/linter/adapters/gha_linter.py61 except Exception as err:CODE
LOWtools/linter/adapters/actionlint_linter.py168 except Exception:STRING
LOWtools/linter/adapters/grep_linter.py136 except Exception as err:CODE
LOWtools/linter/adapters/grep_linter.py216 except Exception as err:CODE
LOWtools/linter/adapters/grep_linter.py397 except Exception as err:CODE
LOWtools/linter/adapters/cmake_linter.py144 except Exception:STRING
LOWtools/linter/adapters/pyfmt_linter.py138 except Exception as err:CODE
LOWtools/linter/adapters/pyfmt_linter.py193 except Exception:CODE
LOWtools/linter/adapters/no_workflows_on_fork.py242 except Exception:CODE
LOWtools/linter/adapters/no_merge_conflict_csv_linter.py97 except Exception:CODE
LOWtools/linter/adapters/stable_shim_version_linter.py89 except Exception as e:CODE
LOWtools/linter/adapters/nativefunctions_linter.py75 except Exception as err:CODE
LOWtools/linter/adapters/clangformat_linter.py260 except Exception:CODE
LOWtools/linter/adapters/docstring_linter.py92 except Exception as e:STRING
MEDIUMtools/linter/adapters/docstring_linter.py86def _grandfather(self) -> dict[str, dict[str, Any]]:CODE
LOWtools/linter/adapters/pyproject_linter.py250 except Exception:CODE
LOWtools/linter/adapters/clangtidy_linter.py335 except Exception:STRING
LOWtools/linter/adapters/cmake_minimum_required_linter.py184 except Exception:CODE
LOWtools/linter/adapters/cmake_minimum_required_linter.py244 except Exception:CODE
LOWtools/linter/adapters/ruff_linter.py479 except Exception: # Catch all exceptions for lintrunnerCODE
LOWtools/linter/adapters/newlines_linter.py96 except Exception as err:CODE
LOWtools/linter/adapters/newlines_linter.py135 except Exception as err:CODE
LOWtools/linter/adapters/codespell_linter.py140 except Exception as err:CODE
LOWtools/linter/adapters/codespell_linter.py167 except Exception as err:CODE
LOWtools/linter/adapters/codespell_linter.py224 except Exception:CODE
LOWtools/dynamo/verify_dynamo.py229 except Exception:CODE
LOWtools/testing/upload_artifacts.py121 except Exception as e:CODE
LOW⚡tools/testing/upload_artifacts.py207 except Exception as e:CODE
LOW⚡tools/testing/upload_artifacts.py219 except Exception as e:CODE
LOWtools/testing/target_determination/determinator.py30 except Exception as e:CODE
MEDIUMtools/testing/target_determination/determinator.py31 print(f"Error in {heuristic.__class__.__name__}: {e}", file=file)CODE
LOW⚡…ing/target_determination/heuristics/mentioned_in_pr.py33 except Exception as e:CODE
LOW⚡…ing/target_determination/heuristics/mentioned_in_pr.py42 except Exception as e:CODE
LOW…ing/target_determination/heuristics/mentioned_in_pr.py53 except Exception:CODE
1523 more matches not shown…
Hallucination Indicators137 hits · 1320 pts
SeverityFileLineSnippetContext
CRITICALtools/autograd/load_derivatives.py292 is_foreach = f.func.name.name.base.startswith("_foreach_")CODE
CRITICALtools/autograd/gen_autograd_functions.py694 info.func.func.name.name.base.startswith("_foreach") and is_outputSTRING
CRITICALtest/test_per_overload_api.py73 torch.ops.aten.linear.default.decompose(x, y),CODE
CRITICALtest/inductor/test_gpu_select_algorithm.py103 w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel(CODE
CRITICALtest/inductor/test_gpu_select_algorithm.py157 w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel(CODE
CRITICALtest/inductor/test_cpu_select_algorithm.py1755 w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel(CODE
CRITICALtest/inductor/test_cpu_select_algorithm.py1823 w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel(CODE
CRITICALtest/onnx/test_pytorch_onnx_onnxruntime.py12904 model = torch.ao.nn.intrinsic.quantized.ConvReLU1d(16, 33, 3, stride=2)CODE
CRITICALtest/onnx/test_pytorch_onnx_onnxruntime.py12918 model = torch.ao.nn.intrinsic.quantized.ConvReLU2d(16, 33, 3, stride=2)CODE
CRITICALtest/onnx/test_pytorch_onnx_onnxruntime.py12933 model = torch.ao.nn.intrinsic.quantized.ConvReLU3d(CODE
CRITICALtest/fx/test_dce_pass.py235 torch._ops.ops.aten.add_.Tensor(a, 1)CODE
CRITICALtest/fx/test_dce_pass.py317 torch._ops.ops.aten.add.out(b, b, out=a, alpha=2)CODE
CRITICALtest/dynamo/test_minifier.py451 conv = torch.ao.nn.intrinsic.qat.ConvBnReLU2d(CODE
CRITICALtest/dynamo/test_minifier.py473 "torch.ao.nn.intrinsic.qat.modules.conv_fused.ConvBnReLU2d(",CODE
CRITICALtest/dynamo/test_minifier.py501 conv = torch.ao.nn.intrinsic.qat.ConvBnReLU2d(CODE
CRITICALtest/dynamo/test_reconstruct.py381 return self.a.b.c.d.e(x)CODE
CRITICALtest/quantization/core/test_quantized_module.py1742 cell_dq = torch.ao.nn.quantized.dynamic.LSTM(input_size=input_size,STRING
CRITICALtest/quantization/core/test_quantized_module.py1750 ref_dq = torch.ao.nn.quantized.dynamic.LSTM(input_size=input_size,STRING
CRITICALtest/quantization/core/test_quantized_module.py1804 cell_dq = torch.ao.nn.quantized.dynamic.GRU(input_size=input_size,STRING
CRITICALtest/quantization/core/test_quantized_op.py678 qY = torch.ao.nn.quantized.functional.elu(qX, output_scale, output_zero_point, alpha=alpha)CODE
CRITICALtest/quantization/core/test_quantized_op.py1037 qY = torch.ao.nn.quantized.functional.hardswish(CODE
CRITICALtest/quantization/core/test_quantized_op.py3055 qY = torch.ao.nn.quantized.functional.hardtanh(qX, -1, 6)CODE
CRITICALtest/quantization/core/test_quantized_op.py9610 qY_hat = torch.ao.nn.quantized.functional.hardtanh(qX, min_val, max_val)CODE
CRITICALtest/quantization/fx/test_quantize_fx.py5015 return torch.ao.quantization.fx.lstm_utils._get_lstm_with_individually_observed_parts(CODE
CRITICALtest/quantization/fx/test_quantize_fx.py5035 return torch.ao.quantization.fx.lstm_utils._get_reference_quantized_lstm_module(CODE
CRITICALtest/quantization/fx/test_quantize_fx.py6841 activation=torch.ao.quantization.observer.HistogramObserver.with_args(CODE
CRITICAL⚡test/quantization/jit/test_quantize_jit.py3844 eager_model.sub.module.fc1.weight.detach()CODE
CRITICAL⚡test/quantization/jit/test_quantize_jit.py3847 eager_model.sub.module.fc1.bias.detach()CODE
CRITICAL⚡test/quantization/jit/test_quantize_jit.py3850 eager_model.sub.module.fc2.weight.detach()CODE
CRITICAL⚡test/quantization/jit/test_quantize_jit.py3853 eager_model.sub.module.fc2.bias.detach()CODE
CRITICALtest/quantization/jit/test_quantize_jit.py3798 eager_model.sub2.fc1.module.weight.detach()STRING
CRITICALtest/quantization/jit/test_quantize_jit.py3801 eager_model.sub2.fc1.module.bias.detach()STRING
CRITICALtest/quantization/eager/test_quantize_eager_ptq.py1083 original_m.sub.custom.conv.weight.detach()STRING
CRITICALtest/quantization/eager/test_quantize_eager_ptq.py1086 original_m.sub.custom.conv.bias.detach()STRING
CRITICALtest/cpp/jit/test_backend.cpp49 __torch__.torch.classes.__backends__.test_backend.__new__(__torch__.torch.classes.__backends__.test_backend)CODE
CRITICALtest/jit/test_class_type.py556 three = jit._imported_class_test.very.very.nested.FooUniqueName(a)CODE
CRITICALtest/export/test_torchbind.py348 torch.ops._TorchScriptTesting.takes_foo.default._dispatch_cache.clear()CODE
CRITICALtest/export/test_torchbind.py359 torch.ops._TorchScriptTesting.takes_foo.default.py_impl(CODE
CRITICAL⚡test/export/test_export.py13213 x = self.n3.n4.n5.n6.n7.n8(x + 1)CODE
CRITICAL⚡test/export/test_export.py13215 self.n3.n4.n5.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13216 self.n3.n4.n5.n6.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13217 self.n3.n4.n5.n6.n7.n8.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13252 x = self.n1.n2.n3.n4.n5.n6.n7(x + 1)CODE
CRITICAL⚡test/export/test_export.py13253 self.n1.n2.n3.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13254 self.n1.n2.n3.n4.n5.n6.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13255 self.n1.n2.n3.n4.n5.n6.n7.n8.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13632 x = self.n1.n2.n3.n4.n5(x + 1)CODE
CRITICAL⚡test/export/test_export.py13633 x = self.n1.n2.n3.n4.n5.n6(x + 1)CODE
CRITICAL⚡test/export/test_export.py13635 self.n1.n2.n3.n4.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13636 self.n1.n2.n3.n4.n5.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13637 self.n1.n2.n3.n4.n5.n6.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13731 x = self.n5.n6.n7.n8.n9(x + 1)CODE
CRITICAL⚡test/export/test_export.py13734 self.n5.n6.n7.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13735 self.n5.n6.n7.n8.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13752 x = self.n4.n5.n6.n7.n8(x + 1)CODE
CRITICAL⚡test/export/test_export.py13753 x = self.n4.n5.n6.n7.n8.n9(x + 1)CODE
CRITICAL⚡test/export/test_export.py13754 self.n4.n5.n6.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13755 self.n4.n5.n6.n7.n8.buf.add_(1)CODE
CRITICAL⚡test/export/test_export.py13772 x = self.n3.n4.n5.n6.n7.n8(x + 1)CODE
CRITICAL⚡test/export/test_export.py13773 x = self.n3.n4.n5.n6.n7.n8.n9(x + 1)CODE
77 more matches not shown…
Modern Structural Boilerplate1233 hits · 1167 pts
SeverityFileLineSnippetContext
LOWtools/build_libtorch.py17def _set_cmake_build_type() -> None:CODE
LOWtools/packaging/build_wheel.py19logger = logging.getLogger(__name__)CODE
LOWtools/experimental/torchfuzz/__init__.py17__all__ = [CODE
LOWtools/experimental/torchfuzz/operators/registry.py116def set_operator_weight(op_name: str, weight: float) -> None:CODE
LOW⚡tools/experimental/torchfuzz/operators/registry.py142def set_operator_weights(weights: dict[str, float]) -> None:CODE
LOW⚡tools/experimental/torchfuzz/operators/registry.py148def set_operator_weight_by_torch_op(torch_op_name: str, weight: float) -> None:CODE
LOWtools/experimental/torchfuzz/operators/registry.py159def set_operator_weights_by_torch_op(weights: dict[str, float]) -> None:CODE
LOWtools/experimental/torchfuzz/operators/__init__.py62__all__ = [CODE
LOWtools/native_aot/decl.py142__all__ = [CODE
LOWtools/linter/adapters/_linter/__init__.py13__all__ = [CODE
LOWtools/linter/clang_tidy/generate_build_files.py25def update_submodules() -> None:CODE
LOW…s/testing/target_determination/heuristics/interface.py78 def set_test_score(self, test_run: TestRun, new_score: float) -> None:CODE
LOWtools/code_coverage/package/tool/summarize_jsons.py189def update_set() -> None:CODE
LOWtools/metadata/version.py22__all__ = ["dynamic_metadata"]CODE
LOWtools/metadata/dependencies.py27__all__ = ["dynamic_metadata", "dynamic_wheel"]CODE
LOW.ci/lumen_cli/cli/run.py11logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/test_cli/register_test.py11logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/lib/core/vllm/lib.py24logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/lib/core/vllm/vllm_test.py25logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/lib/core/vllm/vllm_build.py33logger = logging.getLogger(__name__)CODE
LOW⚡.ci/lumen_cli/cli/lib/core/torchtitan/lib.py11logger = logging.getLogger(__name__)CODE
LOW…i/lumen_cli/cli/lib/core/torchtitan/torchtitan_test.py16logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/lib/common/docker_helper.py13logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/lib/common/gh_summary.py17logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/lib/common/utils.py16logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/lib/common/path_helper.py10logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/lib/common/pip_helper.py14logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/lib/common/git_helper.py12logger = logging.getLogger(__name__)CODE
LOW.ci/lumen_cli/cli/build_cli/register_build.py10logger = logging.getLogger(__name__)CODE
LOW.ci/wheel/linux/repair_wheel.py157def set_rpath(sofile: Path, rpath: str, force_rpath: bool) -> None:CODE
LOWtest/test_fx_passes.py26logger = logging.getLogger(__name__)CODE
LOWtest/inductor/test_aoti_cross_compile_windows.py51 def set_base_path(cls, path: Path | str | None = None) -> None:CODE
LOWtest/inductor/test_aoti_cross_compile_windows.py56 def set_win_torch_libs_path(cls, path: str | None = None) -> None:CODE
LOW…inductor/extension_backends/triton/device_interface.py57 def set_device(device: int) -> None:CODE
LOW…inductor/extension_backends/triton/device_interface.py77 def set_device(device) -> None:CODE
LOW…torch_agn_2_15_extension/libtorch_agn_2_15/__init__.py6__all__ = [CODE
LOW…ension/torch_openreg/torch_openreg/openreg/__init__.py45def set_device(device) -> None:STRING
LOW…ension/torch_openreg/torch_openreg/openreg/__init__.py77__all__ = [STRING
LOW…xtension/torch_openreg/torch_openreg/openreg/random.py7__all__ = [CODE
LOW…torch_agn_2_13_extension/libtorch_agn_2_13/__init__.py26__all__ = [CODE
LOW…torch_agn_2_14_extension/libtorch_agn_2_14/__init__.py22__all__ = [CODE
LOW…ibtorch_agn_2_9_extension/libtorch_agn_2_9/__init__.py18__all__ = [CODE
LOW…torch_agn_2_12_extension/libtorch_agn_2_12/__init__.py18__all__ = [CODE
LOW…torch_agn_2_11_extension/libtorch_agn_2_11/__init__.py18__all__ = [CODE
LOW…torch_agn_2_10_extension/libtorch_agn_2_10/__init__.py18__all__ = [CODE
LOWtest/distributed/test_c10d_functional_native.py722 def _set_group_name(self, name: str) -> None:CODE
LOWtest/distributed/checkpoint/test_pg_transport.py42logger = logging.getLogger(__name__)CODE
LOWtest/distributed/checkpoint/test_dtensor_checkpoint.py66 def set_extra_state(self, state: dict[str, int | torch._tensor.Tensor]) -> None:CODE
LOWtest/distributed/checkpoint/test_dtensor_resharding.py40logger = logging.getLogger(__name__)CODE
LOWtest/distributed/checkpoint/test_checkpoint.py215 def set_up_storage_reader(self, metadata: Metadata, is_coordinator: bool) -> None:CODE
LOWtest/distributed/elastic/test_control_plane.py235 def set_content(self, content: str, content_type: str) -> None:CODE
LOWtest/distributed/elastic/test_control_plane.py239 def set_status(self, status: int) -> None:CODE
LOW…tributed/elastic/rendezvous/dynamic_rendezvous_test.py274 def set_state_internal(self, state: _RendezvousState) -> None:CODE
LOWtest/distributed/elastic/rendezvous/api_test.py222 def set_closed(self) -> None:CODE
LOWtest/distributed/elastic/utils/util_test.py30 def set_timeout(self, timeout: float) -> None:CODE
LOWtest/distributed/pipelining/test_schedule.py95logger = logging.getLogger(__name__)CODE
LOWtest/distributed/pipelining/test_schedule_multiproc.py74logger = logging.getLogger(__name__)CODE
LOW…/distributed/_composable/fsdp/test_fully_shard_comm.py1193 def set_forward_prefetch(model: Transformer, num_to_prefetch: int) -> None:CODE
LOW…/distributed/_composable/fsdp/test_fully_shard_comm.py1288 def set_backward_prefetch(model: Transformer, num_to_prefetch: int) -> None:CODE
LOW…/distributed/_composable/fsdp/test_fully_shard_comm.py1414 def set_backward_prefetch(model: Transformer) -> None:CODE
1173 more matches not shown…
Docstring Block Structure217 hits · 1070 pts
SeverityFileLineSnippetContext
HIGHtest/test_transformers.py145 Compare test tensor against golden and reference tensors. Golden is the highest precision possible serving as tSTRING
HIGHtest/onnx/onnx_test_common.py172Run ORT on the given ONNX model and inputs Used in test_fx_to_onnx_with_onnxruntime.py Args: onnx_modeSTRING
HIGHtest/onnx/torchlib/ops_test_common.py327Run a model with ONNX Runtime in a separate process. Args: serialized_model: Serialized ONNX model proto. STRING
HIGH.agents/skills/docstring/SKILL.md295 Sample from the Gumbel-Softmax distribution and optionally discretize. Args: logits (Tensor): `[..., nSTRING
HIGHtorch/library.py1719Returns the computed kernel for a given operator and dispatch key. This function retrieves the kernel that would beSTRING
HIGHtorch/_torch_docs.py4783 unflatten(input, dim, sizes) -> Tensor Expands a dimension of the input tensor over multiple dimensions. .. seealso::STRING
HIGHtorch/_torch_docs.py6762 lu_unpack(LU_data, LU_pivots, unpack_data=True, unpack_pivots=True, *, out=None) -> (Tensor, Tensor, Tensor) Unpacks tSTRING
HIGHtorch/_torch_docs.py7734 aminmax(input, *, dim=None, keepdim=False, out=None) -> (Tensor min, Tensor max) Computes the minimum and maximum valuSTRING
HIGHtorch/_torch_docs.py11996 triangular_solve(b, A, upper=True, transpose=False, unitriangular=False, *, out=None) -> (Tensor, Tensor) Solves a sysSTRING
HIGHtorch/functional.py80broadcast_shapes(*shapes) -> Size Similar to :func:`broadcast_tensors` but for shapes. This is equivalent to STRING
HIGHtorch/functional.py176einsum(equation, *operands) -> Tensor Sums the product of the elements of the input :attr:`operands` along dimensioSTRING
HIGHtorch/_lobpcg.py359Find the k largest (or smallest) eigenvalues and the corresponding eigenvectors of a symmetric positive definite genSTRING
HIGHtorch/serialization.py715 Restores `storage` using a deserializer function registered for the `location`. This function looks in the regSTRING
HIGHtorch/_functorch/einops.py16A native implementation of `einops.rearrange`, a reader-friendly smart element reordering for multidimensional tensoSTRING
HIGHtorch/_functorch/_aot_autograd/fx_utils.py47 Given a joint graph with descriptors (meta['desc'] on placeholders and output), returns the node for every inpuSTRING
HIGHtorch/_functorch/_aot_autograd/fx_utils.py103Get all output nodes and their corresponding tangent nodes from a joint graph. Similar to get_all_input_and_grad_noSTRING
HIGHtorch/_functorch/_aot_autograd/fx_utils.py231Get parameter nodes mapped by their fully qualified names. This function traverses the graph to find all parameter STRING
HIGHtorch/_functorch/_aot_autograd/fx_utils.py259Get buffer nodes mapped by their fully qualified names. This function traverses the graph to find all buffer input STRING
HIGHtorch/_functorch/_aot_autograd/fx_utils.py287Get all parameter nodes from a graph as a list. You can rely on this providing the correct order of parameters you STRING
HIGHtorch/_functorch/_aot_autograd/fx_utils.py308Get all buffer nodes from a graph as a list. You can rely on this providing the correct order of buffers you need STRING
HIGHtorch/linalg/__init__.py97 .. seealso:: :func:`torch.linalg.cholesky_ex` for a version of this operation that skips the (slow) eSTRING
HIGHtorch/linalg/__init__.py243 .. note:: Consider using :func:`torch.linalg.solve` if possible for multiplying a matrix on the left by the inSTRING
HIGHtorch/linalg/__init__.py308 Args: A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions. Keyword args: left STRING
HIGHtorch/linalg/__init__.py426 linalg.slogdet(A, *, out=None) -> (Tensor, Tensor) Computes the sign and natural logarithm of the absolute value of thSTRING
HIGHtorch/linalg/__init__.py504 .. warning:: This function assumes that :attr:`A` is `diagonalizable`_ (for example, when all the eigenvaSTRING
HIGHtorch/linalg/__init__.py615 .. seealso:: :func:`torch.linalg.eig` computes the full eigenvalue decomposition. Args: A (Tensor): tensSTRING
HIGHtorch/linalg/__init__.py675 .. note:: The eigenvalues of real symmetric or complex Hermitian matrices are always real. .. warning:: The eigenvectSTRING
HIGHtorch/linalg/__init__.py798 .. seealso:: :func:`torch.linalg.eigh` computes the full eigenvalue decomposition. Args: A (Tensor): tenSTRING
HIGHtorch/linalg/__init__.py838 householder_product(A, tau, *, out=None) -> Tensor Computes the first `n` columns of a product of Householder matricesSTRING
HIGHtorch/linalg/__init__.py939 Args: A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions consistinSTRING
HIGHtorch/linalg/__init__.py993 Args: A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions consistinSTRING
HIGHtorch/linalg/__init__.py1080 torch.linalg.lstsq(A, B, rcond=None, *, driver=None) -> (Tensor, Tensor, Tensor, Tensor) Computes a solution to the leSTRING
HIGHtorch/linalg/__init__.py1204 matrix_power(A, n, *, out=None) -> Tensor Computes the `n`-th power of a square matrix for an integer `n`. Supports iSTRING
HIGHtorch/linalg/__init__.py1355 linalg.norm(input, ord=None, dim=None, keepdim=False, *, out=None, dtype=None) -> Tensor Computes a vector or matrix nSTRING
HIGHtorch/linalg/__init__.py1493 linalg.vector_norm(x, ord=2, dim=None, keepdim=False, *, dtype=None, out=None) -> Tensor Computes a vector norm. If :STRING
HIGHtorch/linalg/__init__.py1572 linalg.matrix_norm(A, ord='fro', dim=(-2, -1), keepdim=False, *, dtype=None, out=None) -> Tensor Computes a matrix norSTRING
HIGHtorch/linalg/__init__.py1736 linalg.svd(A, full_matrices=True, *, driver=None, out=None) -> (Tensor, Tensor, Tensor) Computes the singular value deSTRING
HIGHtorch/linalg/__init__.py1907 .. seealso:: :func:`torch.linalg.svd` computes the full singular value decomposition. Args: A (Tensor): STRING
HIGHtorch/linalg/__init__.py1940 linalg.cond(A, p=None, *, out=None) -> Tensor Computes the condition number of a matrix with respect to a matrix norm.STRING
HIGHtorch/linalg/__init__.py2310 .. seealso:: :func:`torch.linalg.solve_triangular` computes the solution of a triangular system of linear STRING
HIGHtorch/linalg/__init__.py2474 .. warning:: The LU decomposition is almost never unique, as often there are different permutation matriceSTRING
HIGHtorch/linalg/__init__.py2643 lu(A, *, pivot=True, out=None) -> (Tensor, Tensor, Tensor) Computes the LU decomposition with partial pivoting of a maSTRING
HIGHtorch/linalg/__init__.py2733 linalg.tensorinv(A, ind=2, *, out=None) -> Tensor Computes the multiplicative inverse of :func:`torch.tensordot`. If STRING
HIGHtorch/linalg/__init__.py2801 linalg.tensorsolve(A, B, dims=None, *, out=None) -> Tensor Computes the solution `X` to the system `torch.tensordot(A,STRING
HIGHtorch/linalg/__init__.py2867 qr(A, mode='reduced', *, out=None) -> (Tensor, Tensor) Computes the QR decomposition of a matrix. Letting :math:`\matSTRING
HIGHtorch/linalg/__init__.py3015 Args: A (Tensor): tensor of shape `(*, m, n)` with `m >= n`, where `*` is zero or more batch dimensSTRING
HIGHtorch/nn/functional.py2256 Sample from the Gumbel-Softmax distribution (`Link 1`_ `Link 2`_) and optionally discretize. Args: logiSTRING
HIGHtorch/nn/functional.py6562 Args: query (Tensor): Query tensor; shape :math:`(N, ..., Hq, L, E)`. key (Tensor): Key tensor; shaSTRING
HIGHtorch/nn/attention/bias.py192 Handles the logic for computing attention with the specified causal bias. Args: query (TenSTRING
HIGHtorch/nn/attention/flex_attention.py1103 Creates a BlockMask instance from key-value block information. Args: kv_num_blocks (TensorSTRING
HIGHtorch/nn/attention/flex_attention.py1274 Returns a new BlockMask by selecting batch, head, and Q-block rows. BlockMask indexing accepts up to tSTRING
HIGHtorch/nn/parallel/distributed.py71Factory method to create a BucketCapacityConfig from user inputs. Args: bucket_cap_mb: Single buckeSTRING
HIGHtorch/nn/parallel/distributed.py133Compute bucket size limits for initial bucketing and rebuilding. Args: static_graph: Whether the coSTRING
HIGHtorch/nn/utils/stateless.py18 Unties all tied tensors in the module to parameters_and_buffers. This function returns a new untied_parametersSTRING
HIGHtorch/nn/utils/parametrize.py457Register a parametrization to a tensor in a module. Assume that ``tensor_name="weight"`` for simplicity. When accesSTRING
HIGHtorch/nn/utils/parametrize.py701Remove the parametrizations on a tensor in a module. - If ``leave_parametrized=True``, ``module[tensor_name]`` willSTRING
HIGHtorch/nn/utils/weight_norm.py85Apply weight normalization to a parameter in the given module. .. math:: \mathbf{w} = g \dfrac{\mathbf{v}}STRING
HIGHtorch/nn/utils/prune.py590Compute and returns a mask for the input tensor ``t``. Starting from a base ``default_mask`` (which should be aSTRING
HIGHtorch/nn/utils/prune.py699Compute and returns a mask for the input tensor ``t``. Starting from a base ``default_mask`` (which should be aSTRING
HIGHtorch/nn/utils/prune.py837Apply pruning reparameterization without pruning any units. Applies pruning reparameterization to the tensor corresSTRING
157 more matches not shown…
Cross-File Repetition172 hits · 860 pts
SeverityFileLineSnippetContext
HIGHtools/linter/adapters/clangtidy_linter.py0(?mx) ^ (?p<file>.*?): (?p<line>\d+): (?:(?p<column>-?\d+):)? \s(?p<severity>\s+?):? \s(?p<message>.*) \s(?p<code>\[.*\]STRING
HIGHtools/linter/adapters/mypy_linter.py0(?mx) ^ (?p<file>.*?): (?p<line>\d+): (?:(?p<column>-?\d+):)? \s(?p<severity>\s+?):? \s(?p<message>.*) \s(?p<code>\[.*\]STRING
HIGHtools/linter/adapters/pyrefly_linter.py0(?mx) ^ (?p<file>.*?): (?p<line>\d+): (?:(?p<column>-?\d+):)? \s(?p<severity>\s+?):? \s(?p<message>.*) \s(?p<code>\[.*\]STRING
HIGH.ci/pytorch/test_example_code/cnn_smoke_win_arm64.py0it's used to check basic rnn features with cuda. for example, it would throw exception if missing some components are miSTRING
HIGH.ci/pytorch/test_example_code/rnn_smoke_win_arm64.py0it's used to check basic rnn features with cuda. for example, it would throw exception if missing some components are miSTRING
HIGH.ci/pytorch/test_example_code/cnn_smoke.py0it's used to check basic rnn features with cuda. for example, it would throw exception if missing some components are miSTRING
HIGH.ci/pytorch/test_example_code/rnn_smoke.py0it's used to check basic rnn features with cuda. for example, it would throw exception if missing some components are miSTRING
HIGHtest/test_transformers.py0clones the query, key, and value tensors and moves them to the specified dtype.STRING
HIGHtest/inductor/test_flex_attention.py0clones the query, key, and value tensors and moves them to the specified dtype.STRING
HIGHtest/inductor/test_flex_decoding.py0clones the query, key, and value tensors and moves them to the specified dtype.STRING
HIGHbenchmarks/transformer/score_mod.py0clones the query, key, and value tensors and moves them to the specified dtype.STRING
HIGHtest/test_dynamic_spec_make_fx.py0reset the global intvar uid counter so uids start at 0 per test.STRING
HIGHtest/dynamo/test_dynamic_spec.py0reset the global intvar uid counter so uids start at 0 per test.STRING
HIGHtest/export/test_dynamic_spec_export.py0reset the global intvar uid counter so uids start at 0 per test.STRING
HIGHtest/inductor/test_codecache.py0verify that we can populate and hot load functions from the cache.STRING
HIGHtest/inductor/test_config.py0verify that we can populate and hot load functions from the cache.STRING
HIGHtest/dynamo/test_aot_autograd_cache.py0verify that we can populate and hot load functions from the cache.STRING
HIGH…ension/torch_openreg/torch_openreg/openreg/__init__.py0context-manager that changes the selected device. args: device (torch.device or int or str): device index to select. it'STRING
HIGHtorch/cuda/__init__.py0context-manager that changes the selected device. args: device (torch.device or int or str): device index to select. it'STRING
HIGHtorch/mtia/__init__.py0context-manager that changes the selected device. args: device (torch.device or int or str): device index to select. it'STRING
HIGHtorch/xpu/__init__.py0context-manager that changes the selected device. args: device (torch.device or int or str): device index to select. it'STRING
HIGHtest/nn/attention/test_fa3.py0test that torch.compile preserves tensor metadata (shape, stride, dtype).STRING
HIGHtest/nn/attention/_fa_test_common.py0test that torch.compile preserves tensor metadata (shape, stride, dtype).STRING
HIGHtest/nn/attention/test_fa4.py0test that torch.compile preserves tensor metadata (shape, stride, dtype).STRING
HIGHtest/distributed/test_c10d_ucc.py0this unit test verifies whether the future object is passed properly using nccl backend. the hook callback function creaSTRING
HIGHtest/distributed/test_c10d_gloo.py0this unit test verifies whether the future object is passed properly using nccl backend. the hook callback function creaSTRING
HIGHtest/distributed/test_c10d_nccl.py0this unit test verifies whether the future object is passed properly using nccl backend. the hook callback function creaSTRING
HIGHtest/dynamo/test_aot_compile.py0\ <internal traceback> torch._dynamo.exc.unsupported: call to `torch._dynamo.graph_break()` explanation: user-inserted gSTRING
HIGHtest/dynamo/test_error_messages.py0\ <internal traceback> torch._dynamo.exc.unsupported: call to `torch._dynamo.graph_break()` explanation: user-inserted gSTRING
HIGHtest/dynamo/test_exc.py0\ <internal traceback> torch._dynamo.exc.unsupported: call to `torch._dynamo.graph_break()` explanation: user-inserted gSTRING
HIGHtest/quantization/eager/test_quantize_eager_qat.py0create a qat module from a float module args: `mod` a float module, either produced by torch.ao.quantization utilities oSTRING
HIGHtorch/ao/nn/qat/modules/linear.py0create a qat module from a float module args: `mod` a float module, either produced by torch.ao.quantization utilities oSTRING
HIGHtorch/ao/nn/intrinsic/qat/modules/conv_fused.py0create a qat module from a float module args: `mod` a float module, either produced by torch.ao.quantization utilities oSTRING
HIGHtorch/ao/nn/qat/modules/conv.py0create a qat module from a float module args: `mod` a float module, either produced by torch.ao.quantization utilities oSTRING
HIGHtorch/ao/nn/qat/modules/embedding_ops.py0create a qat module from a float module args: `mod` a float module, either produced by torch.ao.quantization utilities oSTRING
HIGHtest/cpython/v3_13/test_cmath.py0assert that floats x and y are identical, in the sense that: (1) both x and y are nans, or (2) both x and y are infinitiSTRING
HIGHtest/cpython/v3_13/test_complex.py0assert that floats x and y are identical, in the sense that: (1) both x and y are nans, or (2) both x and y are infinitiSTRING
HIGHtest/cpython/v3_13/test_float.py0assert that floats x and y are identical, in the sense that: (1) both x and y are nans, or (2) both x and y are infinitiSTRING
HIGHtest/jit/mydecorator.py0helper function used in test_decorator.py. we define it in a separate file on purpose to test that the names in differenSTRING
HIGHtest/jit/myfunction_b.py0helper function used in test_decorator.py. we define it in a separate file on purpose to test that the names in differenSTRING
HIGHtest/jit/myfunction_a.py0helper function used in test_decorator.py. we define it in a separate file on purpose to test that the names in differenSTRING
HIGHtest/functorch/test_rearrange.py0adapted from https://github.com/arogozhnikov/einops/blob/36c7bb16e57d6e57f8f3050f9e07abdf3f00469f/einops/parsing.py. mitSTRING
HIGHtest/functorch/test_parsing.py0adapted from https://github.com/arogozhnikov/einops/blob/36c7bb16e57d6e57f8f3050f9e07abdf3f00469f/einops/parsing.py. mitSTRING
HIGHtorch/_appdirs.py0adapted from https://github.com/arogozhnikov/einops/blob/36c7bb16e57d6e57f8f3050f9e07abdf3f00469f/einops/parsing.py. mitSTRING
HIGHfunctorch/einops/_parsing.py0adapted from https://github.com/arogozhnikov/einops/blob/36c7bb16e57d6e57f8f3050f9e07abdf3f00469f/einops/parsing.py. mitSTRING
HIGHtorch/storage.py0return a copy of this object in custom device memory. if this object is already in device memory and on the correct deviSTRING
HIGHtorch/_utils.py0return a copy of this object in custom device memory. if this object is already in device memory and on the correct deviSTRING
HIGHtorch/utils/backend_registration.py0return a copy of this object in custom device memory. if this object is already in device memory and on the correct deviSTRING
HIGHtorch/_export/passes/replace_with_hop_pass_util.py0split gm into sub-graph-modules using `sequential_split_and_maybe_inline_subgraphs`, and then recursively call itself onSTRING
HIGHtorch/_export/passes/replace_autocast_with_hop_pass.py0split gm into sub-graph-modules using `sequential_split_and_maybe_inline_subgraphs`, and then recursively call itself onSTRING
HIGHtorch/_export/passes/replace_set_grad_with_hop_pass.py0split gm into sub-graph-modules using `sequential_split_and_maybe_inline_subgraphs`, and then recursively call itself onSTRING
HIGHtorch/nn/qat/dynamic/modules/linear.py0intrinsic qat modules. this file is in the process of migration to `torch/ao/nn/intrinsic/qat`, and is kept here for comSTRING
HIGHtorch/nn/qat/modules/linear.py0intrinsic qat modules. this file is in the process of migration to `torch/ao/nn/intrinsic/qat`, and is kept here for comSTRING
HIGHtorch/nn/qat/modules/conv.py0intrinsic qat modules. this file is in the process of migration to `torch/ao/nn/intrinsic/qat`, and is kept here for comSTRING
HIGHtorch/nn/qat/modules/embedding_ops.py0intrinsic qat modules. this file is in the process of migration to `torch/ao/nn/intrinsic/qat`, and is kept here for comSTRING
HIGHtorch/nn/intrinsic/qat/modules/conv_fused.py0intrinsic qat modules. this file is in the process of migration to `torch/ao/nn/intrinsic/qat`, and is kept here for comSTRING
HIGHtorch/nn/intrinsic/qat/modules/linear_relu.py0intrinsic qat modules. this file is in the process of migration to `torch/ao/nn/intrinsic/qat`, and is kept here for comSTRING
HIGHtorch/nn/intrinsic/qat/modules/linear_fused.py0intrinsic qat modules. this file is in the process of migration to `torch/ao/nn/intrinsic/qat`, and is kept here for comSTRING
HIGHtorch/nn/quantized/_reference/modules/linear.py0quantized modules. this file is in the process of migration to `torch/ao/nn/quantized`, and is kept here for compatibiliSTRING
HIGHtorch/nn/quantized/_reference/modules/__init__.py0quantized modules. this file is in the process of migration to `torch/ao/nn/quantized`, and is kept here for compatibiliSTRING
112 more matches not shown…
Redundant / Tautological Comments497 hits · 716 pts
SeverityFileLineSnippetContext
LOW⚡tools/nightly_hotpatch.py168 # Check if the patch was applied successfullyCOMMENT
LOWtools/packaging/build_wheel.py89 # Check if it's PyPy (skip it)COMMENT
LOWtools/packaging/build_wheel.py107 # Check if this version is supportedCOMMENT
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py167 # Check if output should be ignored and which pattern matchedCOMMENT
LOWtools/experimental/torchfuzz/operators/layout.py333 # Check if there's at least one singleton dimensionCOMMENT
LOWtools/linter/adapters/grep_linter.py201 # Check if file is too large to compute replacementCOMMENT
LOWtools/linter/adapters/stable_shim_version_linter.py109 # Check if this is a manual AOTI shim - only enforce versioning on new lines,COMMENT
LOWtools/linter/adapters/stable_shim_version_linter.py159 # Check if this is a newly added lineCOMMENT
LOWtools/linter/adapters/_stable_shim_utils.py348 # Check if we're entering a block commentCOMMENT
LOWtools/linter/adapters/_stable_shim_utils.py413 # Check if this #elif has a version conditionCOMMENT
LOWtools/linter/adapters/s3_init.py42 # Open the file in binary mode and hash it.COMMENT
LOWtools/linter/adapters/update_s3.py25 # Open the file in binary mode and hash it.COMMENT
LOWtools/linter/adapters/newlines_linter.py44 # Check if file is too largeCOMMENT
LOWtools/linter/adapters/codespell_linter.py106 # Check if file is too largeCOMMENT
LOWtools/amd_build/build_amd.py150# Check if the compiler is hip-clang.COMMENT
LOWtools/testing/target_determination/heuristics/utils.py174 # Check if the file extension is in the docs-only setCOMMENT
LOW…ols/lite_interpreter/gen_selected_mobile_ops_header.py87# Write the file selected_mobile_ops.h with optionally:STRING
LOW…ols/lite_interpreter/gen_selected_mobile_ops_header.py126# Write the file selected_mobile_ops.h with optionally:STRING
LOWtools/vendoring/quack/vendor.sh159# Set UPSTREAM_DIR to a private quack checkout at $sha. A local checkout isCOMMENT
LOWtools/stats/import_test_stats.py57 # Check if the file is new enough (see: FILE_CACHE_LIFESPAN_SECONDS). A real checkCOMMENT
LOWtools/stats/check_disabled_tests.py77 # Check if the test is a failureCOMMENT
LOW.ci/docker/common/install_torch_tpu.sh56 # Check if xtrace (set -x) is enabledCOMMENT
LOW.ci/pytorch/common_utils.sh63 # Check if the first argument contains multiple paths separated by spacesCOMMENT
LOW.ci/pytorch/common_utils.sh213 # Check if the wheel has been already been builtCOMMENT
LOW.ci/pytorch/test.sh199# Set OMP_NUM_THREADS to nproc/4 on k8s ARC runners if not already set.COMMENT
LOW.ci/pytorch/test.sh1590 # Check if regression was consistent (majority of runs)COMMENT
LOW.ci/pytorch/smoke_test/smoke_test.py597 # Check if NVSHMEM is compiled in current buildCOMMENT
LOW.ci/pytorch/smoke_test/smoke_test.py613 # Check if NVSHMEM is available on current system.COMMENT
LOW.ci/pytorch/smoke_test/check_binary_symbols.py429 # Check if the stable C shim existsSTRING
LOWtest/test_linalg.py10040 # Set filenames to be unique on a per test basisSTRING
LOWtest/test_reductions.py3496 # Check if reduction happens along the specified dim with and without keepdim. Check withCOMMENT
LOWtest/test_reductions.py3517 # Check if function raises error on specified zero'd dimension as reduction dim.COMMENT
LOWtest/test_reductions.py3555 # Check if function raises error on specified zero'd dimension as reduction dim.COMMENT
LOWtest/test_reductions.py3582 # Check if reduction happens along the specified dimension.COMMENT
LOWtest/test_bundled_images.py90 # Check if fb::image_decode_to_NCHW works as expectedCOMMENT
LOWtest/test_jit.py12923 # Check if the peak sizes at most differ by an empirically obtained factorSTRING
LOWtest/test_view_ops.py1121 # Check if result is a view of x by comparing data pointersCOMMENT
LOWtest/test_view_ops.py1123 # Check if ref is a view of x by comparing data pointersCOMMENT
LOWtest/test_custom_ops.py333 # Check if ret is a tuple and has exactly one and the same elementCOMMENT
LOWtest/test_meta.py423 # Check if it's a view, by testing if any of the returns haveCOMMENT
LOWtest/test_fx_experimental.py920 # Assign ops to different partitions so a single-output submodule exists.STRING
LOWtest/test_modules.py100 # Check if this module creates parameters or registers buffers.COMMENT
LOWtest/test_modules.py111 # Check if a parameter or buffer was created with a tensor not passed to the constructor.COMMENT
LOWtest/test_modules.py269 # Check if the inplace variant of the module gives the same result as the out of placeCOMMENT
LOW⚡test/test_transformers.py3348 # Check if masked rows are zero in outputCOMMENT
LOW⚡test/test_transformers.py3355 # Check if gradients for masked rows are zeroCOMMENT
LOWtest/inductor/test_flex_attention.py8186 # Check if kernel code contains warp specialization parametersCOMMENT
LOWtest/inductor/test_max_autotune.py7715 # Set env to make it work in CI.COMMENT
LOWtest/inductor/test_cutlass_fallback.py18# Check if CUTLASS is availableCOMMENT
LOWtest/inductor/test_cooperative_reductions.py227 # Iterate through elements for comparisonCOMMENT
LOWtest/inductor/test_max_autotune_blackwell.py1877 # Set env to make it work in CI.COMMENT
LOWtest/inductor/test_pad_mm.py681 # Check if any bmm operations had dtype changesCOMMENT
LOWtest/inductor/test_ck_backend.py912 # Set env to make it work in CI.STRING
LOWtest/inductor/test_subgraph_choice.py174 # Set env to make it work in CI.COMMENT
LOWtest/inductor/test_foreach.py1166 # Set requires_grad to be False to avoid mutating a leaf variableCOMMENT
LOWtest/inductor/test_op_dtype_prop.py322 # Check if the op's output should be upcasted/downcasted.COMMENT
LOWtest/inductor/test_aot_inductor_package.py550 # Check if the .so file was build successfullySTRING
LOWtest/inductor/test_aot_inductor_package.py593 # Check if the .so file was build successfullySTRING
LOWtest/inductor/test_aot_inductor_package.py632 # Check if the .a file was build successfullySTRING
LOWtest/inductor/test_aot_inductor_package.py647 # Check if the .a file was build successfullySTRING
437 more matches not shown…
AI Structural Patterns947 hits · 696 pts
SeverityFileLineSnippetContext
LOWtools/test/test_native_aot_tools.py5219CODE
LOWtools/testing/test_run.py135CODE
LOW.ci/pytorch/smoke_test/smoke_test.py75CODE
LOW.ci/pytorch/smoke_test/max_autotune.py35CODE
LOW.ci/pytorch/test_example_code/cnn_smoke_win_arm64.py21CODE
LOW.ci/pytorch/test_example_code/cnn_smoke.py21CODE
LOWtest/test_mps.py16439CODE
LOWtest/test_mps.py12218CODE
LOWtest/test_linalg.py4652CODE
LOWtest/test_utils.py136CODE
LOWtest/test_fx_passes.py160CODE
LOWtest/test_fx_passes.py172CODE
LOWtest/test_fx_passes.py184CODE
LOWtest/test_fx_passes.py212CODE
LOWtest/test_fx_passes.py812CODE
LOWtest/test_fx_passes.py820CODE
LOWtest/test_fx_passes.py939CODE
LOWtest/test_fx_passes.py1122CODE
LOWtest/test_static_runtime.py20CODE
LOWtest/test_functionalization.py488CODE
LOWtest/test_functionalization.py1158CODE
LOWtest/test_decomp.py1690CODE
LOWtest/test_mobile_optimizer.py321CODE
LOWtest/test_xnnpack_integration.py1200CODE
LOWtest/test_xnnpack_integration.py1215CODE
LOWtest/test_torch.py3745CODE
LOWtest/test_dynamic_shapes.py730CODE
LOWtest/test_dynamic_shapes.py2512CODE
LOWtest/test_dynamic_shapes.py5012CODE
LOWtest/test_jit_fuser_te.py2693CODE
LOWtest/test_nn.py2796CODE
LOWtest/test_nn.py6168CODE
LOWtest/test_jit.py697CODE
LOWtest/test_jit.py1240CODE
LOWtest/test_jit.py6624CODE
LOWtest/test_jit.py6959CODE
LOWtest/test_jit.py11799CODE
LOWtest/test_jit.py11774CODE
LOWtest/test_jit.py11788CODE
LOWtest/test_jit.py16033CODE
LOWtest/test_jit.py1857CODE
LOWtest/test_custom_ops.py1254CODE
LOWtest/test_custom_ops.py4464CODE
LOWtest/test_torchfuzz_repros.py52CODE
LOWtest/test_torchfuzz_repros.py93CODE
LOWtest/test_torchfuzz_repros.py138CODE
LOWtest/test_torchfuzz_repros.py181CODE
LOWtest/test_torchfuzz_repros.py230CODE
LOWtest/test_torchfuzz_repros.py264CODE
LOWtest/test_opaque_obj_v2.py397CODE
LOWtest/test_opaque_obj_v2.py3221CODE
LOWtest/test_opaque_obj_v2.py3583CODE
LOWtest/test_autograd.py8026CODE
LOWtest/test_autograd.py8226CODE
LOWtest/test_autograd.py8885CODE
LOWtest/test_autograd.py14008CODE
LOWtest/test_autograd.py17703CODE
LOWtest/test_autograd.py17717CODE
LOWtest/test_autograd.py17728CODE
LOWtest/test_autograd.py16602CODE
887 more matches not shown…
AI Slop Vocabulary331 hits · 653 pts
SeverityFileLineSnippetContext
LOWtools/optional_submodules.py71 # Otherwise just call top-level function of choiceCOMMENT
MEDIUMtools/experimental/torchfuzz/visualize_graph.py77 # Create comprehensive labelCOMMENT
LOWtools/experimental/torchfuzz/operators/layout.py69 # For single-dim input, just use the exact element countCOMMENT
LOWtools/experimental/torchfuzz/operators/layout.py150 # For single-dim input, just use the exact element countCOMMENT
LOWtools/linter/adapters/gb_registry_linter.py210 # Empty registry, just add all entriesCOMMENT
MEDIUMtools/autograd/gen_python_functions.py596 # find and leverage the original ATen signature (to which it delegatesCOMMENT
MEDIUMtools/autograd/gen_autograd_functions.py196# `grads` in order to utilize and apply the existing derivative definitionsCOMMENT
MEDIUMtools/autograd/gen_autograd_functions.py684 # note(crcrpar): [nuanced return type of out-of-place foreach functions]STRING
MEDIUMtools/autograd/gen_variable_type.py428# pertaining to its output:COMMENT
MEDIUMtools/autograd/gen_variable_type.py1570 # See Note [nuanced return type of out-of-place foreach functions]COMMENT
LOWtools/autograd/gen_variable_type.py2127 # View ops create fw_grad that already is a view of the base's fw_grad so just use thatCOMMENT
LOWtools/autograd/gen_trace_type.py180 # For inplace: just add the input to the end to confirm with the JIT schemaCOMMENT
MEDIUMtools/alerts/create_alerts.py182# Creates a Dict of Job Name -> [JobData]. Essentially a Column in HUDSTRING
LOWtools/code_coverage/package/oss/init.py128 # if this argument is specified, just return itselfCOMMENT
MEDIUMtools/stats/upload_test_stats.py67 # To do this, we leverage an implementation detail of how we write outCOMMENT
LOW.ci/docker/manywheel/s390_scripts/build.sh51# So let's just use the same one pip and everyone usesCOMMENT
LOW.ci/docker/common/install_nccl.sh6# so we can just use the default NCCL version.COMMENT
LOW.ci/wheel/linux/build_common.sh181 # Note - just use whichever python we happen to be onCOMMENT
LOW.ci/pytorch/common_utils.sh158 # There won't be nvidia-smi in nogpu tests, so just set TORCH_CUDA_ARCH_LIST to the defaultCOMMENT
MEDIUM.ci/pytorch/run_tests.sh7# Essentially runs pytorch/test/run_test.py, but keeps track of which tests toCOMMENT
MEDIUM.ci/pytorch/test.sh571 # The op's own accuracy harness: fp16/bf16 against an fp64 reference withCOMMENT
MEDIUM.ci/pytorch/test_fa3_abi_stable.sh22# To be as robust against upstream changes as possible, minimally only stageCOMMENT
MEDIUMtest/test_mps.py7677 # Essentially remained over integral types should rely on integers opsCOMMENT
LOWtest/test_mps.py16675 # fail, so just set CWD to this script's directorySTRING
LOWtest/test_mps.py16720 # fail, so just set CWD to this script's directorySTRING
LOWtest/test_python_dispatch.py2303 e.contiguous() # this will just return the original TensorImpl since is_contiguous = TrueCODE
MEDIUMtest/test_linalg.py5992 # Paragraph 2.1 of the aforementioned reference states these matricesCOMMENT
LOWtest/test_import_stats.py11# time is greater than a certain threshold, but for now we just use themCOMMENT
LOWtest/test_tensor_creation_ops.py2269 # instead of repeating this calculation, we just use empty_strided which does the sameCOMMENT
MEDIUM⚡test/test_nn.py14570 # Probability-target counterpart of the scalar harness legs:COMMENT
LOWtest/test_pytree.py929 # fail, so just set CWD to this script's directorySTRING
MEDIUMtest/test_custom_ops.py1527 # Not comprehensive (it doesn't need to be), just a check that our mechanism worksCOMMENT
LOW⚡test/test_stateless.py911 # fail, so just set CWD to this script's directorySTRING
LOW⚡test/test_stateless.py935 # fail, so just set CWD to this script's directorySTRING
MEDIUMtest/test_jit_llga_fuser.py61 # so we disable AMP for JIT & leverage eager-mode AMP.COMMENT
LOWtest/test_cuda.py4533 # fail, so just set CWD to this script's directorySTRING
LOWtest/test_cuda.py9279 # fail, so just set CWD to this script's directorySTRING
MEDIUMtest/run_test.py458 # in that they utilize the usual python test infrastructure.STRING
LOWtest/run_test.py565 # to just return successfully hereSTRING
MEDIUMtest/test_dlpack.py846 # Run the comprehensive C++ testSTRING
MEDIUMtest/test_meta.py792# useful for more comprehensive testing e.g., as seen inSTRING
MEDIUMtest/test_binary_ufuncs.py2066 # in a binary operation in conjunction with a Tensor on allCOMMENT
MEDIUMtest/test_autograd.py3033 # Definitely pick one tensor to addCOMMENT
LOWtest/test_autograd.py5092 # This op will just return grad_output two times in backwardCOMMENT
LOWtest/test_autograd.py12263 # fail, so just set CWD to this script's directorySTRING
MEDIUMtest/test_nestedtensor.py9053# OpInfo-based NJT tests. These tests utilize an NJT-specific op_db generated from the standardCOMMENT
MEDIUMtest/test_scaled_matmul_cuda.py2129 # by cosine similarity (robust to kernel differences) rather than element-wise.COMMENT
MEDIUMtest/test_precompile.py4715 # The crossref harness keeps a dispatch mode active while the capture runs,COMMENT
LOWtest/test_testing.py3012 # fail, so just set CWD to this script's directoryCOMMENT
LOWtest/test_testing.py3174 # fail, so just set CWD to this script's directoryCOMMENT
MEDIUMtest/inductor/test_deterministic.py136 # Halving sweep, matching what the benchmark harness does.COMMENT
LOW⚡test/inductor/test_compiled_autograd.py186 # fail, so just set CWD to this script's directoryCOMMENT
LOWtest/inductor/test_triton_kernels.py6534 # we can just pass the function 'f' for dynamoSTRING
LOWtest/inductor/test_triton_kernels.py6818 # we can just pass the function 'f' for dynamoSTRING
MEDIUMtest/inductor/test_max_autotune_blackwell.py493 # Fundamentally we should fix the triton_blackwell_ws_persistent_tma templateCOMMENT
MEDIUM⚡test/inductor/test_compile_to_python.py430 # profiling harness. ``def call(`` matches both the flat ``def call(args)`` and theCOMMENT
MEDIUMtest/inductor/test_compile_to_python.py178 # than an Inductor profiling harness: none of these debug entry points appear.COMMENT
MEDIUMtest/inductor/test_control_flow.py62 # Simple robust loss: abs values + small constant to avoid inf/nanCOMMENT
MEDIUMtest/inductor/test_torchinductor.py18241 # odd number on purpose to trigger comprehensive paddingCOMMENT
MEDIUM⚡test/inductor/test_torchinductor_opinfo_properties.py769 # Use reference_inputs for more comprehensive test coverageCOMMENT
271 more matches not shown…
Structural Annotation Overuse383 hits · 648 pts
SeverityFileLineSnippetContext
LOWtools/experimental/torchfuzz/README.md528### Step 1: Create Operator ClassCOMMENT
LOWtools/experimental/torchfuzz/README.md564### Step 2: Register Your ModuleCOMMENT
LOWtools/experimental/torchfuzz/README.md581### Step 3: Add to Template (Optional)COMMENT
LOWtools/experimental/torchfuzz/README.md598### Step 4: Test Your OperatorCOMMENT
LOWtest/test_varlen_attention.py388 # NOTE: This class is currently CUDA-specific, although a significant portion of itsCOMMENT
LOW⚡test/test_autograd.py8382 # Step 1: Checkpointed forward with batch_size=4 → static graph G0COMMENT
LOW⚡test/test_autograd.py8386 # Step 2: Non-checkpointed call with batch_size=7 triggers automaticCOMMENT
LOW⚡test/test_autograd.py8394 # Step 3: Backward. Checkpoint recomputes fn(x) but now hits G1COMMENT
LOW⚡test/cpp_extensions/cudnn_extension.cpp43 // Step 1: Check inputs. This will throw an error if inputs are invalid, so noCOMMENT
LOW⚡test/cpp_extensions/cudnn_extension.cpp46 // Step 2: Create descriptorsCOMMENT
LOWtest/cpp_extensions/cudnn_extension.cpp59 // Step 3: Apply CuDNN functionCOMMENT
LOW⚡test/cpp_extensions/cudnn_extension.cpp71 // Step 4: Destroy descriptorsCOMMENT
LOW⚡test/cpp_extensions/cudnn_extension.cpp73 // Step 5: Return something (optional)COMMENT
LOW⚡test/distributed/tensor/test_redistribute.py3159 # Step 1: reduce_scatter on mesh dim 0 (size 2)COMMENT
LOW⚡test/distributed/tensor/test_redistribute.py3163 # Step 2: reduce_scatter on mesh dim 1 (size 3)COMMENT
LOWtest/distributed/tensor/experimental/test_local_map.py833 # Step 1: BuggyDPMatmul without spmd_types -> wrong W gradient.COMMENT
LOWtest/distributed/tensor/experimental/test_local_map.py850 # Step 2: BuggyDPMatmul with spmd_types=True -> caught.COMMENT
LOWtest/distributed/tensor/experimental/test_local_map.py866 # Step 3: CorrectDPMatmul with spmd_types=True -> correct gradientsCOMMENT
LOWtest/distributed/tensor/parallel/test_tp_examples.py222 # Step 3: Run test by comparing outputs from single-gpu and multi-gpu models.COMMENT
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py305 ) # Step 1: Initialize single-gpu models.CODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py308 ) # Step 2: Setup tp model, place onto device mesh.CODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py311 ) # Step 3: Setup optimizers for both modelsCODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py433 ) # Step 1: Initialize single-gpu models.CODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py436 ) # Step 2: Setup tp model, place onto device mesh.CODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py439 ) # Step 3: Setup optimizers for both modelsCODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py442 ) # Step 4: set `requires_grad` patternsCODE
LOWtest/dynamo/test_activation_offloading.py596 # Step 1: cold — allocates new pinned bufferCOMMENT
LOWtest/dynamo/test_activation_offloading.py609 # Step 2: warm — reuses pooled bufferCOMMENT
LOW⚡test/dynamo/test_repros.py7958 # Step 1: Compile a static shapes graphCOMMENT
LOW⚡test/dynamo/test_repros.py7967 # Step 2: Compile a dynamic shapes graphCOMMENT
LOW⚡test/dynamo/test_repros.py7977 # Step 3: Run with Step 1's inputsCOMMENT
LOW⚡test/dynamo/test_repros.py8000 # Step 1: Compile a static shapes graphCOMMENT
LOW⚡test/dynamo/test_repros.py8009 # Step 2: Compile a dynamic shapes graphCOMMENT
LOW⚡test/dynamo/test_repros.py8019 # Step 3: Run with Step 1's inputsCOMMENT
LOWtest/profiler/test_profiler.py4077 # Step 3: under the patch, RECORD -> DEVICE_STOPPED fires stop_trace +COMMENT
LOW.agents/skills/aoti-debug/triton-index-out-of-bounds.md31## Step 1: Collect AOTI PackageCOMMENT
LOW.agents/skills/aoti-debug/triton-index-out-of-bounds.md43## Step 2: Locate the Failing Kernel in C++ WrapperCOMMENT
LOW.agents/skills/aoti-debug/triton-index-out-of-bounds.md72## Step 3: Understand the Kernel LogicCOMMENT
LOW.agents/skills/aoti-debug/triton-index-out-of-bounds.md99## Step 4: Identify the Dynamic Shape VariableCOMMENT
LOW.agents/skills/aoti-debug/triton-index-out-of-bounds.md135## Step 5: Trace Back to Model InputCOMMENT
LOW.agents/skills/aoti-debug/triton-index-out-of-bounds.md160## Step 6: Map to Model CodeCOMMENT
LOW.agents/skills/aoti-debug/SKILL.md93### Step 1: Sanity ChecksCOMMENT
LOW.agents/skills/aoti-debug/SKILL.md107### Step 2: Pinpoint the CUDA IMACOMMENT
LOW.agents/skills/aoti-debug/SKILL.md121### Step 3: Identify Problematic Kernels with Intermediate Value DebuggerCOMMENT
LOW.agents/skills/metal-kernel/SKILL.md24## Step 1: Update native_functions.yamlCOMMENT
LOW.agents/skills/metal-kernel/SKILL.md89## Step 2: Implement Metal KernelCOMMENT
LOW.agents/skills/metal-kernel/SKILL.md236## Step 3: Implement Host-Side StubCOMMENT
LOW.agents/skills/metal-kernel/SKILL.md296## Step 4: CompileCOMMENT
LOW.agents/skills/pyrefly-type-coverage/SKILL.md14### Step 1: Remove file-level type-check suppressionsCOMMENT
LOW.agents/skills/pyrefly-type-coverage/SKILL.md26### Step 2: Add a sub-config entry to `pyrefly.toml`COMMENT
LOW.agents/skills/pyrefly-type-coverage/SKILL.md45### Step 3: Run pyreflyCOMMENT
LOW.agents/skills/pyrefly-type-coverage/SKILL.md70### Step 4: Add annotationsCOMMENT
LOW.agents/skills/pyrefly-type-coverage/SKILL.md200### Step 5: IterateCOMMENT
LOW.agents/skills/pyrefly-type-coverage/SKILL.md209### Step 6: LintCOMMENT
LOW.agents/skills/pyrefly-type-coverage/SKILL.md220### Step 7: TestCOMMENT
LOW⚡.agents/skills/pt2-bug-basher/SKILL.md260# Step 1: Generate the minifier launcherCOMMENT
LOW⚡.agents/skills/pt2-bug-basher/SKILL.md263# Step 2: Run the minifierCOMMENT
LOW⚡.agents/skills/pt2-bug-basher/SKILL.md266# Step 3: Run the minimized reproCOMMENT
LOW.agents/skills/at-dispatch-v2/SKILL.md44### Step 1: Add the Dispatch_v2.h includeCOMMENT
LOW.agents/skills/at-dispatch-v2/SKILL.md55### Step 2: Identify the old dispatch patternCOMMENT
323 more matches not shown…
Fake / Example Data750 hits · 628 pts
SeverityFileLineSnippetContext
LOW⚡test/test_fx_passes.py589 if node.op not in ("placeholder", "output")CODE
LOW⚡test/test_fx_passes.py595 node.name for node in fused_submodule.graph.nodes if node.op == "placeholder"CODE
LOWtest/test_fx_passes.py558 if node.op not in ("placeholder", "output")CODE
LOWtest/test_fx_passes.py564 node.name for node in fused_submodule.graph.nodes if node.op == "placeholder"CODE
LOWtest/test_fx_passes.py625 node.name for node in fused_submodule.graph.nodes if node.op == "placeholder"CODE
LOWtest/test_fx_passes.py656 node.name for node in fused_submodule.graph.nodes if node.op == "placeholder"CODE
LOWtest/test_fx_passes.py1194 if not test_case.match_placeholder and node.op == "placeholder":CODE
LOW⚡test/test_proxy_tensor.py1168 if node.op == "placeholder"CODE
LOWtest/test_proxy_tensor.py1210 placeholders = [node for node in gm.graph.nodes if node.op == "placeholder"]CODE
LOWtest/test_proxy_tensor.py1799 meta_inp = _get_node(fx_g, lambda x: x.op == 'placeholder')CODE
LOWtest/test_dynamic_shapes.py984 if n.op == "placeholder" and "val" in n.metaCODE
LOWtest/test_dynamic_shapes.py7681 if node.op == "placeholder":CODE
LOWtest/test_opaque_obj_v2.py4286 if n.op == "placeholder" and is_opaque_node(n)CODE
LOWtest/test_opaque_obj_v2.py4309 placeholders = [n for n in captured_gm.graph.nodes if n.op == "placeholder"]CODE
LOWtest/test_opaque_obj_v2.py4323 restored_phs = [n for n in restored_gm.graph.nodes if n.op == "placeholder"]CODE
LOWtest/test_opaque_obj_v2.py4415 placeholders = [n for n in gm.graph.nodes if n.op == "placeholder"]CODE
LOW⚡test/test_fx_experimental.py1384 self.assertEqual(nodes[0].op, "placeholder")CODE
LOWtest/test_fx_experimental.py345 if node.op not in {"output", "placeholder", "get_attr"}:CODE
LOWtest/test_fx_experimental.py403 if node.op not in {"output", "placeholder", "get_attr"}:CODE
LOWtest/test_fx_experimental.py468 if node.op not in {"placeholder", "get_attr", "output"}:CODE
LOWtest/test_fx_experimental.py1166 if node.op in ("placeholder", "get_attr", "output"):CODE
LOWtest/test_fx_experimental.py1221 if node.op in ("placeholder", "get_attr", "output"):CODE
LOWtest/test_fx_experimental.py1337 if node.op in ("placeholder", "get_attr", "output"):CODE
LOWtest/test_fx_experimental.py1362 if node.op in ("placeholder", "get_attr", "output"):CODE
LOW⚡test/test_fx_experimental.py1019 self.assertEqual(nodes[0].op, "placeholder")STRING
LOW⚡test/test_fx_experimental.py1594 if node.op == "placeholder":STRING
LOWtest/test_fx_experimental.py1153 elif node.op == "placeholder":STRING
LOWtest/test_fx_experimental.py1609 ("placeholder", "x"),STRING
LOWtest/test_fx_experimental.py1638 ("placeholder", "x"),STRING
LOW⚡test/test_dynamic_spec_make_fx.py35 if node.op != "placeholder":CODE
LOW⚡test/test_fx.py1569 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOW⚡test/test_fx.py2328 if node.op == "placeholder":CODE
LOW⚡test/test_fx.py2343 node.meta.get("val") for node in gm.graph.nodes if node.op == "placeholder"CODE
LOW⚡test/test_fx.py2763 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOW⚡test/test_fx.py2773 x : torch.fx.Node = graph.create_node('placeholder', 'x')CODE
LOW⚡test/test_fx.py2782 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py950 if node.op in {"placeholder", "output"}:CODE
LOWtest/test_fx.py999 a: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py1081 if n.op == "placeholder":CODE
LOWtest/test_fx.py1146 placeholder_nodes.append(graph.create_node("placeholder", name))CODE
LOWtest/test_fx.py1498 FileCheck().check("x").check("placeholder").check("y").check(CODE
LOWtest/test_fx.py1499 "placeholder"CODE
LOWtest/test_fx.py1511 a: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py1546 node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py2053 a: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py2162 a: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py2213 "placeholder",CODE
LOWtest/test_fx.py2256 if node.op == "placeholder":CODE
LOWtest/test_fx.py2820 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py2885 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py2886 y: torch.fx.Node = graph.create_node("placeholder", "y")CODE
LOWtest/test_fx.py2902 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py2920 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py2921 y: torch.fx.Node = graph.create_node("placeholder", "y")CODE
LOWtest/test_fx.py2937 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py2938 y: torch.fx.Node = graph.create_node("placeholder", "y")CODE
LOWtest/test_fx.py2988 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py3006 x: torch.fx.Node = graph.create_node("placeholder", "x")CODE
LOWtest/test_fx.py3077 if not (input_node and input_node.op == "placeholder"):CODE
LOWtest/test_fx.py3079 f"Expected input_node to exist and have op='placeholder', "CODE
690 more matches not shown…
Verbosity Indicators281 hits · 481 pts
SeverityFileLineSnippetContext
LOW⚡test/test_autograd.py8382 # Step 1: Checkpointed forward with batch_size=4 → static graph G0COMMENT
LOW⚡test/test_autograd.py8386 # Step 2: Non-checkpointed call with batch_size=7 triggers automaticCOMMENT
LOW⚡test/test_autograd.py8394 # Step 3: Backward. Checkpoint recomputes fn(x) but now hits G1COMMENT
LOWtest/test_testing.py1228 # We need to check if this test is still needed or if this behavior is now enabled by default.COMMENT
LOW⚡test/cpp_extensions/cudnn_extension.cpp43 // Step 1: Check inputs. This will throw an error if inputs are invalid, so noCOMMENT
LOW⚡test/cpp_extensions/cudnn_extension.cpp46 // Step 2: Create descriptorsCOMMENT
LOWtest/cpp_extensions/cudnn_extension.cpp59 // Step 3: Apply CuDNN functionCOMMENT
LOW⚡test/cpp_extensions/cudnn_extension.cpp71 // Step 4: Destroy descriptorsCOMMENT
LOW⚡test/cpp_extensions/cudnn_extension.cpp73 // Step 5: Return something (optional)COMMENT
LOW⚡test/distributed/tensor/test_redistribute.py3159 # Step 1: reduce_scatter on mesh dim 0 (size 2)COMMENT
LOW⚡test/distributed/tensor/test_redistribute.py3163 # Step 2: reduce_scatter on mesh dim 1 (size 3)COMMENT
LOWtest/distributed/tensor/experimental/test_local_map.py833 # Step 1: BuggyDPMatmul without spmd_types -> wrong W gradient.COMMENT
LOWtest/distributed/tensor/experimental/test_local_map.py850 # Step 2: BuggyDPMatmul with spmd_types=True -> caught.COMMENT
LOWtest/distributed/tensor/experimental/test_local_map.py866 # Step 3: CorrectDPMatmul with spmd_types=True -> correct gradientsCOMMENT
LOWtest/distributed/tensor/parallel/test_tp_examples.py222 # Step 3: Run test by comparing outputs from single-gpu and multi-gpu models.COMMENT
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py305 ) # Step 1: Initialize single-gpu models.CODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py308 ) # Step 2: Setup tp model, place onto device mesh.CODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py311 ) # Step 3: Setup optimizers for both modelsCODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py433 ) # Step 1: Initialize single-gpu models.CODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py436 ) # Step 2: Setup tp model, place onto device mesh.CODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py439 ) # Step 3: Setup optimizers for both modelsCODE
LOW⚡test/distributed/tensor/parallel/test_tp_examples.py442 ) # Step 4: set `requires_grad` patternsCODE
LOWtest/dynamo/test_activation_offloading.py596 # Step 1: cold — allocates new pinned bufferCOMMENT
LOWtest/dynamo/test_activation_offloading.py609 # Step 2: warm — reuses pooled bufferCOMMENT
LOW⚡test/dynamo/test_repros.py7958 # Step 1: Compile a static shapes graphCOMMENT
LOW⚡test/dynamo/test_repros.py7967 # Step 2: Compile a dynamic shapes graphCOMMENT
LOW⚡test/dynamo/test_repros.py7977 # Step 3: Run with Step 1's inputsCOMMENT
LOW⚡test/dynamo/test_repros.py8000 # Step 1: Compile a static shapes graphCOMMENT
LOW⚡test/dynamo/test_repros.py8009 # Step 2: Compile a dynamic shapes graphCOMMENT
LOW⚡test/dynamo/test_repros.py8019 # Step 3: Run with Step 1's inputsCOMMENT
LOWtest/profiler/test_profiler.py4077 # Step 3: under the patch, RECORD -> DEVICE_STOPPED fires stop_trace +COMMENT
LOWtorch/_custom_ops.py61 >>> # Step 1: define the custom op.CODE
LOWtorch/_custom_ops.py72 >>> # Step 2: Register an implementation for various PyTorch subsystemsCODE
LOWtorch/_custom_ops.py144 >>> # Step 1: define the custom op.CODE
LOWtorch/_custom_ops.py155 >>> # Step 2: Register an implementation for various PyTorch subsystemsCODE
LOWtorch/_ops.py421 # Step 1: dispatch on any user TorchDispatchModesCOMMENT
LOWtorch/_ops.py449 # Step 2: dispatch on any subclassesCOMMENT
LOWtorch/_ops.py682 # When we are unsetting a mode, we need to check if there isCOMMENT
LOWtorch/_ops.py732 # When we are setting a mode, we need to check if there isCOMMENT
LOWtorch/csrc/dynamo/init.cpp362 // even if __next__ is not defined, so we need to check if the method is trulyCOMMENT
LOWtorch/csrc/utils/python_arg_parser.cpp566 // Step 1: Try to dispatch based on the mode stack, *ignoring* infraCOMMENT
LOWtorch/csrc/utils/python_arg_parser.cpp616 // Step 1: Try to dispatch on any user TorchDispatchModes (including infraCOMMENT
LOWtorch/csrc/utils/python_arg_parser.cpp627 // Step 2: Try to dispatch based on any user subclasses,COMMENT
LOWtorch/csrc/jit/tensorexpr/loopnest.cpp1963 // We need to check if fusing the loops results in a loop-carried dependence.COMMENT
LOWtorch/csrc/lazy/ts_backend/ts_eager_fallback.cpp222 // Step 1: Convert all non-eager tensor inputs into eager tensors and put themCOMMENT
LOW⚡torch/csrc/lazy/ts_backend/ts_eager_fallback.cpp254 // Step 2: Call the underlying eager implementation of the operatorCOMMENT
LOW⚡torch/csrc/lazy/ts_backend/ts_eager_fallback.cpp257 // Step 3: We need to take special care to handle mutable aliases properly:COMMENT
LOWtorch/csrc/lazy/ts_backend/ts_eager_fallback.cpp268 // Step 4: Convert any eager output tensors back to the original input device.COMMENT
LOWtorch/_functorch/eager_transforms.py661 # Step 1: Construct grad_outputs by splitting the standard basisCOMMENT
LOWtorch/_functorch/eager_transforms.py778 # Step 2: The returned jacobian is one big tensor per input. In this step,COMMENT
LOWtorch/_functorch/eager_transforms.py792 # Step 3: Right now, `jacobian` is a List[List[Tensor]].COMMENT
LOWtorch/_functorch/_aot_autograd/functional_utils.py413 # For outputs aliasing inputs, we need to check if the requires-gradness has changed.COMMENT
LOWtorch/_functorch/_aot_autograd/functional_utils.py415 # For outputs aliasing inputs, we need to check if the dtype has changed.COMMENT
LOW⚡…rch/_functorch/_aot_autograd/graph_capture_wrappers.py1343 # Step 1: wrap tensor inputs into subclasses if necessaryCOMMENT
LOW⚡…rch/_functorch/_aot_autograd/graph_capture_wrappers.py1348 # Step 2: call the inner function, with our (maybe subclass) inputsCOMMENT
LOW…rch/_functorch/_aot_autograd/graph_capture_wrappers.py1381 # Step 3: Unwrap any subclass outputs back into dense tensorsCOMMENT
LOW⚡…ctorch/_activation_offloading/activation_offloading.py782 # Step 1: Identify reload patternsCOMMENT
LOW⚡…ctorch/_activation_offloading/activation_offloading.py787 # Step 2: Reorder nodes by directly manipulating the graphCOMMENT
LOW⚡…ctorch/_activation_offloading/activation_offloading.py806 # Step 1: Decide which nodes to offload and mark themCOMMENT
LOW⚡…ctorch/_activation_offloading/activation_offloading.py815 # Step 2: Add offload and reload nodes to the graphsCOMMENT
221 more matches not shown…
Modern AI Meta-Vocabulary79 hits · 246 pts
SeverityFileLineSnippetContext
MEDIUM.ci/wheel/README.md43## Per-platform orchestrationCOMMENT
MEDIUM.ci/wheel/mac/build.sh5# repair_wheel.py) are non-orchestrating stages that stay version-agnostic.COMMENT
MEDIUM.ci/wheel/mac/build_all_macos_wheels.sh8# Per-Python orchestration (env setup, deps, build, delocate) lives inCOMMENT
MEDIUM…ofiler/profiler_global_callback_stale_session_test.cpp12#include <torch/csrc/profiler/orchestration/observer.h>COMMENT
MEDIUMtest/profiler/test_cuspy.py569 # The window orchestration: keys each launch by correlation id -> exec graph id (from aCOMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py344 # AROUND the orchestration (graph_compile._aot_stage2c_make_inference_function),COMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py346 # orchestration -- dedup(orchestration(inner)) -- so the orchestration sees theCOMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py375 # orchestration. It collapses the aliased inputs into a synthetic base BEFORE theCOMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py376 # orchestration runs, so it must be composed OUTSIDE it (same requirement as dedup):COMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py378 # which inverted the chain to orchestration(synthetic_base(inner))).COMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py455 # so the inner compile MUST run under autocast for the orchestration to emitCOMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py457 # baked in; the orchestration then disables autocast at runtime to keep the denseCOMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py990 # exactly one forward orchestration wrapper and rejects an empty capture rather thanCOMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py1000 # The inlined orchestration hoists its globals to module scope; a hoisted name thatCOMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py1113 # A valid forward orchestration wrapper whose codegen'd signature matches what theCOMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py1115 # broken sibling so the SIBLING is what trips the guard, not a missing orchestration.COMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py1127 # front (before chain wiring) even when paired with a valid forward orchestration:COMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py1187 # target origin (the last orchestration's), so a foreign-origin wrapper must beCOMMENT
MEDIUM⚡test/functorch/test_compile_to_python.py1188 # dropped from the emitted source while the target orchestration still composes.COMMENT
MEDIUMtest/functorch/test_compile_to_python.py154 # _inner_call, and the AOTAutograd orchestration is inlined as a real def that theCOMMENT
MEDIUMtest/functorch/test_compile_to_python.py320 # (the _alias_fn / gen_alias_from_base path, which the orchestration closes overCOMMENT
MEDIUMtest/functorch/test_compile_to_python.py434 # those wrap the orchestration rather than the inner call -- see the dedup /COMMENT
MEDIUMtest/functorch/test_compile_to_python.py508 # The orchestration is spliced as a real top-level ``def _runtime_wrapper`` that theCOMMENT
MEDIUMtest/functorch/test_compile_to_python.py520 # the orchestration is invoked with contextlib.nullcontext + a no-op in those twoCOMMENT
MEDIUMtest/functorch/test_compile_to_python.py562 # that token is the orchestration's first parameter and appears in every composedCOMMENT
MEDIUMtest/functorch/test_compile_to_python.py948 # The generated call invokes the orchestration positionally, so a changed signatureCOMMENT
MEDIUMtest/functorch/test_compile_to_python.py1172 # Two orchestration wrappers sharing one origin_id (so the origin filter keeps both)COMMENT
MEDIUMtorch/csrc/autograd/profiler_python.cpp29#include <torch/csrc/profiler/orchestration/python_tracer.h>COMMENT
MEDIUMtorch/csrc/autograd/profiler_kineto.cpp20#include <torch/csrc/profiler/orchestration/observer.h>COMMENT
MEDIUMtorch/csrc/mtia/profiler/MTIAMemoryProfiler.h2#include <torch/csrc/profiler/orchestration/python_tracer.h>COMMENT
MEDIUMtorch/csrc/profiler/collection.cpp2#include <torch/csrc/profiler/orchestration/vulkan.h>COMMENT
MEDIUMtorch/csrc/profiler/api.h3#include <torch/csrc/profiler/orchestration/observer.h>COMMENT
MEDIUMtorch/csrc/profiler/collection.h21#include <torch/csrc/profiler/orchestration/python_tracer.h>COMMENT
MEDIUMtorch/csrc/profiler/orchestration/python_tracer.cpp1#include <torch/csrc/profiler/orchestration/python_tracer.h>COMMENT
MEDIUMtorch/csrc/profiler/orchestration/observer.cpp1#include <torch/csrc/profiler/orchestration/observer.h>COMMENT
MEDIUMtorch/csrc/profiler/orchestration/vulkan.cpp1#include <torch/csrc/profiler/orchestration/vulkan.h>COMMENT
MEDIUMtorch/_functorch/_aot_autograd/runtime_wrappers.py996 # The orchestration closes over these two codegen'd epilogue functions directlyCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py321 # caught by the orchestration count/wiring guards below (a second orchestration tripsCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py323 # target is the origin of the LAST captured orchestration wrapper: a foreign loweringCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py324 # appends its orchestration before the outer one finishes, so the final orchestrationCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py422 # This is what lets the composer tell the inner call apart from the orchestration'sCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py425 # wrapping the inner call, composed INSIDE the orchestration) are distinguished fromCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py427 # orchestration in graph_compile._aot_stage2c_make_inference_function).COMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py430 # Name of the single-arg adapter emitted over the orchestration; the innermost outerCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py431 # wrapper closes over the orchestration's outer closure and is wired to this name.COMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py434 # The orchestration's outer closure is the object outer wrappers wrap. The composerCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py435 # never captures it directly (the captured orchestration ``fn`` is the innerCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py621 # The single-arg adapter over the orchestration (emitted only when outer wrappersCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py623 # orchestration's positional (_compiled_fn_, _first_ctx_, _on_before_call_, args)COMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py624 # signature to that. When there are no outer wrappers the orchestration is invokedCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py705 # ``call`` invokes the orchestration directly when nothing wraps it; when outerCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py707 # adapter, then the orchestration) -- so the orchestration-substitution comment livesCOMMENT
MEDIUM⚡torch/_functorch/_aot_autograd/to_standalone_python.py708 # on whichever site actually invokes the orchestration.COMMENT
MEDIUMtorch/_functorch/_aot_autograd/to_standalone_python.py93# calls the link it wraps -- the orchestration's outer closure for the innermost outerCOMMENT
MEDIUMtorch/_functorch/_aot_autograd/to_standalone_python.py94# wrapper), plus the orchestration's output-alias and mutation epilogue helpers, whichCOMMENT
MEDIUMtorch/_functorch/_aot_autograd/to_standalone_python.py108# _replay_aliases_ = _alias_fn # (3) orchestration's refCOMMENT
MEDIUMtorch/_functorch/_aot_autograd/to_standalone_python.py223# codegen'd runtime wrappers, not reimplemented: each (the orchestration and any chainCOMMENT
MEDIUMtorch/_functorch/_aot_autograd/to_standalone_python.py246 # An OUTER wrapper (dedup / synthetic base) closes over the orchestration's outerCOMMENT
MEDIUMtorch/_functorch/_aot_autograd/to_standalone_python.py248 # path, so wire it to the single-arg orchestration entry adapter the composer emits.COMMENT
MEDIUMtorch/_functorch/_aot_autograd/to_standalone_python.py360 # The generated ``call`` invokes the orchestration POSITIONALLY by its own name (seeCOMMENT
19 more matches not shown…
Dead Code84 hits · 160 pts
SeverityFileLineSnippetContext
MEDIUMtest/test_datapipe.py3741CODE
MEDIUMtest/test_functionalization.py772CODE
MEDIUMtest/test_functionalization.py773CODE
MEDIUMtest/test_functionalization.py774CODE
MEDIUMtest/test_functionalization.py775CODE
MEDIUMtest/test_jit.py14119CODE
MEDIUMtest/test_jit.py9969CODE
MEDIUMtest/test_jit_fuser.py734CODE
MEDIUMtest/test_jit_fuser.py735CODE
MEDIUMtest/test_jit_fuser.py737CODE
MEDIUMtest/test_jit_fuser.py739CODE
MEDIUMtest/test_jit_fuser.py742CODE
MEDIUMtest/test_jit_fuser.py746CODE
MEDIUMtest/test_autograd.py16495CODE
MEDIUMtest/test_fx.py5582CODE
MEDIUMtest/test_fx.py4088CODE
MEDIUMtest/inductor/test_ordered_set.py23CODE
MEDIUMtest/inductor/test_ordered_set.py1010CODE
MEDIUMtest/onnx/test_utility_funs.py109CODE
MEDIUMtest/dynamo/test_misc.py11172CODE
MEDIUMtest/dynamo/test_misc.py14659CODE
MEDIUMtest/dynamo/test_generator.py1033CODE
MEDIUMtest/dynamo/test_generator.py1044CODE
MEDIUMtest/dynamo/test_generator.py1522CODE
MEDIUMtest/dynamo/test_exceptions.py889CODE
MEDIUMtest/dynamo/test_aot_autograd_cache.py3754CODE
MEDIUMtest/dynamo/test_guard_manager.py1046CODE
MEDIUMtest/quantization/fx/test_quantize_fx.py2635CODE
MEDIUMtest/quantization/fx/test_quantize_fx.py2637CODE
MEDIUMtest/quantization/fx/test_quantize_fx.py2640CODE
MEDIUMtest/cpython/v3_13/test_fractions.py230CODE
MEDIUMtest/cpython/v3_13/test_itertools.py2723CODE
MEDIUMtest/cpython/v3_13/test_generators.py566CODE
MEDIUMtest/cpython/v3_13/test_generators.py577CODE
MEDIUMtest/cpython/v3_13/test_exceptions.py1836CODE
MEDIUMtest/cpython/v3_13/test_set.py77CODE
MEDIUMtest/cpython/v3_13/test_set.py1109CODE
MEDIUMtest/cpython/v3_13/test_deque.py40CODE
MEDIUMtest/cpython/v3_13/test_yield_from.py257CODE
MEDIUMtest/cpython/v3_13/test_yield_from.py258CODE
MEDIUMtest/cpython/v3_13/test_yield_from.py259CODE
MEDIUMtest/cpython/v3_13/test_builtin.py1288CODE
MEDIUMtest/jit/test_backends.py595CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py501CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py987CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py988CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py989CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py992CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1003CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1004CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1005CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1007CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1013CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1014CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1151CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1152CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1207CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1209CODE
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1210CODE
MEDIUMtest/functorch/test_vmap.py1007CODE
24 more matches not shown…
Overly Generic Function Names251 hits · 152 pts
SeverityFileLineSnippetContext
LOWtools/test/heuristics/test_heuristics.py270 def helper(test_file: str, changed_file: str) -> bool:CODE
LOW⚡test/test_mps.py4619 def helper(binary_op):CODE
LOW⚡test/test_mps.py5604 def helper(dtype):CODE
LOW⚡test/test_mps.py5615 def helper(dtype):CODE
LOW⚡test/test_mps.py6396 def helper(shape):CODE
LOWtest/test_mps.py255 def helper(model_cpu, model_mps, dtype, iterations, batch_size, atol=3e-4, rtol=1e-5):CODE
LOWtest/test_mps.py319 def helper(model, optimizer, scaler, device, input, target, apply_grad_transform=False):CODE
LOWtest/test_mps.py1599 def helper(val, shape, dtype):CODE
LOWtest/test_mps.py1815 def helper(dtype):CODE
LOWtest/test_mps.py2236 def helper(input_shape, batch1_shape, batch2_shape):CODE
LOWtest/test_mps.py2312 def helper(bias_shape):CODE
LOWtest/test_mps.py2649 def helper(shape, ks, padding=0, dilation=1, ceil_mode=False, return_indices=False, test_ties=False):CODE
LOWtest/test_mps.py2723 def helper(size, memory_format):CODE
LOWtest/test_mps.py2749 def helper(shape):CODE
LOWtest/test_mps.py2858 def helper(shape, channels_last=False):CODE
LOWtest/test_mps.py2875 def helper(shape, eps=1, momentum=0.1, wts=False, training=False, channels_last=False,CODE
LOWtest/test_mps.py3517 def helper(input_shape, normalized_shape, eps=1e-05, elementwise_affine=True, dtype=torch.float32, non_contiguouCODE
LOWtest/test_mps.py3647 def helper(shape, eps=1, momentum=0.1, wts=False, channels_last=False, track_running_stats=True, test_module=FalCODE
LOWtest/test_mps.py3824 def helper(dim, layer='linear', dtype=torch.float32):CODE
LOWtest/test_mps.py3894 def helper(input_shape, wt_shape,CODE
LOWtest/test_mps.py3995 def helper(input_shape, wt_shape,CODE
LOWtest/test_mps.py4062 def helper(threshold, value, num_elems, inplace=False, requires_grad=True):CODE
LOWtest/test_mps.py4089 def helper(shape):CODE
LOWtest/test_mps.py4131 def helper(shape, value, xtype=torch.float32, ytype=None, ztype=None):CODE
LOWtest/test_mps.py4168 def helper(shape, value):CODE
LOWtest/test_mps.py4194 def helper(shape, value):CODE
LOWtest/test_mps.py4423 def helper(shape):CODE
LOWtest/test_mps.py4543 def helper(x_tensor, y_func, z_func, r_func=None):CODE
LOWtest/test_mps.py4653 def helper(operator):CODE
LOWtest/test_mps.py4745 def helper(shape, repeats):CODE
LOWtest/test_mps.py4844 def helper(shape, dtype=torch.float32, num_repeats=torch.Tensor(), dim=None):CODE
LOWtest/test_mps.py4869 def helper(dtype):CODE
LOWtest/test_mps.py4969 def helper(data, to_dtype):CODE
LOWtest/test_mps.py4987 def helper(data, to_dtype):CODE
LOWtest/test_mps.py5100 def helper(dtype):CODE
LOWtest/test_mps.py5157 def helper(x, return_inverse, return_counts):CODE
LOWtest/test_mps.py5186 def helper(x, dim, return_inverse, return_counts):CODE
LOWtest/test_mps.py5378 def helper(src_shape, dst_shape, src_dtype, dst_dtype):CODE
LOWtest/test_mps.py5524 def helper(dtype, noncontiguous, dim):CODE
LOWtest/test_mps.py5569 def helper(dtype):CODE
LOWtest/test_mps.py5587 def helper(dtype):CODE
LOWtest/test_mps.py5697 def helper(shape, dtype):CODE
LOWtest/test_mps.py5897 def helper(n, c):CODE
LOWtest/test_mps.py5914 def helper(shape, reduction):CODE
LOWtest/test_mps.py5943 def helper(shape, reduction):CODE
LOWtest/test_mps.py6108 def helper(shape, reduction):CODE
LOWtest/test_mps.py6407 def helper(shape):CODE
LOWtest/test_mps.py6418 def helper(shape):CODE
LOWtest/test_mps.py6429 def helper(shape):CODE
LOWtest/test_mps.py6440 def helper(shape):CODE
LOWtest/test_mps.py6469 def helper(n, c, h, w, reduction_type, dtype=torch.float32):CODE
LOWtest/test_mps.py6663 def helper(n, c, h, w, dtype=torch.float32):CODE
LOWtest/test_mps.py6828 def helper(shape):CODE
LOWtest/test_mps.py6893 def helper(fn, dim):CODE
LOWtest/test_mps.py6910 def helper(shape):CODE
LOWtest/test_mps.py6980 def helper(n, c, h, w):CODE
LOWtest/test_mps.py7095 def helper(n, c, h, w, dtype=torch.float32):CODE
LOWtest/test_mps.py7164 def helper(shape, dtype=torch.float32):CODE
LOWtest/test_mps.py7198 def helper(n, c, h, w):CODE
LOWtest/test_mps.py7251 def helper(shape):CODE
191 more matches not shown…
Slop Phrases47 hits · 82 pts
SeverityFileLineSnippetContext
MEDIUMtools/autograd/derivatives.yaml37# If None of the output is differentiable, you can also add the functionCOMMENT
LOWtest/test_jit.py455 # you are deleting `constants.pkl`, make sure to update `torch.serialization.load`COMMENT
LOWtest/test_jit.py2536 # NB: We make sure to pass in a batch with a different max sequenceSTRING
MEDIUMtest/test_fx.py4341 # Used to test that you can use your own placeholder classCOMMENT
LOWtest/inductor/test_triton_kernels.py7058 # so we wanna make sure to correctly handle edge cases with tricky line breaksSTRING
MEDIUMtest/inductor/test_profiler.py83 # Debugging tips: you can add prof.export_chrome_trace("test.json") inline inCOMMENT
LOWtest/dynamo/test_repros.py1636 # NB: When you remove the expectedFailure, don't forget toCOMMENT
LOWtest/dynamo/test_repros.py1636 # NB: When you remove the expectedFailure, don't forget toCOMMENT
LOWtest/quantization/fx/test_model_report_fx.py1958 # if they passed in fusion parameter, make sure to test thatCOMMENT
MEDIUMtest/ao/sparsity/test_structured_sparsifier.py1006 # Manually set the filter weights for demonstration purposesCOMMENT
LOW.agents/skills/triaging-issues/labels.json416 "description": "Optimization passes written in FX (don't forget to select a more specific label)"CODE
MEDIUMtorch/torch_version.py38 # Ideally this should work for most cases by attempting to groupCOMMENT
LOWtorch/headeronly/core/ScalarType.h341 // Don't forget to extend this when adding new QInt typesCOMMENT
MEDIUMtorch/csrc/jit/backends/backend_debug_info.h51 * don't serialize this info as part of LoweredModule as mentioned earlier.COMMENT
MEDIUMtorch/_functorch/_aot_autograd/graph_compile.py1008 # Step 1) - Get the `joint_hop_gm`. As mentioned earlier, theCOMMENT
LOW⚡torch/_subclasses/meta_utils.py962 # Need to make sure to resize the meta storage too.COMMENT
LOWtorch/nn/utils/parametrizations.py135 # We always make sure to copy Q in every pathCOMMENT
MEDIUMtorch/nn/modules/loss.py2215 >>> S_min = 10 # Minimum target length, for demonstration purposesCODE
LOWtorch/nn/modules/activation.py1363 # When lifting this restriction, don't forget to eitherSTRING
LOWtorch/nn/modules/activation.py1363 # When lifting this restriction, don't forget to eitherSTRING
LOW…nnx/_internal/torchscript_exporter/symbolic_opset11.py980 # make sure to cast other to self's typeCOMMENT
LOW…nnx/_internal/torchscript_exporter/symbolic_opset11.py1004 # make sure to cast other to self's typeCOMMENT
LOW…onnx/_internal/torchscript_exporter/symbolic_opset9.py2184 # make sure to cast other to self's typeCOMMENT
LOW…onnx/_internal/torchscript_exporter/symbolic_opset9.py2222 # make sure to cast other to self's typeCOMMENT
LOW…nnx/_internal/torchscript_exporter/symbolic_opset12.py77 # make sure to cast other to self's typeCOMMENT
LOWtorch/distributed/elastic/rendezvous/etcd_rendezvous.py886 # make sure you don't call any long-blocking methods that do notCOMMENT
LOWtorch/distributed/tensor/_dtensor_spec.py448 # use, where we make sure to update the hash when the `tensor_meta`COMMENT
LOWtorch/fx/graph.py2502 # When generating Python code, we need to make sure to name thingsCOMMENT
MEDIUMtorch/fx/experimental/symbolic_shapes.py1542# (1) If you can use a higher level combinator prefer using those instead, they are definitely safe (modulo short-circuiCOMMENT
LOW⚡torch/fx/experimental/proxy_tensor.py753 # from_real_tensor to create fake values (don't forget toCOMMENT
LOW⚡torch/fx/experimental/proxy_tensor.py753 # from_real_tensor to create fake values (don't forget toCOMMENT
LOWtorch/fx/passes/reinplace.py764 # When that happens, we need to make sure to keep ourSTRING
MEDIUMtorch/optim/lr_scheduler.py368 >>> # Alternatively, you can use a single lambda function for all groups.CODE
LOWtorch/_inductor/cpp_builder.py2799 # When we build remotely, we need to make sure to carefully copy any filesCOMMENT
LOWtorch/_inductor/compile_fx_ext.py657 # Since our metrics were gathered in a subprocess make sure to add themCOMMENT
LOWtorch/_inductor/codegen/common.py1466# NB: if you add a new special function, don't forget to updateCOMMENT
LOWtorch/_inductor/codegen/common.py1466# NB: if you add a new special function, don't forget to updateCOMMENT
LOWtorch/utils/_python_dispatch.py957 # Next: we need to make sure to return inputs directly, if the output is a mutable alias (e.g. add_()).COMMENT
LOWtorch/utils/hipify/hipify_python.py734 # make sure to check the end-of-word marker presentCOMMENT
LOWtorch/utils/data/sampler.py73 # implementing a `__len__` method. In such cases, we must make sure to notSTRING
MEDIUMtorch/_dynamo/backends/onnxrt.py34# " (4) If it returns `True`, then you can use `onnxrt` backend.\n"COMMENT
MEDIUMbenchmarks/dynamo/common.py1033 # Hypothetically you can use this from other places, but it's currentlyCOMMENT
LOW.github/scripts/test_trymerge.py8# GraphQL queries in trymerge.py, please make sure to delete `gql_mocks.json`COMMENT
LOWaten/src/ATen/OpaqueTensorImpl.h49 // unnecessary; don't forget to change that if needed!COMMENT
LOWaten/src/ATen/SparseTensorImpl.cpp50 // unnecessary; don't forget to change that if needed!COMMENT
MEDIUMtorchgen/api/types/types_base.py179# which you can use to figure out if a given Binding is appropriateCOMMENT
LOWc10/core/StorageImpl.h106 // unnecessary; don't forget to change that if needed!COMMENT
TODO Padding54 hits · 78 pts
SeverityFileLineSnippetContext
LOW⚡test/test_mps.py10568 # TODO: Add tests for data typesCOMMENT
LOWtest/test_dataloader.py2589 # TODO: Fix test for 'loader_kill' that would cause running out of shared memory.COMMENT
LOWtest/test_reductions.py1564 # TODO: consider refactoring with bincount testCOMMENT
LOWtest/test_sparse.py5182 # TODO: implement batch support in _convert_indices_from_csr_to_cooCOMMENT
LOWtest/test_ops.py716 # TODO: consider adding some tolerance to this comparisonCOMMENT
LOWtest/test_ops.py2333 # TODO: add tests for `R->C` functionsCOMMENT
LOW…composable/test_composability/test_2d_composability.py509 # TODO: Add tests when using gradient_as_bucket_view and static_graph for DDP.COMMENT
LOWtest/distributed/tensor/test_matrix_ops.py933 # TODO: Add test cases where is_causal=False and an attention mask is provided.COMMENT
LOWtest/quantization/core/test_quantized_module.py1896 # TODO: add tests for conv and linearSTRING
LOWtest/cpp/api/support.h116 // TODO: implement abs on CharTensor (int8)COMMENT
LOWtest/jit/test_tracer.py644 # TODO: implementCOMMENT
LOWtest/torch_np/test_reductions.py364 # TODO: add tests with np.int32(3) etc, when implementedCOMMENT
LOWtest/torch_np/test_reductions.py524 # TODO: add tests with np.int32(3) etc, when implementedCOMMENT
LOWtest/functorch/test_ops.py1034 # TODO: implement batching ruleCOMMENT
LOWtest/functorch/test_ops.py1148 # TODO: implement batching ruleCOMMENT
LOWtest/functorch/test_ops.py1303 # TODO: implement batching ruleCOMMENT
LOWtest/functorch/test_ops.py1506 # TODO: implement batching ruleCOMMENT
LOWtest/functorch/test_ops.py1618 # TODO: implement batching ruleCOMMENT
LOWtest/functorch/test_ops.py2002 # TODO: implement batching ruleCOMMENT
LOWtest/functorch/test_vmap.py4589 # TODO: implement batching ruleCOMMENT
LOWtest/functorch/test_vmap.py4657 # TODO: implement batching ruleCOMMENT
LOWtorch/_prims/__init__.py400# TODO: implement dtype validation here, too, or on the corresponding refsCOMMENT
LOWtorch/csrc/Storage.cpp365// TODO: implement equalityCOMMENT
LOWtorch/csrc/inductor/aoti_torch/shim_common.cpp467// TODO: implement a more efficient version instead of calling into atenCOMMENT
LOWtorch/csrc/inductor/aoti_torch/shim_common.cpp866// TODO: implement a more efficient version instead of calling into atenCOMMENT
LOWtorch/csrc/inductor/aoti_torch/shim_common.cpp937// TODO: implement a more efficient version instead of calling into atenCOMMENT
LOWtorch/csrc/inductor/aoti_torch/shim_common.cpp955// TODO: implement a more efficient version instead of calling into atenCOMMENT
LOWtorch/csrc/inductor/aoti_torch/shim_common.cpp978// TODO: implement a more efficient version instead of calling into atenCOMMENT
LOWtorch/csrc/jit/mobile/nnc/aot_compiler.cpp152 // TODO: implement prealloc optimization and fill in temp_sizesCOMMENT
LOWtorch/distributed/elastic/rendezvous/etcd_rendezvous.py949 # TODO: implement timeoutCOMMENT
LOW⚡torch/distributed/_shard/sharded_optim/api.py82 # TODO: implement state_dictSTRING
LOW⚡torch/distributed/_shard/sharded_optim/api.py92 # TODO: implement load_state_dictSTRING
LOW⚡torch/distributed/_shard/sharded_optim/api.py99 # TODO: implement add_param_groupCOMMENT
LOWtorch/fx/traceback.py76 # TODO: add logging to tlparseCOMMENT
LOWtorch/_prims_common/wrappers.py55# TODO: implement ref.cast with an option to enforce safe castingCOMMENT
LOWtorch/masked/_ops.py846 # TODO: implement sparse CSR specific where operator for efficiencyCOMMENT
LOWtorch/_inductor/utils.py5097 # TODO: implement V3_BACKENDS_TUPLECOMMENT
LOWtorch/utils/model_dump/__init__.py356 # TODO: handle errors here and just ignore the file?COMMENT
LOWtorch/ao/quantization/fx/_lower_to_native_backend.py399# TODO: add tests for lowering these opsCOMMENT
LOWtorch/ao/quantization/fx/fuse.py119 # TODO: add validation that root_node is a module and has the same typeCOMMENT
LOWtorch/_refs/__init__.py1870# TODO: consider refactoring this with add implCOMMENT
LOWtorch/_refs/special/__init__.py235# TODO: add docstringCOMMENT
LOWthird_party/kineto/libkineto/src/RocprofActivityApi.cpp194// TODO: implement the actual flush with roctracer_flush_activityCOMMENT
LOWaten/src/ATen/LegacyBatchedTensorImpl.cpp85// TODO: implement proper contiguity on batched tensor, then putCOMMENT
LOWaten/src/ATen/TensorIndexing.h211 // TODO: implement negative stepCOMMENT
LOWaten/src/ATen/native/Embedding.cpp81 // TODO: implement scale_grad_by_freqCOMMENT
LOWaten/src/ATen/native/LinearAlgebra.cpp565// TODO: implement _out variant avoiding copy and using already allocated storage directlyCOMMENT
LOWaten/src/ATen/native/LinearAlgebra.cpp3438// TODO: implement _out variant avoiding copy and using already allocated storage directlyCOMMENT
LOWaten/src/ATen/native/LinearAlgebra.cpp3487// TODO: implement _out variant avoiding copy and using already allocated storage directlyCOMMENT
LOWaten/src/ATen/native/quantized/cudnn/Conv.cpp299 // TODO: implement this for groups > 1; should be straightforward since we're only padding a single dimensionCOMMENT
LOWaten/src/ATen/native/quantized/cudnn/ConvPrepack.cpp80 // TODO: implement this for groups > 1COMMENT
LOWaten/src/ATen/functorch/BatchedTensorImpl.cpp127// TODO: implement proper contiguity on batched tensor, then putCOMMENT
LOWtorchgen/model.py1935 # TODO: implement a proper parser if this gets more uglyCOMMENT
LOWc10/core/TensorImpl.h1373 // TODO: implement layout() as native function/method so thatCOMMENT
AI Response Leakage11 hits · 74 pts
SeverityFileLineSnippetContext
HIGHtest/test_decomp.py1087 # explicit clearing is necessary as I will create a fresh modeCOMMENT
HIGH⚡test/test_fx_experimental.py1030 # Based on the code from - transformers/models/granitemoe/modeling_granitemoe.pySTRING
HIGHtest/inductor/test_max_autotune.py1365 # In this example, AOTInductor's JIT-compile will fuse(buf1, buf2) dueCOMMENT
HIGHtest/dynamo/test_repros.py4962 # In this example, there were 4950 guards (roughly (# tensors) ^ 2 // 2),COMMENT
HIGHtest/jit/test_freezing.py988 # In this example, 'a' is not mutated. However, we do not track which subCOMMENT
HIGHtorch/_dynamo/variables/higher_order_ops.py885 # used. In this example, the capture graph looks like:COMMENT
HIGHtorch/_dynamo/variables/higher_order_ops.py1923 # In this example, list `z` is in outer scope and gets appendedCOMMENT
HIGHtorch/_dynamo/variables/builtin.py891 # In this example, A.__radd__() is not called -> nothing is printed, becauseCOMMENT
HIGHtorch/profiler/profiler.py1193 # In this example with wait=1, warmup=1, active=2, repeat=1,STRING
HIGH…er_guide/torch_compiler/torch.compiler_aot_inductor.md62 # [Note] In this example we directly feed the exported module to aoti_compile_and_package.COMMENT
HIGHaten/src/ATen/native/mps/operations/RnnOps.mm840 // In this implementation these two biases are added together and used further.COMMENT
Example Usage Blocks17 hits · 24 pts
SeverityFileLineSnippetContext
LOWtools/vendoring/quack/vendor.sh8# Usage:COMMENT
LOWtorch/library.h961/// Example usage:COMMENT
LOWtorch/library.h1038/// Example usage:COMMENT
LOWtorch/csrc/api/include/torch/python.h198/// Example usage:COMMENT
LOWtorch/csrc/api/include/torch/python.h234/// Example usage:COMMENT
LOWtorch/csrc/api/include/torch/nn/modules/common.h6/// Example usage:COMMENT
LOWtorch/nn/attention/flex_attention.py49# Usage:COMMENT
LOWtorch/_inductor/config.py192# Example usage:COMMENT
LOWtorch/_inductor/fuzzer.py526 # Example usage:STRING
LOWtorch/testing/_internal/common_device_type.py1175 # Usage:COMMENT
LOWtorch/testing/_internal/common_device_type.py1193 # Usage:COMMENT
LOWtorch/testing/_internal/common_device_type.py1471# Example usage:COMMENT
LOWtorch/_dynamo/variables/higher_order_ops.py151# Example usage:COMMENT
LOWthird_party/perfetto/update.sh8# Usage:COMMENT
LOW…ibkineto/third_party/dynolog_headers/vendor_dynolog.sh5# Usage:COMMENT
LOWaten/src/ATen/TensorMeta.h17// Example usage:COMMENT
LOWaten/src/ATen/TensorMeta.h49// Example usage:COMMENT
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHtest/test_view_ops.py1134 # Test various configurations - one per line as requestedCOMMENT
HIGHtest/quantization/fx/test_quantize_fx.py9009 # reshape will be quantized to fp16 as requested by this qconfigCOMMENT
HIGHc10/util/Backtrace.cpp226 // Skip as many frames as requested.COMMENT