Repository Analysis

pytorch/pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

11.9 Low AI signal View on GitHub
11.9
Adjusted Score
11.9
Raw Score
100%
Time Factor
2026-05-30
Last Push
100,271
Stars
Python
Language
3,969,895
Lines of Code
10476
Files
46502
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 129HIGH 1080MEDIUM 1754LOW 43539

Pattern Findings

46502 matches across 20 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers27463 hits · 21296 pts
SeverityFileLineSnippet
LOWsetup.py499def extract_variant_from_version(version: str) -> str:
LOWsetup.py619def get_latest_nightly_version(variant: str = "cpu") -> str:
LOWsetup.py652def download_and_extract_nightly_wheel(version: str) -> None:
LOWsetup.py1043def configure_extension_build() -> tuple[
LOW.spin/cmds.py129def regenerate_clangtidy_files():
LOW.spin/cmds.py458def regenerate_github_workflows():
LOWtools/gen_vulkan_spv.py157def extract_leading_whitespace(line: str) -> str:
LOWtools/render_junit.py52def convert_junit_to_testcases(xml: JUnitXml | TestSuite) -> list[TestCase]: # type: ignore[no-any-unimported]
LOWtools/create_worktree.py108def clone_submodule_recursive(
LOWtools/packaging/build_wheel.py49def get_supported_python_versions() -> list[str]:
LOWtools/packaging/build_wheel.py70def _find_manylinux_interpreters() -> list[str]:
LOWtools/experimental/torchfuzz/test_determinism.py71def test_deterministic_output():
LOWtools/experimental/torchfuzz/ops_fuzzer.py32def _get_template_filtered_operators(
LOWtools/experimental/torchfuzz/visualize_graph.py136def visualize_operation_graph(
LOWtools/experimental/torchfuzz/visualize_graph.py159def operation_graph_to_networkx(graph: OperationGraph):
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py473def _print_operation_distribution(results: list[FuzzerResult]) -> None:
LOWtools/experimental/torchfuzz/tensor_fuzzer.py190def _compute_contiguous_strides(size: tuple[int, ...]) -> list[int]:
LOWtools/experimental/torchfuzz/tensor_fuzzer.py213def _compute_non_contiguous_dense_strides(size: tuple[int, ...]) -> list[int]:
LOWtools/experimental/torchfuzz/tensor_fuzzer.py304def _compute_storage_size_needed(
LOWtools/experimental/torchfuzz/tensor_fuzzer.py431def fuzz_non_contiguous_dense_tensor(
LOWtools/experimental/torchfuzz/README.md572 def _register_default_operators(self):
LOWtools/experimental/torchfuzz/fuzzer.py27def _parse_supported_ops_with_weights(spec: str) -> tuple[list[str], dict[str, float]]:
LOWtools/experimental/torchfuzz/test_streams_template.py31 def test_template_inherits_default_ops(self):
LOWtools/experimental/torchfuzz/test_streams_template.py37 def test_template_uses_backward_check(self):
LOWtools/experimental/torchfuzz/test_streams_template.py47 def test_codegen_creates_streams(self):
LOWtools/experimental/torchfuzz/test_streams_template.py51 def test_codegen_has_stream_context(self):
LOWtools/experimental/torchfuzz/test_streams_template.py55 def test_codegen_has_final_sync(self):
LOWtools/experimental/torchfuzz/test_streams_template.py63 def test_codegen_has_backward(self):
LOWtools/experimental/torchfuzz/test_streams_template.py67 def test_codegen_has_requires_grad(self):
LOWtools/experimental/torchfuzz/test_streams_template.py72 def test_codegen_cross_stream_sync(self):
LOWtools/experimental/torchfuzz/test_streams_template.py84 def test_codegen_event_based_sync(self):
LOWtools/experimental/torchfuzz/test_streams_template.py96 def test_codegen_deterministic(self):
LOWtools/experimental/torchfuzz/test_streams_template.py102 def test_codegen_is_valid_python(self):
LOWtools/experimental/torchfuzz/codegen.py341def convert_graph_to_python_code(
LOWtools/experimental/torchfuzz/codegen.py514def generate_simple_operation_code(
LOWtools/experimental/torchfuzz/type_promotion.py106def get_promotion_table_for_strings() -> dict:
LOWtools/experimental/torchfuzz/type_promotion.py162def get_scalar_promotion_pairs(
LOWtools/experimental/torchfuzz/operators/registry.py72 def _register_default_operators(self):
LOWtools/experimental/torchfuzz/operators/registry.py209def set_operator_weight_by_torch_op(torch_op_name: str, weight: float) -> None:
LOWtools/experimental/torchfuzz/operators/registry.py220def set_operator_weights_by_torch_op(weights: dict[str, float]) -> None:
LOWtools/experimental/torchfuzz/cuda/_codegen.py567 def _generate_random_placement(self, tensor_size):
LOWtools/test/test_test_selections.py110 def test_some_times_with_not_sort_by_time(self) -> None:
LOWtools/test/test_test_selections.py145 def test_serial_parallel_interleaving(self) -> None:
LOWtools/test/test_scoped_library_linter.py28 def test_reports_torch_dot_library_dot_library(self) -> None:
LOWtools/test/test_scoped_library_linter.py53 def test_reports_imported_library_name(self) -> None:
LOWtools/test/test_scoped_library_linter.py76 def test_allows_noqa_alone_on_previous_line(self) -> None:
LOWtools/test/test_scoped_library_linter.py88 def test_allows_multiline_call_if_any_line_has_noqa(self) -> None:
LOWtools/test/test_scoped_library_linter.py102 def test_reports_multiline_call_without_noqa(self) -> None:
LOWtools/test/test_scoped_library_linter.py118 def test_empty_on_syntax_error(self) -> None:
LOWtools/test/test_scoped_library_linter.py124 def test_no_match_for_non_library_call(self) -> None:
LOWtools/test/test_utils.py7 def test_create_from_namespaced_tuple(self) -> None:
LOWtools/test/test_utils.py18 def test_namespace_levels_more_than_max(self) -> None:
LOWtools/test/test_test_run.py24 def test_union_with_inclusions(self) -> None:
LOWtools/test/test_test_run.py33 def test_union_with_non_overlapping_exclusions(self) -> None:
LOWtools/test/test_test_run.py42 def test_union_with_overlapping_exclusions(self) -> None:
LOWtools/test/test_test_run.py51 def test_union_with_mixed_inclusion_exclusions(self) -> None:
LOWtools/test/test_test_run.py60 def test_union_with_mixed_files_fails(self) -> None:
LOWtools/test/test_test_run.py67 def test_union_with_empty_file_yields_orig_file(self) -> None:
LOWtools/test/test_test_run.py74 def test_subtracting_full_run_fails(self) -> None:
LOWtools/test/test_test_run.py80 def test_subtracting_empty_file_yields_orig_file(self) -> None:
27403 more matches not shown…
Over-Commented Block5261 hits · 4962 pts
SeverityFileLineSnippet
LOWCMakeLists.txt721 message(WARNING "KleidiAI cannot be used on Mobile builds. Set it to OFF")
LOWCMakeLists.txt921 set(USE_FBGEMM OFF)
LOWsetup.py1# Welcome to the PyTorch setup.py.
LOWsetup.py21# which we have faithfully adhered to in our build system is that CFLAGS
LOWsetup.py41# DEBUG_CUDA=1
LOWsetup.py61# USE_MSLK=0
LOWsetup.py81# MKL-DNN threading mode: TBB or OMP (default)
LOWsetup.py101# disables distributed MPI backend build
LOWsetup.py121# This option can be used if AVX512 doesn't perform well on a machine.
LOWsetup.py141# specify which AMD GPU targets to build for.
LOWsetup.py161# layer normalization. Default: enabled.
LOWsetup.py181# Specify a NVCC to use. This is used in our CI to point to a cached nvcc
LOWsetup.py201# LIBRARY_PATH
LOWsetup.py221# USE_SYSTEM_PSIMD=ON
LOWtools/git_add_generated_dirs.sh1#!/bin/sh
LOWtools/git_reset_generated_dirs.sh1#!/bin/sh
LOWtools/iwyu/run.sh1# Run include-what-you-use on a file or folder
LOWtools/test/test_stable_shim_usage_linter.py141 shim_functions = get_shim_functions([sample_shim])
LOWtools/test/stable_shim_usage_linter_data/sample_shim.h1#ifndef SAMPLE_SHIM_H
LOWtools/test/stable_shim_usage_linter_data/sample_shim.h21AOTI_TORCH_EXPORT void old_function_2(void* ptr);
LOWtools/test/stable_shim_usage_linter_data/sample_shim.h41AOTI_TORCH_EXPORT int legacy_fallback(int arg);
LOWtools/test/stable_shim_usage_linter_data/sample_shim.h101
LOWtools/linter/adapters/flake8_linter.py1# /// script
LOWtools/linter/adapters/flake8_linter.py201 # "B901": `return x` inside a generator
LOWtools/linter/adapters/pyproject_linter.py161 return [
LOWtools/linter/adapters/pyproject_linter.py181 # }
LOWtools/linter/adapters/ruff_linter.py161
LOWtools/linter/adapters/pyrefly_linter.py1# /// script
LOWtools/autograd/load_derivatives.py341 "forward definition of gradient as element_wise but it does not "
LOWtools/autograd/load_derivatives.py561 r.name for r in f.func.returns
LOWtools/autograd/gen_python_functions.py1# Generates Python bindings for ATen functions
LOWtools/autograd/gen_python_functions.py21#
LOWtools/autograd/gen_python_functions.py1181 return sort_overloads(grouped, symint=symint)
LOWtools/autograd/gen_python_functions.py1201# If they have different number of parameters then they are not ambiguous - but
LOWtools/autograd/gen_autograd_functions.py81void will_release_variables() override {
LOWtools/autograd/gen_variable_type.py1# Generates VariableType.h/cpp
LOWtools/autograd/gen_variable_type.py421# We check the following properties:
LOWtools/autograd/gen_variable_type.py1241 # NOTE(crcrpar): in-place foreach functions' arguments include tensorlist
LOWtools/autograd/gen_trace_type.py241# This replacement implemented in-place with minimum modifications of
LOWtools/autograd/derivatives.yaml1# Defines derivative formulas and Python signatures of methods on Variable
LOWtools/autograd/derivatives.yaml21# of how to register separate derivates for different dispatch keys).
LOWtools/autograd/derivatives.yaml41# - If that argument is differentiable, in the sense that a gradient with respect
LOWtools/autograd/derivatives.yaml61# are in scope:
LOWtools/autograd/derivatives.yaml81#
LOWtools/autograd/derivatives.yaml101# (NB: if your function computes gradient for a list of tensors,
LOWtools/autograd/derivatives.yaml121# Another interpretation of this expression would read as `var_0` is needed
LOWtools/autograd/derivatives.yaml141#
LOWtools/autograd/derivatives.yaml161# (implemented using zeros_like). These gradients are (hopefully) not
LOWtools/autograd/derivatives.yaml181# according to these three cases:
LOWtools/autograd/derivatives.yaml201# It is an efficient way to represent a Tensor filled with zeros because
LOWtools/autograd/derivatives.yaml1161- name: nanmedian(Tensor self) -> Tensor
LOWtools/autograd/derivatives.yaml1821# See [Note: Sometimes view derivatives]
LOWtools/autograd/derivatives.yaml1841# DO NOT define a backward for to_sparse_csr
LOWtools/autograd/derivatives.yaml2541 #
LOWtools/autograd/templates/python_nn_functions.cpp1#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
LOWtools/autograd/templates/python_functions.cpp1#include <torch/csrc/autograd/generated/python_functions.h>
LOWtools/autograd/templates/python_fft_functions.cpp1#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
LOWtools/autograd/templates/python_sparse_functions.cpp1#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
LOWtools/autograd/templates/python_linalg_functions.cpp1#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
LOWtools/autograd/templates/ADInplaceOrViewType.cpp1#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
5201 more matches not shown…
Unused Imports4758 hits · 4162 pts
SeverityFileLineSnippet
LOWsetup.py245
LOWtools/extract_scripts.py3
LOWtools/nvcc_fix_deps.py16
LOWtools/gen_vulkan_spv.py3
LOWtools/embed_libomp_macos.py16
LOWtools/render_junit.py3
LOWtools/strtobool.py3
LOWtools/generate_torch_version.py1
LOWtools/build_with_debinfo.py8
LOWtools/build_pytorch_libs.py1
LOWtools/nightly.py49
LOWtools/experimental/torchfuzz/__init__.py4
LOWtools/experimental/torchfuzz/__init__.py4
LOWtools/experimental/torchfuzz/__init__.py4
LOWtools/experimental/torchfuzz/__init__.py4
LOWtools/experimental/torchfuzz/__init__.py4
LOWtools/experimental/torchfuzz/__init__.py4
LOWtools/experimental/torchfuzz/__init__.py12
LOWtools/experimental/torchfuzz/__init__.py12
LOWtools/experimental/torchfuzz/__init__.py12
LOWtools/experimental/torchfuzz/__init__.py13
LOWtools/experimental/torchfuzz/__init__.py13
LOWtools/experimental/torchfuzz/__init__.py13
LOWtools/experimental/torchfuzz/__init__.py14
LOWtools/experimental/torchfuzz/__init__.py14
LOWtools/experimental/torchfuzz/__init__.py14
LOWtools/experimental/torchfuzz/operators/__init__.py3
LOWtools/experimental/torchfuzz/operators/__init__.py4
LOWtools/experimental/torchfuzz/operators/__init__.py5
LOWtools/experimental/torchfuzz/operators/__init__.py6
LOWtools/experimental/torchfuzz/operators/__init__.py7
LOWtools/experimental/torchfuzz/operators/__init__.py8
LOWtools/experimental/torchfuzz/operators/__init__.py9
LOWtools/experimental/torchfuzz/operators/__init__.py10
LOWtools/experimental/torchfuzz/operators/__init__.py10
LOWtools/experimental/torchfuzz/operators/__init__.py10
LOWtools/experimental/torchfuzz/operators/__init__.py10
LOWtools/experimental/torchfuzz/operators/__init__.py10
LOWtools/experimental/torchfuzz/operators/__init__.py10
LOWtools/experimental/torchfuzz/operators/__init__.py10
LOWtools/experimental/torchfuzz/operators/__init__.py10
LOWtools/experimental/torchfuzz/operators/__init__.py20
LOWtools/experimental/torchfuzz/operators/__init__.py20
LOWtools/experimental/torchfuzz/operators/__init__.py20
LOWtools/experimental/torchfuzz/operators/__init__.py20
LOWtools/experimental/torchfuzz/operators/__init__.py26
LOWtools/experimental/torchfuzz/operators/__init__.py26
LOWtools/experimental/torchfuzz/operators/__init__.py26
LOWtools/experimental/torchfuzz/operators/__init__.py26
LOWtools/experimental/torchfuzz/operators/__init__.py26
LOWtools/experimental/torchfuzz/operators/__init__.py26
LOWtools/experimental/torchfuzz/operators/__init__.py26
LOWtools/experimental/torchfuzz/operators/__init__.py26
LOWtools/experimental/torchfuzz/operators/__init__.py36
LOWtools/experimental/torchfuzz/operators/__init__.py36
LOWtools/experimental/torchfuzz/operators/__init__.py36
LOWtools/experimental/torchfuzz/operators/__init__.py36
LOWtools/experimental/torchfuzz/operators/__init__.py36
LOWtools/experimental/torchfuzz/operators/__init__.py36
LOWtools/experimental/torchfuzz/operators/__init__.py36
4698 more matches not shown…
Deep Nesting3741 hits · 2858 pts
SeverityFileLineSnippet
LOWsetup.py508
LOWsetup.py652
LOW.spin/cmds.py106
LOW.spin/cmds.py306
LOWtools/extract_scripts.py52
LOWtools/clean.py7
LOWtools/gen_vulkan_spv.py315
LOWtools/gen_vulkan_spv.py376
LOWtools/stale_issues.py11
LOWtools/stale_issues.py82
LOWtools/embed_libomp_macos.py28
LOWtools/render_junit.py62
LOWtools/generate_torch_version.py51
LOWtools/download_mnist.py32
LOWtools/create_worktree.py187
LOWtools/nightly.py891
LOWtools/nightly.py1160
LOWtools/nightly.py320
LOWtools/experimental/torchfuzz/test_determinism.py71
LOWtools/experimental/torchfuzz/ops_fuzzer.py254
LOWtools/experimental/torchfuzz/visualize_graph.py41
LOWtools/experimental/torchfuzz/visualize_graph.py159
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py83
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py209
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py505
LOWtools/experimental/torchfuzz/tensor_fuzzer.py99
LOWtools/experimental/torchfuzz/tensor_fuzzer.py213
LOWtools/experimental/torchfuzz/tensor_fuzzer.py320
LOWtools/experimental/torchfuzz/tensor_fuzzer.py479
LOWtools/experimental/torchfuzz/fuzzer.py56
LOWtools/experimental/torchfuzz/fuzzer.py244
LOWtools/experimental/torchfuzz/codegen.py514
LOWtools/experimental/torchfuzz/codegen.py194
LOWtools/experimental/torchfuzz/operators/layout.py192
LOWtools/experimental/torchfuzz/operators/constant.py46
LOWtools/experimental/torchfuzz/cuda/_codegen.py159
LOWtools/experimental/torchfuzz/cuda/_codegen.py398
LOWtools/experimental/torchfuzz/cuda/_codegen.py581
LOWtools/test/test_gen_backend_stubs.py27
LOWtools/test/test_cmake.py22
LOWtools/test/heuristics/test_interface.py413
LOWtools/test/heuristics/test_interface.py437
LOWtools/linter/adapters/stable_shim_usage_linter.py34
LOWtools/linter/adapters/stable_shim_usage_linter.py135
LOWtools/linter/adapters/pyfmt_linter.py142
LOWtools/linter/adapters/generated_shims_version_linter.py166
LOWtools/linter/adapters/no_workflows_on_fork.py90
LOWtools/linter/adapters/no_merge_conflict_csv_linter.py62
LOWtools/linter/adapters/stable_shim_version_linter.py34
LOWtools/linter/adapters/stable_shim_version_linter.py125
LOWtools/linter/adapters/stable_shim_version_linter.py49
LOWtools/linter/adapters/test_device_bias_linter.py45
LOWtools/linter/adapters/test_device_bias_linter.py46
LOWtools/linter/adapters/test_device_bias_linter.py170
LOWtools/linter/adapters/_stable_shim_utils.py305
LOWtools/linter/adapters/header_only_linter.py45
LOWtools/linter/adapters/clangformat_linter.py165
LOWtools/linter/adapters/docstring_linter.py195
LOWtools/linter/adapters/docstring_linter.py172
LOWtools/linter/adapters/pyproject_linter.py215
3681 more matches not shown…
Cross-Language Confusion487 hits · 2450 pts
SeverityFileLineSnippet
HIGHtools/linter/adapters/lintrunner_version_linter.py57 description="Lintrunner is not installed, did you forget to run `make setup-lint && make lint`?",
HIGH.ci/lumen_cli/tests/test_run_plan.py99 "export A=x && pytest -q",
HIGH.ci/lumen_cli/tests/test_run_plan.py100 "export B=y && pytest -q tests/unit",
HIGHtest/test_datapipe.py565 self.assertTrue(df.equals(cdf))
HIGHtest/test_schema_check.py459 # Empty containers return false
HIGHtest/test_jit.py6521 # 1. nan == nan should return true
HIGHtest/test_pytree.py1271 '"children_spec": [{"type": null, "context": null, '
HIGHtest/test_pytree.py1272 '"children_spec": []}, {"type": null, "context": null, '
HIGHtest/test_pytree.py1273 '"children_spec": []}]}, {"type": null, "context": null, '
HIGHtest/test_pytree.py1275 '"[4, 5, 6]", "children_spec": [{"type": null, "context": null, '
HIGHtest/test_pytree.py1276 '"children_spec": []}, {"type": null, "context": null, "children_spec": '
HIGHtest/test_pytree.py1277 '[]}, {"type": null, "context": null, "children_spec": []}]}]}]'
HIGHtest/test_cuda.py9562 if (row < M && col < N) {
HIGHtest/test_opaque_obj_v2.py466 queue.push(b)
HIGHtest/test_meta.py1263 with MetaCrossRefDispatchMode.push(
HIGHtest/inductor/test_torchbind.py122 q.push(torch.ones(2, 3))
HIGHtest/inductor/test_torchbind.py350 self.tq.push(x.cos())
HIGHtest/inductor/test_torchbind.py351 self.tq.push(x.sin())
HIGHtest/nn/test_pooling.py817 "MaxUnpool2d": r"Assertion `maxind >= 0 && maxind < outputImageSize` failed",
HIGHtest/nn/test_pooling.py818 "MaxUnpool3d": r"Assertion `index >= 0 && index < outputImageSize` failed",
HIGHtest/nn/test_embedding.py1086 msg = "Expected idx >= 0 && idx < num_embeddings"
HIGHtest/distributed/test_distributed_spawn.py42 f"e.g.\ntouch /tmp/barrier && TEMP_DIR=/tmp BACKEND='nccl' WORLD_SIZE=2 python {__file__}",
HIGHtest/fx/test_fx_split.py211 # pyre-fixme[61]: `name` is undefined, or not always defined.
HIGHtest/quantization/eager/test_equalize_eager.py56 identical modules should return true
HIGHtest/quantization/eager/test_equalize_eager.py57 modules with high difference in weights should return false
HIGHtest/cpython/v3_13/test_contextlib.py812 stack.push(_expect_ok)
HIGHtest/cpython/v3_13/test_contextlib.py815 stack.push(cm)
HIGHtest/cpython/v3_13/test_contextlib.py817 stack.push(_suppress_exc)
HIGHtest/cpython/v3_13/test_contextlib.py820 stack.push(cm)
HIGHtest/cpython/v3_13/test_contextlib.py822 stack.push(_expect_exc)
HIGHtest/cpython/v3_13/test_contextlib.py824 stack.push(_expect_exc)
HIGHtest/cpython/v3_13/test_contextlib.py893 stack.push(lambda *exc: False)
HIGHtest/cpython/v3_13/test_contextlib.py898 stack.push(lambda *exc: True)
HIGHtest/cpython/v3_13/test_contextlib.py1066 stack.push(suppress_exc)
HIGHtest/cpython/v3_13/test_contextlib.py1137 stack.push(suppress_exc)
HIGHtest/cpython/v3_13/test_contextlib.py1144 stack.push(lambda *exc: True)
HIGHtest/cpython/v3_13/test_contextlib.py1145 stack.push(lambda *exc: 1/0)
HIGHtest/cpython/v3_13/test_contextlib.py1146 stack.push(lambda *exc: {}[1])
HIGHtest/cpython/v3_13/test_contextlib.py997 stack.push(suppress_exc)
HIGHtest/cpython/v3_13/test_contextlib.py1163 stack.push(cm)
HIGHtest/jit/test_torchbind.py98 stackstring.push("lel")
HIGHtest/jit/test_torchbind.py61 ss1.push(ss2.pop())
HIGHtest/lazy/test_functionalization.py98 %1 = [BFloat16[3]] aten::_to_copy(%0), dtype=BFloat16, layout=null, device=null, pin_memory=null, non_blocking=0, memo
HIGHtest/export/test_torchbind.py1106 tq.push(torch.zeros(2, 2))
HIGHtest/export/test_torchbind.py1107 tq.push(torch.ones(2, 2))
HIGHtest/export/test_torchbind.py1109 tq.push(torch.ones(2, 2) * 2)
HIGHtest/export/test_torchbind.py1175 tq.push(x.cos())
HIGHtest/export/test_torchbind.py1176 tq.push(x.sin())
HIGHtest/export/test_torchbind.py1236 tq.push(x.cos())
HIGHtest/export/test_torchbind.py1237 tq.push(x.sin())
HIGHtest/export/test_torchbind.py1251 tq2.push(torch.randn(4, 5, requires_grad=False))
HIGHtest/export/test_torchbind.py1257 tq3.push(torch.randn(2, 3, requires_grad=False))
HIGHtest/export/test_torchbind.py1263 tq4.push(torch.randn(2, 3, requires_grad=False))
HIGHtest/export/test_torchbind.py1269 tq5.push(torch.randn(2, 3, requires_grad=True))
HIGHtest/export/test_torchbind.py1275 tq6.push(torch.randn(2, 3, requires_grad=True, dtype=torch.float64))
HIGHtest/export/test_torchbind.py1287 tq.push(x.cos())
HIGHtest/export/test_torchbind.py1288 tq.push(x.sin())
HIGHtest/export/test_torchbind.py1297 tq1.push(torch.randn(2, 3, requires_grad=False))
HIGHtest/export/test_torchbind.py1303 tq2.push(torch.randn(2, 4, requires_grad=False))
HIGHtest/export/test_torchbind.py1308 tq3.push(torch.randn(2, 5, requires_grad=False))
427 more matches not shown…
Decorative Section Separators695 hits · 2112 pts
SeverityFileLineSnippet
MEDIUMtools/experimental/torchfuzz/codegen.py290# ---------------------------------------------------------------------------
MEDIUMtools/experimental/torchfuzz/codegen.py292# ---------------------------------------------------------------------------
MEDIUMtools/code_analyzer/gen_operators_yaml.py28# ------------------------------------------------------------------------------
MEDIUMtools/code_analyzer/gen_operators_yaml.py34# ------------------------
MEDIUMtools/code_analyzer/gen_operators_yaml.py64# -----------------------------------------------
MEDIUM.ci/docker/common/install_openmpi.sh5# --------------------------------------------------------------------------
MEDIUM.ci/docker/common/install_rocm.sh151 # =========================================================================
MEDIUM.ci/docker/common/install_rocm.sh153 # =========================================================================
MEDIUMtest/test_dynamic_shapes.py1210 # ------------------------------------------------------------------
MEDIUMtest/test_dynamic_shapes.py1215 # ------------------------------------------------------------------
MEDIUMtest/test_dynamic_shapes.py1225 # ------------------------------------------------------------------
MEDIUMtest/test_dynamic_shapes.py1232 # ------------------------------------------------------------------
MEDIUMtest/test_custom_ops.py5467# =========================================================
MEDIUMtest/test_custom_ops.py5469# =========================================================
MEDIUMtest/test_custom_ops.py5479# =========================================================
MEDIUMtest/test_custom_ops.py5481# =========================================================
MEDIUMtest/test_custom_ops.py5516# =========================================================
MEDIUMtest/test_custom_ops.py5518# =========================================================
MEDIUMtest/test_custom_ops.py5501# =========================================================
MEDIUMtest/test_custom_ops.py5503# =========================================================
MEDIUMtest/test_scatter_gather_ops.py535# ---------------------------------------------------------------------------
MEDIUMtest/test_scatter_gather_ops.py543# ---------------------------------------------------------------------------
MEDIUMtest/test_sympy_utils.py919 # =====================================
MEDIUMtest/test_sympy_utils.py925 # =====================================
MEDIUMtest/test_sympy_utils.py939 # =====================================
MEDIUMtest/inductor/test_dropout_align_random_eager.py21# ───────────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py23# ───────────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py32# ───────────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py34# ───────────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py129# ───────────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py131# ───────────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py245 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py247 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py274 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py276 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py305 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py307 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py330 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py332 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py375 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py377 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py411 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py413 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py444 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py446 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py75# ───────────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py77# ───────────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py351 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py353 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py467 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_dropout_align_random_eager.py471 # ───────────────────────────────────────────────────────────
MEDIUMtest/inductor/test_user_streams.py1619 # ------------------------------------------------------------------
MEDIUMtest/inductor/test_user_streams.py1623 # ------------------------------------------------------------------
MEDIUMtest/inductor/test_user_streams.py1838 # ------------------------------------------------------------------
MEDIUMtest/inductor/test_user_streams.py1842 # ------------------------------------------------------------------
MEDIUMtest/inductor/test_user_streams.py1646 # ------------------------------------------------------------------
MEDIUMtest/inductor/test_user_streams.py1649 # ------------------------------------------------------------------
MEDIUMtest/inductor/test_user_streams.py1680 # ------------------------------------------------------------------
MEDIUMtest/inductor/test_user_streams.py1683 # ------------------------------------------------------------------
MEDIUMtest/inductor/test_user_streams.py1729 # ------------------------------------------------------------------
635 more matches not shown…
Cross-File Repetition390 hits · 1950 pts
SeverityFileLineSnippet
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>\[.*\]
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>\[.*\]
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>\[.*\]
HIGHtest/test_dispatch.py0name multiple times. each overload's schema should only be registered with a single call to def().
HIGHtest/test_dispatch.py0name multiple times. each overload's schema should only be registered with a single call to def().
HIGHtest/test_dispatch.py0name multiple times. each overload's schema should only be registered with a single call to def().
HIGHtest/test_dispatch.py0duplicate registration: registered at /dev/null:0. original registration: registered at /dev/null:0
HIGHtest/test_dispatch.py0duplicate registration: registered at /dev/null:0. original registration: registered at /dev/null:0
HIGHtest/test_dispatch.py0duplicate registration: registered at /dev/null:0. original registration: registered at /dev/null:0
HIGHtest/test_functionalization.py0\ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals
HIGHtest/test_functionalization.py0\ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals
HIGHtest/test_functionalization.py0\ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals
HIGHtest/test_functionalization.py0\ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals
HIGHtest/test_functionalization.py0\ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals
HIGHtest/test_functionalization.py0\ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals
HIGHtest/test_functionalization.py0\ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals
HIGHtest/test_functionalization.py0\ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals
HIGHtest/test_weak.py0return a mapping object with the value contained in data dictionary
HIGHtest/test_weak.py0return a mapping object with the value contained in data dictionary
HIGHtest/cpython/v3_13/mapping_tests.py0return a mapping object with the value contained in data dictionary
HIGHtest/test_transformers.py0clones the query, key, and value tensors and moves them to the specified dtype.
HIGHtest/inductor/test_flex_attention.py0clones the query, key, and value tensors and moves them to the specified dtype.
HIGHtest/inductor/test_flex_decoding.py0clones the query, key, and value tensors and moves them to the specified dtype.
HIGHbenchmarks/transformer/score_mod.py0clones the query, key, and value tensors and moves them to the specified dtype.
HIGHtest/test_cpp_extensions_jit.py0torch::tensor tanh_add(torch::tensor x, torch::tensor y) { return x.tanh() + y.tanh(); }
HIGHtest/test_cpp_extensions_jit.py0torch::tensor tanh_add(torch::tensor x, torch::tensor y) { return x.tanh() + y.tanh(); }
HIGHtest/test_cpp_extensions_jit.py0torch::tensor tanh_add(torch::tensor x, torch::tensor y) { return x.tanh() + y.tanh(); }
HIGHtest/test_fx.py0def forward(self, args_list: list[torch.tensor]){maybe_return_annotation}: {', '.join(free_vars)} = args_list
HIGHtest/test_fx.py0def forward(self, args_list: list[torch.tensor]){maybe_return_annotation}: {', '.join(free_vars)} = args_list
HIGHtest/test_fx.py0def forward(self, args_list: list[torch.tensor]){maybe_return_annotation}: {', '.join(free_vars)} = args_list
HIGHtest/inductor/test_graph_transform_observer.py0input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_fused_attention.py0input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim)
HIGHtest/inductor/test_max_autotune.py0make sure autotuning mm in sub processes work without crashes.
HIGHtest/inductor/test_cutlass_backend.py0make sure autotuning mm in sub processes work without crashes.
HIGHtest/inductor/test_cutlass_backend.py0make sure autotuning mm in sub processes work without crashes.
HIGHtest/inductor/test_cutlass_backend.py0make sure autotuning mm in sub processes work without crashes.
HIGHtest/inductor/test_b2b_gemm.py0compare torch.compile(f, b2b_gemm = off) with torch.compile(f, b2b_gemm = on)
HIGHtest/inductor/test_b2b_gemm.py0compare torch.compile(f, b2b_gemm = off) with torch.compile(f, b2b_gemm = on)
HIGHtest/inductor/test_b2b_gemm.py0compare torch.compile(f, b2b_gemm = off) with torch.compile(f, b2b_gemm = on)
HIGHtest/inductor/test_codecache.py0verify that we can populate and hot load functions from the cache.
HIGHtest/inductor/test_codecache.py0verify that we can populate and hot load functions from the cache.
HIGHtest/dynamo/test_aot_autograd_cache.py0verify that we can populate and hot load functions from the cache.
HIGHtest/dynamo/test_aot_autograd_cache.py0verify that we can populate and hot load functions from the cache.
HIGH…ension/torch_openreg/torch_openreg/openreg/__init__.py0context-manager that changes the selected device. args: device (torch.device or int): device index to select. it's a no-
HIGHtorch/cuda/__init__.py0context-manager that changes the selected device. args: device (torch.device or int): device index to select. it's a no-
HIGHtorch/mtia/__init__.py0context-manager that changes the selected device. args: device (torch.device or int): device index to select. it's a no-
HIGHtest/nn/test_parametrization.py0test that all parametrizations and their associated parameters are transferred.
330 more matches not shown…
Self-Referential Comments660 hits · 1900 pts
SeverityFileLineSnippet
MEDIUMsetup.py516 # Create a temporary directory for downloading
MEDIUMsetup.py662 # Create a temporary directory for downloading
MEDIUMtools/update_masked_docs.py30# This file is generated, do not modify it!
MEDIUMtools/experimental/torchfuzz/ops_fuzzer.py472 # Create the operation node
MEDIUMtools/experimental/torchfuzz/multi_process_fuzzer.py22 # Create a mock tqdm class for type safety
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py251 # Create a valid permutation that's still dense
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py344 # Create a local Random instance to avoid interfering with global state
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py494 # Create a local random instance to avoid interfering with global state
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py502 # Create a scalar value based on dtype
MEDIUMtools/experimental/torchfuzz/tensor_fuzzer.py522 # Create a scalar value based on dtype
MEDIUMtools/experimental/torchfuzz/fuzzer.py104 # Create a unique folder for this iteration
MEDIUMtools/experimental/torchfuzz/operators/item.py27 # Create a tensor spec that can produce a scalar via .item()
MEDIUMtools/test/test_gb_registry_linter.py438 # Create a callsite with one of the duplicate types
MEDIUMtools/test/heuristics/test_interface.py29 # Create a dummy heuristic class
MEDIUMtools/linter/adapters/stable_shim_usage_linter.py124 "# This file is automatically updated by the stable_shim_usage_linter.\n"
MEDIUMtools/linter/adapters/s3_init.py122 # Create the output folder
MEDIUMtools/autograd/gen_variable_type.py431# The following code templates implement the checks for this invariant:
MEDIUMtools/autograd/derivatives.yaml1487# Defining a backward will make codegen spit out the forward call as
MEDIUMtools/setup_helpers/gen_version_header.py59 # Create the output dir if it doesn't exist.
MEDIUM.ci/lumen_cli/tests/test_utils.py26 # Create a temporary directory for the test to run in
MEDIUM.ci/lumen_cli/cli/lib/core/vllm/vllm_test_library.yaml2# This file defines the test plans for vllm CI development
MEDIUM.ci/libtorch/extract_libtorch_from_wheel.py326 # Create the zip
MEDIUM.ci/wheel/build_wheel.sh86# Create an isolated directory to store this builds pytorch checkout and conda
MEDIUM.ci/wheel/build_wheel.sh103# Create a consistent wheel package name to rename the wheel to
MEDIUMtest/test_python_dispatch.py680 # Create a fragment
MEDIUMtest/test_functionalization.py1824 # Create a view of x
MEDIUMtest/test_hub.py316 # Create an entry with malicious path
MEDIUMtest/test_hub.py322 # Create a single entry with malicious path for legacy format
MEDIUMtest/test_hub.py390 # Create a legacy-style malicious zip (single entry with traversal)
MEDIUMtest/test_hub.py412 # Create a zip that looks like a GitHub repository but has malicious content
MEDIUMtest/test_torch.py3449 # Create the 4 possible combinations of scalar sizes for source / index
MEDIUMtest/test_torch.py3498 # Create the 8 possible combinations of scalar sizes for target / index / source
MEDIUMtest/test_torch.py8607 # This method is primarily exposed for torchvision's resize
MEDIUMtest/test_torch.py10909# The following block extends TestTorch with negative dim wrapping tests
MEDIUMtest/test_dynamic_shapes.py6326 # Create a backed symbol
MEDIUMtest/test_dynamic_shapes.py6331 # Create an unbacked symbol
MEDIUMtest/test_dynamic_shapes.py3839 # Create a symint during fake tensor tracing
MEDIUMtest/test_dynamic_shapes.py4906 # Create a scalar tensor to scatter into the selected index
MEDIUMtest/test_dynamic_shapes.py5906 # Create a tensor with shape [..., 2] where batch dim is unbacked
MEDIUMtest/test_dynamic_shapes.py6272 # Create a derived expression: u0 // 2
MEDIUMtest/test_optim.py2067 # Create a random 2D tensor for compatibility with Muon.
MEDIUMtest/test_nn.py9428 # Create an appropriately-sized input with a single spatial element.
MEDIUMtest/test_subclass.py231 # Define a subclass that does not rewrap for any function in its __torch_dispatch__ impl.
MEDIUMtest/test_indexing.py1952 # Create the 8 possible combinations of scalar sizes for target / index / source
MEDIUMtest/test_indexing.py2289 # Create the 4 possible combinations of scalar sizes for index / source
MEDIUMtest/test_custom_ops.py1178 # Define a named tuple for a Point with x and y coordinates
MEDIUMtest/test_cuda.py4723 # Create a pipe to communicate between parent and child processes
MEDIUMtest/test_cuda.py2675 # Define a function to create generator states, with optional graph registration
MEDIUMtest/test_cuda.py2694 # Define a function to perform specific RNG actions using the generator's states
MEDIUMtest/test_cuda.py2711 # Define a function to retrieve the final offsets of the original and new generator states
MEDIUMtest/test_cuda.py5156 # Create a simple model with a backward pass
MEDIUMtest/test_cuda.py5345 # Create an instance of the model
MEDIUMtest/test_cuda.py5350 # Create a sample input tensor
MEDIUMtest/test_cuda.py2398 # This function is intended to test the lazy creation and reuse of per-thread
MEDIUMtest/test_cuda.py9628 # Define a simple vector addition kernel
MEDIUMtest/test_opaque_obj_v2.py95# Create a class with an unsupported descriptor
MEDIUMtest/test_opaque_obj_v2.py214 # Create a new counter to match device mesh's __getitem__
MEDIUMtest/test_dlpack.py416 # Create a new tensor, and wrap it using TensorDLPackWrapper.
MEDIUMtest/test_dlpack.py419 # Create a new tensor from the wrapper.
MEDIUMtest/test_dlpack.py117 # Create a stream where the tensor will reside
600 more matches not shown…
Excessive Try-Catch Wrapping1272 hits · 1310 pts
SeverityFileLineSnippet
LOWsetup.py697 except Exception:
LOWsetup.py705 except Exception:
LOWtools/render_junit.py33 except Exception as err:
MEDIUMtools/nightly_hotpatch.py94 print("Error: PyTorch is not installed in the current Python environment.")
LOWtools/nightly_hotpatch.py130 except Exception as e:
MEDIUMtools/nightly_hotpatch.py131 print(f"An error occurred while downloading the patch: {e}")
MEDIUMtools/nightly_hotpatch.py178 print("Error: The 'patch' utility is not installed or not found in PATH.")
LOWtools/nightly_hotpatch.py180 except Exception as e:
MEDIUMtools/nightly_hotpatch.py181 print(f"An error occurred while applying the patch: {e}")
LOWtools/generate_torch_version.py30 except Exception:
LOWtools/generate_torch_version.py47 except Exception:
LOWtools/nightly.py721 except Exception as e:
LOWtools/nightly.py945 except Exception:
LOWtools/experimental/torchfuzz/ops_fuzzer.py238 except Exception:
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py175 except Exception as e:
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py351 except Exception as e:
LOWtools/experimental/torchfuzz/fuzzer.py232 except Exception as e:
MEDIUMtools/experimental/torchfuzz/fuzzer.py240 print(f"Error: {error_message}")
LOWtools/experimental/torchfuzz/fuzzer.py375 except Exception as e:
LOWtools/experimental/torchfuzz/fuzzer.py413 except Exception as e:
LOWtools/test/gen_operators_yaml_test.py141 except Exception:
LOWtools/linter/adapters/gha_linter.py61 except Exception as err:
LOWtools/linter/adapters/actionlint_linter.py168 except Exception:
LOWtools/linter/adapters/grep_linter.py136 except Exception as err:
LOWtools/linter/adapters/grep_linter.py216 except Exception as err:
LOWtools/linter/adapters/grep_linter.py397 except Exception as err:
LOWtools/linter/adapters/cmake_linter.py144 except Exception:
LOWtools/linter/adapters/pyfmt_linter.py138 except Exception as err:
LOWtools/linter/adapters/pyfmt_linter.py177 except Exception:
LOWtools/linter/adapters/no_workflows_on_fork.py242 except Exception:
LOWtools/linter/adapters/no_merge_conflict_csv_linter.py97 except Exception:
LOWtools/linter/adapters/stable_shim_version_linter.py117 except Exception as e:
LOWtools/linter/adapters/nativefunctions_linter.py75 except Exception as err:
LOWtools/linter/adapters/clangformat_linter.py240 except Exception:
LOWtools/linter/adapters/docstring_linter.py92 except Exception as e:
MEDIUMtools/linter/adapters/docstring_linter.py86def _grandfather(self) -> dict[str, dict[str, Any]]:
LOWtools/linter/adapters/pyproject_linter.py250 except Exception:
LOWtools/linter/adapters/clangtidy_linter.py314 except Exception:
LOWtools/linter/adapters/cmake_minimum_required_linter.py186 except Exception:
LOWtools/linter/adapters/cmake_minimum_required_linter.py246 except Exception:
LOWtools/linter/adapters/ruff_linter.py463 except Exception: # Catch all exceptions for lintrunner
LOWtools/linter/adapters/newlines_linter.py96 except Exception as err:
LOWtools/linter/adapters/newlines_linter.py135 except Exception as err:
LOWtools/linter/adapters/codespell_linter.py132 except Exception as err:
LOWtools/linter/adapters/codespell_linter.py159 except Exception as err:
LOWtools/linter/adapters/codespell_linter.py200 except Exception:
LOWtools/dynamo/verify_dynamo.py187 except Exception:
LOWtools/testing/upload_artifacts.py121 except Exception as e:
LOWtools/testing/upload_artifacts.py207 except Exception as e:
LOWtools/testing/upload_artifacts.py219 except Exception as e:
LOWtools/testing/target_determination/determinator.py30 except Exception as e:
MEDIUMtools/testing/target_determination/determinator.py31 print(f"Error in {heuristic.__class__.__name__}: {e}", file=file)
LOW…ing/target_determination/heuristics/mentioned_in_pr.py33 except Exception as e:
LOW…ing/target_determination/heuristics/mentioned_in_pr.py42 except Exception as e:
LOW…ing/target_determination/heuristics/mentioned_in_pr.py53 except Exception:
LOWtools/stats/monitor.py244 except Exception as e:
LOWtools/stats/monitor.py323 except Exception as e:
LOWtools/stats/monitor.py472 except Exception as e:
LOWtools/stats/monitor.py499 except Exception:
LOWtools/stats/monitor.py524 except Exception:
1212 more matches not shown…
Hallucination Indicators129 hits · 1230 pts
SeverityFileLineSnippet
CRITICALtools/autograd/load_derivatives.py292 is_foreach = f.func.name.name.base.startswith("_foreach_")
CRITICALtools/autograd/gen_autograd_functions.py694 info.func.func.name.name.base.startswith("_foreach") and is_output
CRITICALtest/test_per_overload_api.py73 torch.ops.aten.linear.default.decompose(x, y),
CRITICALtest/inductor/test_gpu_select_algorithm.py104 w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel(
CRITICALtest/inductor/test_gpu_select_algorithm.py159 w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel(
CRITICALtest/inductor/test_cpu_select_algorithm.py1668 w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel(
CRITICALtest/inductor/test_cpu_select_algorithm.py1736 w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel(
CRITICALtest/onnx/test_pytorch_onnx_onnxruntime.py12881 model = torch.ao.nn.intrinsic.quantized.ConvReLU1d(16, 33, 3, stride=2)
CRITICALtest/onnx/test_pytorch_onnx_onnxruntime.py12895 model = torch.ao.nn.intrinsic.quantized.ConvReLU2d(16, 33, 3, stride=2)
CRITICALtest/onnx/test_pytorch_onnx_onnxruntime.py12910 model = torch.ao.nn.intrinsic.quantized.ConvReLU3d(
CRITICALtest/fx/test_dce_pass.py232 torch._ops.ops.aten.add_.Tensor(a, 1)
CRITICALtest/fx/test_dce_pass.py314 torch._ops.ops.aten.add.out(b, b, out=a, alpha=2)
CRITICALtest/dynamo/test_reconstruct.py375 return self.a.b.c.d.e(x)
CRITICALtest/quantization/core/test_quantized_module.py1742 cell_dq = torch.ao.nn.quantized.dynamic.LSTM(input_size=input_size,
CRITICALtest/quantization/core/test_quantized_module.py1750 ref_dq = torch.ao.nn.quantized.dynamic.LSTM(input_size=input_size,
CRITICALtest/quantization/core/test_quantized_module.py1804 cell_dq = torch.ao.nn.quantized.dynamic.GRU(input_size=input_size,
CRITICALtest/quantization/core/test_quantized_op.py679 qY = torch.ao.nn.quantized.functional.elu(qX, output_scale, output_zero_point, alpha=alpha)
CRITICALtest/quantization/core/test_quantized_op.py1038 qY = torch.ao.nn.quantized.functional.hardswish(
CRITICALtest/quantization/core/test_quantized_op.py3056 qY = torch.ao.nn.quantized.functional.hardtanh(qX, -1, 6)
CRITICALtest/quantization/core/test_quantized_op.py9137 qY_hat = torch.ao.nn.quantized.functional.hardtanh(qX, min_val, max_val)
CRITICALtest/quantization/fx/test_quantize_fx.py4944 return torch.ao.quantization.fx.lstm_utils._get_lstm_with_individually_observed_parts(
CRITICALtest/quantization/fx/test_quantize_fx.py4964 return torch.ao.quantization.fx.lstm_utils._get_reference_quantized_lstm_module(
CRITICALtest/quantization/fx/test_quantize_fx.py6770 activation=torch.ao.quantization.observer.HistogramObserver.with_args(
CRITICALtest/quantization/jit/test_quantize_jit.py3844 eager_model.sub.module.fc1.weight.detach()
CRITICALtest/quantization/jit/test_quantize_jit.py3847 eager_model.sub.module.fc1.bias.detach()
CRITICALtest/quantization/jit/test_quantize_jit.py3850 eager_model.sub.module.fc2.weight.detach()
CRITICALtest/quantization/jit/test_quantize_jit.py3853 eager_model.sub.module.fc2.bias.detach()
CRITICALtest/quantization/jit/test_quantize_jit.py3798 eager_model.sub2.fc1.module.weight.detach()
CRITICALtest/quantization/jit/test_quantize_jit.py3801 eager_model.sub2.fc1.module.bias.detach()
CRITICALtest/quantization/eager/test_quantize_eager_ptq.py1078 original_m.sub.custom.conv.weight.detach()
CRITICALtest/quantization/eager/test_quantize_eager_ptq.py1081 original_m.sub.custom.conv.bias.detach()
CRITICALtest/cpp/jit/test_backend.cpp49 __torch__.torch.classes.__backends__.test_backend.__new__(__torch__.torch.classes.__backends__.test_backend)
CRITICALtest/jit/test_class_type.py556 three = jit._imported_class_test.very.very.nested.FooUniqueName(a)
CRITICALtest/export/test_torchbind.py344 torch.ops._TorchScriptTesting.takes_foo.default._dispatch_cache.clear()
CRITICALtest/export/test_torchbind.py355 torch.ops._TorchScriptTesting.takes_foo.default.py_impl(
CRITICALtest/export/test_export.py12316 x = self.n3.n4.n5.n6.n7.n8(x + 1)
CRITICALtest/export/test_export.py12318 self.n3.n4.n5.buf.add_(1)
CRITICALtest/export/test_export.py12319 self.n3.n4.n5.n6.buf.add_(1)
CRITICALtest/export/test_export.py12320 self.n3.n4.n5.n6.n7.n8.buf.add_(1)
CRITICALtest/export/test_export.py12355 x = self.n1.n2.n3.n4.n5.n6.n7(x + 1)
CRITICALtest/export/test_export.py12356 self.n1.n2.n3.buf.add_(1)
CRITICALtest/export/test_export.py12357 self.n1.n2.n3.n4.n5.n6.buf.add_(1)
CRITICALtest/export/test_export.py12358 self.n1.n2.n3.n4.n5.n6.n7.n8.buf.add_(1)
CRITICALtest/export/test_export.py12735 x = self.n1.n2.n3.n4.n5(x + 1)
CRITICALtest/export/test_export.py12736 x = self.n1.n2.n3.n4.n5.n6(x + 1)
CRITICALtest/export/test_export.py12738 self.n1.n2.n3.n4.buf.add_(1)
CRITICALtest/export/test_export.py12739 self.n1.n2.n3.n4.n5.buf.add_(1)
CRITICALtest/export/test_export.py12740 self.n1.n2.n3.n4.n5.n6.buf.add_(1)
CRITICALtest/export/test_export.py12834 x = self.n5.n6.n7.n8.n9(x + 1)
CRITICALtest/export/test_export.py12837 self.n5.n6.n7.buf.add_(1)
CRITICALtest/export/test_export.py12838 self.n5.n6.n7.n8.buf.add_(1)
CRITICALtest/export/test_export.py12855 x = self.n4.n5.n6.n7.n8(x + 1)
CRITICALtest/export/test_export.py12856 x = self.n4.n5.n6.n7.n8.n9(x + 1)
CRITICALtest/export/test_export.py12857 self.n4.n5.n6.buf.add_(1)
CRITICALtest/export/test_export.py12858 self.n4.n5.n6.n7.n8.buf.add_(1)
CRITICALtest/export/test_export.py12875 x = self.n3.n4.n5.n6.n7.n8(x + 1)
CRITICALtest/export/test_export.py12876 x = self.n3.n4.n5.n6.n7.n8.n9(x + 1)
CRITICALtest/export/test_export.py12879 self.n3.n4.n5.buf.add_(1)
CRITICALtest/export/test_export.py12880 self.n3.n4.n5.n6.buf.add_(1)
CRITICALtest/export/test_export.py12881 self.n3.n4.n5.n6.n7.buf.add_(1)
69 more matches not shown…
Docstring Block Structure200 hits · 988 pts
SeverityFileLineSnippet
HIGHtest/test_transformers.py102 Compare test tensor against golden and reference tensors. Golden is the highest precision possible serving as t
HIGHtest/onnx/onnx_test_common.py163Run ORT on the given ONNX model and inputs Used in test_fx_to_onnx_with_onnxruntime.py Args: onnx_mode
HIGHtest/onnx/torchlib/ops_test_common.py327Run a model with ONNX Runtime in a separate process. Args: serialized_model: Serialized ONNX model proto.
HIGH.claude/skills/docstring/SKILL.md295 Sample from the Gumbel-Softmax distribution and optionally discretize. Args: logits (Tensor): `[..., n
HIGHtorch/library.py1695Returns the computed kernel for a given operator and dispatch key. This function retrieves the kernel that would be
HIGHtorch/_torch_docs.py4592 unflatten(input, dim, sizes) -> Tensor Expands a dimension of the input tensor over multiple dimensions. .. seealso::
HIGHtorch/_torch_docs.py6490 lu_unpack(LU_data, LU_pivots, unpack_data=True, unpack_pivots=True, *, out=None) -> (Tensor, Tensor, Tensor) Unpacks t
HIGHtorch/_torch_docs.py7461 aminmax(input, *, dim=None, keepdim=False, out=None) -> (Tensor min, Tensor max) Computes the minimum and maximum valu
HIGHtorch/_torch_docs.py11658 triangular_solve(b, A, upper=True, transpose=False, unitriangular=False, *, out=None) -> (Tensor, Tensor) Solves a sys
HIGHtorch/functional.py80broadcast_shapes(*shapes) -> Size Similar to :func:`broadcast_tensors` but for shapes. This is equivalent to
HIGHtorch/functional.py176einsum(equation, *operands) -> Tensor Sums the product of the elements of the input :attr:`operands` along dimensio
HIGHtorch/_lobpcg.py359Find the k largest (or smallest) eigenvalues and the corresponding eigenvectors of a symmetric positive definite gen
HIGHtorch/serialization.py714 Restores `storage` using a deserializer function registered for the `location`. This function looks in the reg
HIGHtorch/_functorch/einops.py16A native implementation of `einops.rearrange`, a reader-friendly smart element reordering for multidimensional tenso
HIGHtorch/_functorch/_aot_autograd/fx_utils.py47 Given a joint graph with descriptors (meta['desc'] on placeholders and output), returns the node for every inpu
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_no
HIGHtorch/_functorch/_aot_autograd/fx_utils.py231Get parameter nodes mapped by their fully qualified names. This function traverses the graph to find all parameter
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
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
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
HIGHtorch/linalg/__init__.py97 .. seealso:: :func:`torch.linalg.cholesky_ex` for a version of this operation that skips the (slow) e
HIGHtorch/linalg/__init__.py243 .. note:: Consider using :func:`torch.linalg.solve` if possible for multiplying a matrix on the left by the in
HIGHtorch/linalg/__init__.py308 Args: A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions. Keyword args: left
HIGHtorch/linalg/__init__.py426 linalg.slogdet(A, *, out=None) -> (Tensor, Tensor) Computes the sign and natural logarithm of the absolute value of th
HIGHtorch/linalg/__init__.py504 .. warning:: This function assumes that :attr:`A` is `diagonalizable`_ (for example, when all the eigenva
HIGHtorch/linalg/__init__.py615 .. seealso:: :func:`torch.linalg.eig` computes the full eigenvalue decomposition. Args: A (Tensor): tens
HIGHtorch/linalg/__init__.py675 .. note:: The eigenvalues of real symmetric or complex Hermitian matrices are always real. .. warning:: The eigenvect
HIGHtorch/linalg/__init__.py798 .. seealso:: :func:`torch.linalg.eigh` computes the full eigenvalue decomposition. Args: A (Tensor): ten
HIGHtorch/linalg/__init__.py838 householder_product(A, tau, *, out=None) -> Tensor Computes the first `n` columns of a product of Householder matrices
HIGHtorch/linalg/__init__.py939 Args: A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions consistin
HIGHtorch/linalg/__init__.py993 Args: A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions consistin
HIGHtorch/linalg/__init__.py1080 torch.linalg.lstsq(A, B, rcond=None, *, driver=None) -> (Tensor, Tensor, Tensor, Tensor) Computes a solution to the le
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 i
HIGHtorch/linalg/__init__.py1355 linalg.norm(input, ord=None, dim=None, keepdim=False, *, out=None, dtype=None) -> Tensor Computes a vector or matrix n
HIGHtorch/linalg/__init__.py1494 linalg.vector_norm(x, ord=2, dim=None, keepdim=False, *, dtype=None, out=None) -> Tensor Computes a vector norm. If :
HIGHtorch/linalg/__init__.py1576 linalg.matrix_norm(A, ord='fro', dim=(-2, -1), keepdim=False, *, dtype=None, out=None) -> Tensor Computes a matrix nor
HIGHtorch/linalg/__init__.py1741 linalg.svd(A, full_matrices=True, *, driver=None, out=None) -> (Tensor, Tensor, Tensor) Computes the singular value de
HIGHtorch/linalg/__init__.py1912 .. seealso:: :func:`torch.linalg.svd` computes the full singular value decomposition. Args: A (Tensor):
HIGHtorch/linalg/__init__.py1945 linalg.cond(A, p=None, *, out=None) -> Tensor Computes the condition number of a matrix with respect to a matrix norm.
HIGHtorch/linalg/__init__.py2268 .. seealso:: :func:`torch.linalg.solve_triangular` computes the solution of a triangular system of linear
HIGHtorch/linalg/__init__.py2432 .. warning:: The LU decomposition is almost never unique, as often there are different permutation matrice
HIGHtorch/linalg/__init__.py2601 lu(A, *, pivot=True, out=None) -> (Tensor, Tensor, Tensor) Computes the LU decomposition with partial pivoting of a ma
HIGHtorch/linalg/__init__.py2691 linalg.tensorinv(A, ind=2, *, out=None) -> Tensor Computes the multiplicative inverse of :func:`torch.tensordot`. If
HIGHtorch/linalg/__init__.py2759 linalg.tensorsolve(A, B, dims=None, *, out=None) -> Tensor Computes the solution `X` to the system `torch.tensordot(A,
HIGHtorch/linalg/__init__.py2825 qr(A, mode='reduced', *, out=None) -> (Tensor, Tensor) Computes the QR decomposition of a matrix. Letting :math:`\mat
HIGHtorch/nn/functional.py2180 Sample from the Gumbel-Softmax distribution (`Link 1`_ `Link 2`_) and optionally discretize. Args: logi
HIGHtorch/nn/functional.py6372 Args: query (Tensor): Query tensor; shape :math:`(N, ..., Hq, L, E)`. key (Tensor): Key tensor; sha
HIGHtorch/nn/attention/bias.py192 Handles the logic for computing attention with the specified causal bias. Args: query (Ten
HIGHtorch/nn/attention/flex_attention.py985 Creates a BlockMask instance from key-value block information. Args: kv_num_blocks (Tensor
HIGHtorch/nn/parallel/distributed.py71Factory method to create a BucketCapacityConfig from user inputs. Args: bucket_cap_mb: Single bucke
HIGHtorch/nn/parallel/distributed.py133Compute bucket size limits for initial bucketing and rebuilding. Args: static_graph: Whether the co
HIGHtorch/nn/utils/stateless.py18 Unties all tied tensors in the module to parameters_and_buffers. This function returns a new untied_parameters
HIGHtorch/nn/utils/parametrize.py457Register a parametrization to a tensor in a module. Assume that ``tensor_name="weight"`` for simplicity. When acces
HIGHtorch/nn/utils/parametrize.py701Remove the parametrizations on a tensor in a module. - If ``leave_parametrized=True``, ``module[tensor_name]`` will
HIGHtorch/nn/utils/weight_norm.py85Apply weight normalization to a parameter in the given module. .. math:: \mathbf{w} = g \dfrac{\mathbf{v}}
HIGHtorch/nn/utils/prune.py590Compute and returns a mask for the input tensor ``t``. Starting from a base ``default_mask`` (which should be a
HIGHtorch/nn/utils/prune.py699Compute and returns a mask for the input tensor ``t``. Starting from a base ``default_mask`` (which should be a
HIGHtorch/nn/utils/prune.py837Apply pruning reparameterization without pruning any units. Applies pruning reparameterization to the tensor corres
HIGHtorch/nn/utils/prune.py872Prune tensor by removing random (currently unpruned) units. Prunes tensor corresponding to parameter called ``name`
HIGHtorch/nn/utils/prune.py909Prune tensor by removing units with the lowest L1-norm. Prunes tensor corresponding to parameter called ``name`` in
140 more matches not shown…
Redundant / Tautological Comments491 hits · 716 pts
SeverityFileLineSnippet
LOWtools/nightly_hotpatch.py168 # Check if the patch was applied successfully
LOWtools/packaging/build_wheel.py85 # Check if it's PyPy (skip it)
LOWtools/packaging/build_wheel.py103 # Check if this version is supported
LOWtools/experimental/torchfuzz/ops_fuzzer.py71 # Check if the operator supports any of the allowed operations
LOWtools/experimental/torchfuzz/multi_process_fuzzer.py159 # Check if output should be ignored and which pattern matched
LOWtools/experimental/torchfuzz/operators/layout.py333 # Check if there's at least one singleton dimension
LOWtools/linter/adapters/grep_linter.py201 # Check if file is too large to compute replacement
LOWtools/linter/adapters/stable_shim_version_linter.py137 # Check if this is the AOTI shim - only enforce versioning on new lines
LOWtools/linter/adapters/stable_shim_version_linter.py186 # Check if this is a newly added line
LOWtools/linter/adapters/_stable_shim_utils.py319 # Check if we're entering a block comment
LOWtools/linter/adapters/_stable_shim_utils.py384 # Check if this #elif has a version condition
LOWtools/linter/adapters/s3_init.py42 # Open the file in binary mode and hash it.
LOWtools/linter/adapters/update_s3.py25 # Open the file in binary mode and hash it.
LOWtools/linter/adapters/newlines_linter.py44 # Check if file is too large
LOWtools/linter/adapters/codespell_linter.py98 # Check if file is too large
LOWtools/amd_build/build_amd.py150# Check if the compiler is hip-clang.
LOWtools/testing/target_determination/heuristics/utils.py170 # Check if the file extension is in the docs-only set
LOW…ols/lite_interpreter/gen_selected_mobile_ops_header.py87# Write the file selected_mobile_ops.h with optionally:
LOW…ols/lite_interpreter/gen_selected_mobile_ops_header.py126# Write the file selected_mobile_ops.h with optionally:
LOWtools/stats/import_test_stats.py57 # Check if the file is new enough (see: FILE_CACHE_LIFESPAN_SECONDS). A real check
LOWtools/stats/check_disabled_tests.py77 # Check if the test is a failure
LOW.ci/docker/common/install_torch_tpu.sh56 # Check if xtrace (set -x) is enabled
LOW.ci/pytorch/common_utils.sh63 # Check if the first argument contains multiple paths separated by spaces
LOW.ci/pytorch/common_utils.sh200 # Check if the wheel has been already been built
LOW.ci/pytorch/build.sh141 # Set ROCM_ARCH to gfx906 for CI builds, if user doesn't override.
LOW.ci/pytorch/test.sh166# Set OMP_NUM_THREADS to nproc/4 on k8s ARC runners if not already set.
LOW.ci/pytorch/test.sh1353 # Check if regression was consistent (majority of runs)
LOW.ci/pytorch/smoke_test/smoke_test.py529 # Check if NVSHMEM is compiled in current build
LOW.ci/pytorch/smoke_test/smoke_test.py545 # Check if NVSHMEM is available on current system.
LOW.ci/pytorch/smoke_test/check_binary_symbols.py417 # Check if the stable C shim exists
LOWtest/test_linalg.py188 # Set filenames to be unique on a per test basis
LOWtest/test_reductions.py3659 # Check if reduction happens along the specified dim with and without keepdim. Check with
LOWtest/test_reductions.py3680 # Check if function raises error on specified zero'd dimension as reduction dim.
LOWtest/test_reductions.py3718 # Check if function raises error on specified zero'd dimension as reduction dim.
LOWtest/test_reductions.py3745 # Check if reduction happens along the specified dimension.
LOWtest/test_bundled_images.py90 # Check if fb::image_decode_to_NCHW works as expected
LOWtest/test_jit.py12881 # Check if the peak sizes at most differ by an empirically obtained factor
LOWtest/test_view_ops.py1092 # Check if result is a view of x by comparing data pointers
LOWtest/test_view_ops.py1094 # Check if ref is a view of x by comparing data pointers
LOWtest/test_custom_ops.py282 # Check if ret is a tuple and has exactly one and the same element
LOWtest/test_meta.py417 # Check if it's a view, by testing if any of the returns have
LOWtest/test_fx_experimental.py920 # Assign ops to different partitions so a single-output submodule exists.
LOWtest/test_modules.py103 # Check if this module creates parameters or registers buffers.
LOWtest/test_modules.py114 # Check if a parameter or buffer was created with a tensor not passed to the constructor.
LOWtest/test_modules.py271 # Check if the inplace variant of the module gives the same result as the out of place
LOWtest/test_transformers.py2675 # Check if masked rows are zero in output
LOWtest/test_transformers.py2682 # Check if gradients for masked rows are zero
LOWtest/inductor/test_flex_attention.py5858 # Check if kernel code contains warp specialization parameters
LOWtest/inductor/test_max_autotune.py5758 # Set env to make it work in CI.
LOWtest/inductor/test_cutlass_fallback.py18# Check if CUTLASS is available
LOWtest/inductor/test_cooperative_reductions.py130 # Iterate through elements for comparison
LOWtest/inductor/test_max_autotune_blackwell.py723 # Set env to make it work in CI.
LOWtest/inductor/test_pad_mm.py634 # Check if any bmm operations had dtype changes
LOWtest/inductor/test_ck_backend.py503 # Set env to make it work in CI.
LOWtest/inductor/test_subgraph_choice.py174 # Set env to make it work in CI.
LOWtest/inductor/test_foreach.py1070 # Set requires_grad to be False to avoid mutating a leaf variable
LOWtest/inductor/test_op_dtype_prop.py194 # Check if the op's output should be upcasted/downcasted.
LOWtest/inductor/test_aot_inductor_package.py405 # Check if the .so file was build successfully
LOWtest/inductor/test_aot_inductor_package.py448 # Check if the .so file was build successfully
LOWtest/inductor/test_aot_inductor_package.py487 # Check if the .a file was build successfully
431 more matches not shown…
AI Slop Vocabulary293 hits · 560 pts
SeverityFileLineSnippet
MEDIUMsetup.py42# if used in conjunction with DEBUG or REL_WITH_DEB_INFO, will also
LOWtools/optional_submodules.py71 # Otherwise just call top-level function of choice
MEDIUMtools/experimental/torchfuzz/visualize_graph.py79 # Create comprehensive label
LOWtools/experimental/torchfuzz/operators/layout.py69 # For single-dim input, just use the exact element count
LOWtools/experimental/torchfuzz/operators/layout.py150 # For single-dim input, just use the exact element count
LOWtools/linter/adapters/gb_registry_linter.py210 # Empty registry, just add all entries
MEDIUMtools/autograd/gen_python_functions.py596 # find and leverage the original ATen signature (to which it delegates
MEDIUMtools/autograd/gen_autograd_functions.py196# `grads` in order to utilize and apply the existing derivative definitions
MEDIUMtools/autograd/gen_autograd_functions.py684 # note(crcrpar): [nuanced return type of out-of-place foreach functions]
MEDIUMtools/autograd/gen_variable_type.py426# pertaining to its output:
MEDIUMtools/autograd/gen_variable_type.py1544 # See Note [nuanced return type of out-of-place foreach functions]
LOWtools/autograd/gen_variable_type.py2079 # View ops create fw_grad that already is a view of the base's fw_grad so just use that
LOWtools/autograd/gen_trace_type.py180 # For inplace: just add the input to the end to confirm with the JIT schema
MEDIUMtools/alerts/create_alerts.py182# Creates a Dict of Job Name -> [JobData]. Essentially a Column in HUD
LOWtools/code_coverage/package/oss/init.py128 # if this argument is specified, just return itself
MEDIUMtools/stats/upload_test_stats.py67 # To do this, we leverage an implementation detail of how we write out
LOW.ci/docker/manywheel/s390_scripts/build.sh51# So let's just use the same one pip and everyone uses
LOW.ci/docker/common/install_nccl.sh6# so we can just use the default NCCL version.
LOW.ci/manywheel/build_common.sh177 # Note - just use whichever python we happen to be on
LOW.ci/pytorch/common_utils.sh145 # There won't be nvidia-smi in nogpu tests, so just set TORCH_CUDA_ARCH_LIST to the default
MEDIUM.ci/pytorch/run_tests.sh7# Essentially runs pytorch/test/run_test.py, but keeps track of which tests to
MEDIUMtest/test_mps.py6238 # Essentially remained over integral types should rely on integers ops
LOWtest/test_mps.py14282 # fail, so just set CWD to this script's directory
LOWtest/test_mps.py14327 # fail, so just set CWD to this script's directory
LOWtest/test_python_dispatch.py2229 e.contiguous() # this will just return the original TensorImpl since is_contiguous = True
LOWtest/test_import_stats.py7# time is greater than a certain threshold, but for now we just use them
LOWtest/test_tensor_creation_ops.py2615 # instead of repeating this calculation, we just use empty_strided which does the same
LOWtest/test_pytree.py897 # fail, so just set CWD to this script's directory
MEDIUMtest/test_custom_ops.py1135 # Not comprehensive (it doesn't need to be), just a check that our mechanism works
LOWtest/test_stateless.py905 # fail, so just set CWD to this script's directory
LOWtest/test_stateless.py927 # fail, so just set CWD to this script's directory
MEDIUMtest/test_jit_llga_fuser.py61 # so we disable AMP for JIT & leverage eager-mode AMP.
LOWtest/test_cuda.py6664 # fail, so just set CWD to this script's directory
LOWtest/test_cuda.py3036 # fail, so just set CWD to this script's directory
MEDIUMtest/run_test.py434 # in that they utilize the usual python test infrastructure.
LOWtest/run_test.py514 # to just return successfully here
MEDIUMtest/test_dlpack.py814 # Run the comprehensive C++ test
MEDIUMtest/test_meta.py788# useful for more comprehensive testing e.g., as seen in
MEDIUMtest/test_binary_ufuncs.py1857 # in a binary operation in conjunction with a Tensor on all
MEDIUMtest/test_autograd.py2975 # Definitely pick one tensor to add
LOWtest/test_autograd.py4740 # This op will just return grad_output two times in backward
LOWtest/test_autograd.py11847 # fail, so just set CWD to this script's directory
MEDIUMtest/test_nestedtensor.py8995# OpInfo-based NJT tests. These tests utilize an NJT-specific op_db generated from the standard
LOWtest/test_testing.py2452 # fail, so just set CWD to this script's directory
MEDIUMtest/inductor/test_deterministic.py138 # Halving sweep, matching what the benchmark harness does.
LOWtest/inductor/test_compiled_autograd.py175 # fail, so just set CWD to this script's directory
LOWtest/inductor/test_triton_kernels.py4993 # we can just pass the function 'f' for dynamo
LOWtest/inductor/test_triton_kernels.py5277 # we can just pass the function 'f' for dynamo
MEDIUMtest/inductor/test_max_autotune_blackwell.py292 # Fundamentally we should fix the triton_blackwell_ws_persistent_device_tma template
MEDIUMtest/inductor/test_cpu_repro.py450 # The cpp_wrapper C-shim can't utilize the Python error API, so error
MEDIUMtest/inductor/test_control_flow.py56 # Simple robust loss: abs values + small constant to avoid inf/nan
MEDIUMtest/inductor/test_torchinductor.py15841 # odd number on purpose to trigger comprehensive padding
MEDIUMtest/inductor/test_torchinductor_opinfo_properties.py547 """Get sample inputs from OpInfo using reference_inputs for comprehensive coverage."""
MEDIUMtest/inductor/test_torchinductor_opinfo_properties.py548 # Use reference_inputs for more comprehensive test coverage
LOWtest/onnx/test_pytorch_onnx_onnxruntime.py13816 # Otherwise the entire model will just return a constant and not have
LOWtest/distributed/test_c10d_common.py2205 # fail, so just set CWD to this script's directory
MEDIUMtest/distributed/launcher/api_test.py89 """A wrapper function for class `elastic_launch.` in order to make multiprocess returns correct exit code."""
LOWtest/distributed/elastic/multiprocessing/api_test.py540 # Using mock since we cannot just set exitcode on process
MEDIUM…istributed/_composable/fsdp/test_fully_shard_memory.py86 # With the aforementioned PR, and with shape (1, 768),
MEDIUMtest/distributed/tensor/test_dtensor_ops.py100 # factory/creation ops: test harness can't convert non-tensor args to DTensor
233 more matches not shown…
Verbosity Indicators251 hits · 396 pts
SeverityFileLineSnippet
LOWtest/test_autograd.py8180 # Step 1: Checkpointed forward with batch_size=4 → static graph G0
LOWtest/test_autograd.py8184 # Step 2: Non-checkpointed call with batch_size=7 triggers automatic
LOWtest/test_autograd.py8192 # Step 3: Backward. Checkpoint recomputes fn(x) but now hits G1
LOWtest/test_testing.py856 # We need to check if this test is still needed or if this behavior is now enabled by default.
LOWtest/cpp_extensions/cudnn_extension.cpp43 // Step 1: Check inputs. This will throw an error if inputs are invalid, so no
LOWtest/cpp_extensions/cudnn_extension.cpp46 // Step 2: Create descriptors
LOWtest/cpp_extensions/cudnn_extension.cpp59 // Step 3: Apply CuDNN function
LOWtest/cpp_extensions/cudnn_extension.cpp71 // Step 4: Destroy descriptors
LOWtest/cpp_extensions/cudnn_extension.cpp73 // Step 5: Return something (optional)
LOWtest/distributed/tensor/test_redistribute.py3072 # Step 1: reduce_scatter on mesh dim 0 (size 2)
LOWtest/distributed/tensor/test_redistribute.py3076 # Step 2: reduce_scatter on mesh dim 1 (size 3)
LOWtest/distributed/tensor/parallel/test_tp_examples.py222 # Step 3: Run test by comparing outputs from single-gpu and multi-gpu models.
LOWtest/distributed/tensor/parallel/test_tp_examples.py305 ) # Step 1: Initialize single-gpu models.
LOWtest/distributed/tensor/parallel/test_tp_examples.py308 ) # Step 2: Setup tp model, place onto device mesh.
LOWtest/distributed/tensor/parallel/test_tp_examples.py311 ) # Step 3: Setup optimizers for both models
LOWtest/distributed/tensor/parallel/test_tp_examples.py433 ) # Step 1: Initialize single-gpu models.
LOWtest/distributed/tensor/parallel/test_tp_examples.py436 ) # Step 2: Setup tp model, place onto device mesh.
LOWtest/distributed/tensor/parallel/test_tp_examples.py439 ) # Step 3: Setup optimizers for both models
LOWtest/distributed/tensor/parallel/test_tp_examples.py442 ) # Step 4: set `requires_grad` patterns
LOWtest/dynamo/test_repros.py7364 # Step 1: Compile a static shapes graph
LOWtest/dynamo/test_repros.py7373 # Step 2: Compile a dynamic shapes graph
LOWtest/dynamo/test_repros.py7383 # Step 3: Run with Step 1's inputs
LOWtest/dynamo/test_repros.py7406 # Step 1: Compile a static shapes graph
LOWtest/dynamo/test_repros.py7415 # Step 2: Compile a dynamic shapes graph
LOWtest/dynamo/test_repros.py7425 # Step 3: Run with Step 1's inputs
LOWtest/profiler/test_profiler.py4382 # Step 3: under the patch, RECORD -> DEVICE_STOPPED fires stop_trace +
LOWtorch/_custom_ops.py61 >>> # Step 1: define the custom op.
LOWtorch/_custom_ops.py72 >>> # Step 2: Register an implementation for various PyTorch subsystems
LOWtorch/_custom_ops.py144 >>> # Step 1: define the custom op.
LOWtorch/_custom_ops.py155 >>> # Step 2: Register an implementation for various PyTorch subsystems
LOWtorch/_ops.py412 # Step 1: dispatch on any user TorchDispatchModes
LOWtorch/_ops.py440 # Step 2: dispatch on any subclasses
LOWtorch/_ops.py672 # When we are unsetting a mode, we need to check if there is
LOWtorch/_ops.py722 # When we are setting a mode, we need to check if there is
LOWtorch/csrc/dynamo/init.cpp357 // even if __next__ is not defined, so we need to check if the method is truly
LOWtorch/csrc/utils/python_arg_parser.cpp574 // Step 1: Try to dispatch based on the mode stack, *ignoring* infra
LOWtorch/csrc/utils/python_arg_parser.cpp624 // Step 1: Try to dispatch on any user TorchDispatchModes (including infra
LOWtorch/csrc/utils/python_arg_parser.cpp635 // Step 2: Try to dispatch based on any user subclasses,
LOWtorch/csrc/jit/tensorexpr/loopnest.cpp1975 // We need to check if fusing the loops results in a loop-carried dependence.
LOWtorch/csrc/lazy/ts_backend/ts_eager_fallback.cpp222 // Step 1: Convert all non-eager tensor inputs into eager tensors and put them
LOWtorch/csrc/lazy/ts_backend/ts_eager_fallback.cpp254 // Step 2: Call the underlying eager implementation of the operator
LOWtorch/csrc/lazy/ts_backend/ts_eager_fallback.cpp257 // Step 3: We need to take special care to handle mutable aliases properly:
LOWtorch/csrc/lazy/ts_backend/ts_eager_fallback.cpp268 // Step 4: Convert any eager output tensors back to the original input device.
LOWtorch/_functorch/eager_transforms.py661 # Step 1: Construct grad_outputs by splitting the standard basis
LOWtorch/_functorch/eager_transforms.py778 # Step 2: The returned jacobian is one big tensor per input. In this step,
LOWtorch/_functorch/eager_transforms.py792 # Step 3: Right now, `jacobian` is a List[List[Tensor]].
LOWtorch/_functorch/_aot_autograd/functional_utils.py387 # For outputs aliasing inputs, we need to check if the requires-gradness has changed.
LOWtorch/_functorch/_aot_autograd/functional_utils.py389 # For outputs aliasing inputs, we need to check if the dtype has changed.
LOW…rch/_functorch/_aot_autograd/graph_capture_wrappers.py1338 # Step 1: wrap tensor inputs into subclasses if necessary
LOW…rch/_functorch/_aot_autograd/graph_capture_wrappers.py1343 # Step 2: call the inner function, with our (maybe subclass) inputs
LOW…rch/_functorch/_aot_autograd/graph_capture_wrappers.py1376 # Step 3: Unwrap any subclass outputs back into dense tensors
LOW…ctorch/_activation_offloading/activation_offloading.py767 # Step 1: Identify reload patterns
LOW…ctorch/_activation_offloading/activation_offloading.py772 # Step 2: Reorder nodes by directly manipulating the graph
LOW…ctorch/_activation_offloading/activation_offloading.py791 # Step 1: Decide which nodes to offload and mark them
LOW…ctorch/_activation_offloading/activation_offloading.py800 # Step 2: Add offload and reload nodes to the graphs
LOWtorch/_export/utils.py1368 # Step 1: Materialize all ops from C++ dispatcher
LOWtorch/_export/utils.py1371 # Step 2: Query all ops from python dispatcher
LOWtorch/_export/serde/schema_check.py869 # Step 1: Detect major schema updates.
LOWtorch/_export/serde/schema_check.py896 # Step 2: Detect minor schema updates.
LOWtorch/onnx/_internal/exporter/_core.py1657 # Step 4: (verify=True) Check the ONNX model with ONNX checker
191 more matches not shown…
Dead Code85 hits · 166 pts
SeverityFileLineSnippet
MEDIUMtest/test_datapipe.py3741
MEDIUMtest/test_functionalization.py769
MEDIUMtest/test_functionalization.py770
MEDIUMtest/test_functionalization.py771
MEDIUMtest/test_functionalization.py772
MEDIUMtest/test_jit.py14077
MEDIUMtest/test_jit.py9927
MEDIUMtest/test_jit_fuser.py734
MEDIUMtest/test_jit_fuser.py735
MEDIUMtest/test_jit_fuser.py737
MEDIUMtest/test_jit_fuser.py739
MEDIUMtest/test_jit_fuser.py742
MEDIUMtest/test_jit_fuser.py746
MEDIUMtest/test_autograd.py15593
MEDIUMtest/test_fx.py4949
MEDIUMtest/test_fx.py3810
MEDIUMtest/inductor/test_ordered_set.py25
MEDIUMtest/inductor/test_ordered_set.py976
MEDIUMtest/onnx/test_utility_funs.py109
MEDIUMtest/dynamo/test_misc.py9347
MEDIUMtest/dynamo/test_misc.py12038
MEDIUMtest/dynamo/test_generator.py1237
MEDIUMtest/dynamo/test_exceptions.py535
MEDIUMtest/dynamo/test_guard_manager.py886
MEDIUMtest/quantization/fx/test_quantize_fx.py2564
MEDIUMtest/quantization/fx/test_quantize_fx.py2566
MEDIUMtest/quantization/fx/test_quantize_fx.py2569
MEDIUMtest/cpython/v3_13/test_itertools.py2723
MEDIUMtest/cpython/v3_13/test_generators.py566
MEDIUMtest/cpython/v3_13/test_generators.py577
MEDIUMtest/cpython/v3_13/test_exceptions.py1836
MEDIUMtest/cpython/v3_13/test_set.py77
MEDIUMtest/cpython/v3_13/test_set.py1109
MEDIUMtest/cpython/v3_13/test_deque.py40
MEDIUMtest/cpython/v3_13/test_builtin.py1288
MEDIUMtest/jit/test_backends.py595
MEDIUMtest/profiler/test_memory_profiler.py738
MEDIUMtest/profiler/test_memory_profiler.py739
MEDIUMtest/profiler/test_memory_profiler.py740
MEDIUMtest/profiler/test_memory_profiler.py742
MEDIUMtest/profiler/test_memory_profiler.py748
MEDIUMtest/profiler/test_memory_profiler.py763
MEDIUMtest/profiler/test_memory_profiler.py767
MEDIUMtest/profiler/test_memory_profiler.py798
MEDIUMtest/profiler/test_memory_profiler.py802
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py501
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py987
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py988
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py989
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py992
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1003
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1004
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1005
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1007
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1013
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1014
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1151
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1152
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1207
MEDIUMtest/torch_np/numpy_tests/core/test_indexing.py1209
25 more matches not shown…
Overly Generic Function Names258 hits · 151 pts
SeverityFileLineSnippet
LOWtools/test/heuristics/test_heuristics.py256 def helper(test_file: str, changed_file: str) -> bool:
LOWtest/test_mps.py3409 def helper(binary_op):
LOWtest/test_mps.py4370 def helper(dtype):
LOWtest/test_mps.py4381 def helper(dtype):
LOWtest/test_mps.py257 def helper(model_cpu, model_mps, dtype, iterations, batch_size, atol=3e-4, rtol=1e-5):
LOWtest/test_mps.py321 def helper(model, optimizer, scaler, device, input, target, apply_grad_transform=False):
LOWtest/test_mps.py997 def helper(val, shape, dtype):
LOWtest/test_mps.py1213 def helper(dtype):
LOWtest/test_mps.py1362 def helper(input_shape, batch1_shape, batch2_shape):
LOWtest/test_mps.py1409 def helper(bias_shape):
LOWtest/test_mps.py1696 def helper(shape, ks, padding=0, dilation=1, ceil_mode=False, return_indices=False, test_ties=False):
LOWtest/test_mps.py1770 def helper(size, memory_format):
LOWtest/test_mps.py1796 def helper(shape):
LOWtest/test_mps.py1905 def helper(shape, channels_last=False):
LOWtest/test_mps.py1922 def helper(shape, eps=1, momentum=0.1, wts=False, training=False, channels_last=False,
LOWtest/test_mps.py2398 def helper(input_shape, normalized_shape, eps=1e-05, elementwise_affine=True, dtype=torch.float32, non_contiguou
LOWtest/test_mps.py2461 def helper(shape, eps=1, momentum=0.1, wts=False, channels_last=False, track_running_stats=True, test_module=Fal
LOWtest/test_mps.py2638 def helper(dim, layer='linear', dtype=torch.float32):
LOWtest/test_mps.py2708 def helper(input_shape, wt_shape,
LOWtest/test_mps.py2781 def helper(input_shape, wt_shape,
LOWtest/test_mps.py2849 def helper(shape):
LOWtest/test_mps.py2874 def helper(shape):
LOWtest/test_mps.py2898 def helper(threshold, value, num_elems, inplace=False, requires_grad=True):
LOWtest/test_mps.py2925 def helper(shape):
LOWtest/test_mps.py2958 def helper(shape, value, xtype=torch.float32, ytype=None, ztype=None):
LOWtest/test_mps.py2995 def helper(shape, value):
LOWtest/test_mps.py3021 def helper(shape, value):
LOWtest/test_mps.py3211 def helper(shape):
LOWtest/test_mps.py3331 def helper(x_tensor, y_func, z_func, r_func=None):
LOWtest/test_mps.py3424 def helper(operator):
LOWtest/test_mps.py3516 def helper(shape, repeats):
LOWtest/test_mps.py3615 def helper(shape, dtype=torch.float32, num_repeats=torch.Tensor(), dim=None):
LOWtest/test_mps.py3640 def helper(dtype):
LOWtest/test_mps.py3740 def helper(data, to_dtype):
LOWtest/test_mps.py3758 def helper(data, to_dtype):
LOWtest/test_mps.py3871 def helper(dtype):
LOWtest/test_mps.py3928 def helper(x, return_inverse, return_counts):
LOWtest/test_mps.py3948 def helper(x, dim, return_inverse, return_counts):
LOWtest/test_mps.py4152 def helper(src_shape, dst_shape, src_dtype, dst_dtype):
LOWtest/test_mps.py4290 def helper(dtype, noncontiguous, dim):
LOWtest/test_mps.py4335 def helper(dtype):
LOWtest/test_mps.py4353 def helper(dtype):
LOWtest/test_mps.py4398 def helper(shape, dtype):
LOWtest/test_mps.py4598 def helper(n, c):
LOWtest/test_mps.py4615 def helper(shape, reduction):
LOWtest/test_mps.py4644 def helper(shape, reduction):
LOWtest/test_mps.py4714 def helper(shape, reduction):
LOWtest/test_mps.py4970 def helper(shape):
LOWtest/test_mps.py4983 def helper(shape):
LOWtest/test_mps.py4994 def helper(shape):
LOWtest/test_mps.py5007 def helper(shape):
LOWtest/test_mps.py5018 def helper(shape):
LOWtest/test_mps.py5031 def helper(shape):
LOWtest/test_mps.py5042 def helper(shape):
LOWtest/test_mps.py5055 def helper(shape):
LOWtest/test_mps.py5066 def helper(shape):
LOWtest/test_mps.py5079 def helper(shape):
LOWtest/test_mps.py5108 def helper(n, c, h, w, reduction_type, dtype=torch.float32):
LOWtest/test_mps.py5236 def helper(n, c, h, w, dtype=torch.float32):
LOWtest/test_mps.py5361 def helper(shape):
198 more matches not shown…
Slop Phrases47 hits · 82 pts
SeverityFileLineSnippet
MEDIUMtools/autograd/derivatives.yaml37# If None of the output is differentiable, you can also add the function
LOWtest/test_jit.py455 # you are deleting `constants.pkl`, make sure to update `torch.serialization.load`
LOWtest/test_jit.py2536 # NB: We make sure to pass in a batch with a different max sequence
MEDIUMtest/test_fx.py4032 # Used to test that you can use your own placeholder class
LOWtest/inductor/test_triton_kernels.py5517 # so we wanna make sure to correctly handle edge cases with tricky line breaks
MEDIUMtest/inductor/test_profiler.py83 # Debugging tips: you can add prof.export_chrome_trace("test.json") inline in
LOWtest/dynamo/test_repros.py1537 # NB: When you remove the expectedFailure, don't forget to
LOWtest/dynamo/test_repros.py1537 # NB: When you remove the expectedFailure, don't forget to
LOWtest/quantization/fx/test_model_report_fx.py1958 # if they passed in fusion parameter, make sure to test that
MEDIUMtest/ao/sparsity/test_structured_sparsifier.py1004 # Manually set the filter weights for demonstration purposes
LOW.claude/skills/triaging-issues/labels.json416 "description": "Optimization passes written in FX (don't forget to select a more specific label)"
MEDIUMtorch/torch_version.py38 # Ideally this should work for most cases by attempting to group
LOWtorch/headeronly/core/ScalarType.h340 // Don't forget to extend this when adding new QInt types
MEDIUMtorch/csrc/jit/backends/backend_debug_info.h51 * don't serialize this info as part of LoweredModule as mentioned earlier.
MEDIUMtorch/_functorch/_aot_autograd/graph_compile.py987 # Step 1) - Get the `joint_hop_gm`. As mentioned earlier, the
LOWtorch/_subclasses/meta_utils.py922 # Need to make sure to resize the meta storage too.
LOWtorch/nn/utils/parametrizations.py135 # We always make sure to always copy Q in every path
MEDIUMtorch/nn/modules/loss.py2194 >>> S_min = 10 # Minimum target length, for demonstration purposes
LOWtorch/nn/modules/activation.py1362 # When lifting this restriction, don't forget to either
LOWtorch/nn/modules/activation.py1362 # When lifting this restriction, don't forget to either
LOW…nnx/_internal/torchscript_exporter/symbolic_opset11.py979 # make sure to cast other to self's type
LOW…nnx/_internal/torchscript_exporter/symbolic_opset11.py1013 # make sure to cast other to self's type
LOW…onnx/_internal/torchscript_exporter/symbolic_opset9.py2159 # make sure to cast other to self's type
LOW…onnx/_internal/torchscript_exporter/symbolic_opset9.py2188 # make sure to cast other to self's type
LOW…nnx/_internal/torchscript_exporter/symbolic_opset12.py77 # make sure to cast other to self's type
LOWtorch/distributed/elastic/rendezvous/etcd_rendezvous.py886 # make sure you don't call any long-blocking methods that do not
LOWtorch/distributed/tensor/_dtensor_spec.py448 # use, where we make sure to update the hash when the `tensor_meta`
LOWtorch/fx/graph.py2005 # When generating Python code, we need to make sure to name things
MEDIUMtorch/fx/experimental/symbolic_shapes.py1526# (1) If you can use a higher level combinator prefer using those instead, they are definitely safe (modulo short-circui
LOWtorch/fx/experimental/proxy_tensor.py701 # from_real_tensor to create fake values (don't forget to
LOWtorch/fx/experimental/proxy_tensor.py701 # from_real_tensor to create fake values (don't forget to
LOWtorch/fx/passes/reinplace.py765 # When that happens, we need to make sure to keep our
MEDIUMtorch/optim/lr_scheduler.py368 >>> # Alternatively, you can use a single lambda function for all groups.
LOWtorch/_inductor/cpp_builder.py2466 # When we build remotely, we need to make sure to carefully copy any files
LOWtorch/_inductor/compile_fx_ext.py639 # Since our metrics were gathered in a subprocess make sure to add them
LOWtorch/_inductor/codegen/common.py1243# NB: if you add a new special function, don't forget to update
LOWtorch/_inductor/codegen/common.py1243# NB: if you add a new special function, don't forget to update
LOWtorch/utils/_python_dispatch.py956 # Next: we need to make sure to return inputs directly, if the output is a mutable alias (e.g. add_()).
LOWtorch/utils/hipify/hipify_python.py734 # make sure to check the end-of-word marker present
LOWtorch/utils/data/sampler.py73 # implementing a `__len__` method. In such cases, we must make sure to not
MEDIUMtorch/_dynamo/backends/onnxrt.py34# " (4) If it returns `True`, then you can use `onnxrt` backend.\n"
MEDIUMbenchmarks/dynamo/common.py1027 # Hypothetically you can use this from other places, but it's currently
LOW.github/scripts/test_trymerge.py8# GraphQL queries in trymerge.py, please make sure to delete `gql_mocks.json`
LOWaten/src/ATen/OpaqueTensorImpl.h49 // unnecessary; don't forget to change that if needed!
LOWaten/src/ATen/SparseTensorImpl.cpp50 // unnecessary; don't forget to change that if needed!
MEDIUMtorchgen/api/types/types_base.py179# which you can use to figure out if a given Binding is appropriate
LOWc10/core/StorageImpl.h106 // unnecessary; don't forget to change that if needed!
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippet
HIGHtest/test_view_ops.py1105 # Test various configurations - one per line as requested
HIGHtest/quantization/fx/test_quantize_fx.py8938 # reshape will be quantized to fp16 as requested by this qconfig
HIGHc10/util/Backtrace.cpp226 // Skip as many frames as requested.
Example Usage Blocks15 hits · 22 pts
SeverityFileLineSnippet
LOWtools/vendoring/quack/vendor.sh4# Usage:
LOWtorch/library.h961/// Example usage:
LOWtorch/library.h1038/// Example usage:
LOWtorch/csrc/api/include/torch/python.h198/// Example usage:
LOWtorch/csrc/api/include/torch/python.h234/// Example usage:
LOWtorch/csrc/api/include/torch/nn/modules/common.h6/// Example usage:
LOWtorch/nn/attention/flex_attention.py48# Usage:
LOWtorch/_inductor/config.py177# Example usage:
LOWtorch/_inductor/fuzzer.py540 # Example usage:
LOWtorch/testing/_internal/common_device_type.py975 # Usage:
LOWtorch/testing/_internal/common_device_type.py987 # Usage:
LOWtorch/testing/_internal/common_device_type.py1219# Example usage:
LOWtorch/_dynamo/variables/higher_order_ops.py141# Example usage:
LOWaten/src/ATen/TensorMeta.h17// Example usage:
LOWaten/src/ATen/TensorMeta.h49// Example usage:
Fake / Example Data3 hits · 4 pts
SeverityFileLineSnippet
LOWtest/cpp/lazy/test_misc.cpp45 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut at suscipit purus."),
LOWtest/cpp/lazy/test_misc.cpp45 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut at suscipit purus."),
LOWtest/cpp/lazy/test_misc.cpp47 "Lorem Jpsum dolor sit amet, consectetur adipiscing elit. Ut at suscipit purus."));