Tensors and Dynamic neural networks in Python with strong GPU acceleration
46502 matches across 20 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 499 | def extract_variant_from_version(version: str) -> str: |
| LOW | setup.py | 619 | def get_latest_nightly_version(variant: str = "cpu") -> str: |
| LOW | setup.py | 652 | def download_and_extract_nightly_wheel(version: str) -> None: |
| LOW | setup.py | 1043 | def configure_extension_build() -> tuple[ |
| LOW | .spin/cmds.py | 129 | def regenerate_clangtidy_files(): |
| LOW | .spin/cmds.py | 458 | def regenerate_github_workflows(): |
| LOW | tools/gen_vulkan_spv.py | 157 | def extract_leading_whitespace(line: str) -> str: |
| LOW | tools/render_junit.py | 52 | def convert_junit_to_testcases(xml: JUnitXml | TestSuite) -> list[TestCase]: # type: ignore[no-any-unimported] |
| LOW | tools/create_worktree.py | 108 | def clone_submodule_recursive( |
| LOW | tools/packaging/build_wheel.py | 49 | def get_supported_python_versions() -> list[str]: |
| LOW | tools/packaging/build_wheel.py | 70 | def _find_manylinux_interpreters() -> list[str]: |
| LOW | tools/experimental/torchfuzz/test_determinism.py | 71 | def test_deterministic_output(): |
| LOW | tools/experimental/torchfuzz/ops_fuzzer.py | 32 | def _get_template_filtered_operators( |
| LOW | tools/experimental/torchfuzz/visualize_graph.py | 136 | def visualize_operation_graph( |
| LOW | tools/experimental/torchfuzz/visualize_graph.py | 159 | def operation_graph_to_networkx(graph: OperationGraph): |
| LOW | tools/experimental/torchfuzz/multi_process_fuzzer.py | 473 | def _print_operation_distribution(results: list[FuzzerResult]) -> None: |
| LOW | tools/experimental/torchfuzz/tensor_fuzzer.py | 190 | def _compute_contiguous_strides(size: tuple[int, ...]) -> list[int]: |
| LOW | tools/experimental/torchfuzz/tensor_fuzzer.py | 213 | def _compute_non_contiguous_dense_strides(size: tuple[int, ...]) -> list[int]: |
| LOW | tools/experimental/torchfuzz/tensor_fuzzer.py | 304 | def _compute_storage_size_needed( |
| LOW | tools/experimental/torchfuzz/tensor_fuzzer.py | 431 | def fuzz_non_contiguous_dense_tensor( |
| LOW | tools/experimental/torchfuzz/README.md | 572 | def _register_default_operators(self): |
| LOW | tools/experimental/torchfuzz/fuzzer.py | 27 | def _parse_supported_ops_with_weights(spec: str) -> tuple[list[str], dict[str, float]]: |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 31 | def test_template_inherits_default_ops(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 37 | def test_template_uses_backward_check(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 47 | def test_codegen_creates_streams(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 51 | def test_codegen_has_stream_context(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 55 | def test_codegen_has_final_sync(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 63 | def test_codegen_has_backward(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 67 | def test_codegen_has_requires_grad(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 72 | def test_codegen_cross_stream_sync(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 84 | def test_codegen_event_based_sync(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 96 | def test_codegen_deterministic(self): |
| LOW | tools/experimental/torchfuzz/test_streams_template.py | 102 | def test_codegen_is_valid_python(self): |
| LOW | tools/experimental/torchfuzz/codegen.py | 341 | def convert_graph_to_python_code( |
| LOW | tools/experimental/torchfuzz/codegen.py | 514 | def generate_simple_operation_code( |
| LOW | tools/experimental/torchfuzz/type_promotion.py | 106 | def get_promotion_table_for_strings() -> dict: |
| LOW | tools/experimental/torchfuzz/type_promotion.py | 162 | def get_scalar_promotion_pairs( |
| LOW | tools/experimental/torchfuzz/operators/registry.py | 72 | def _register_default_operators(self): |
| LOW | tools/experimental/torchfuzz/operators/registry.py | 209 | def set_operator_weight_by_torch_op(torch_op_name: str, weight: float) -> None: |
| LOW | tools/experimental/torchfuzz/operators/registry.py | 220 | def set_operator_weights_by_torch_op(weights: dict[str, float]) -> None: |
| LOW | tools/experimental/torchfuzz/cuda/_codegen.py | 567 | def _generate_random_placement(self, tensor_size): |
| LOW | tools/test/test_test_selections.py | 110 | def test_some_times_with_not_sort_by_time(self) -> None: |
| LOW | tools/test/test_test_selections.py | 145 | def test_serial_parallel_interleaving(self) -> None: |
| LOW | tools/test/test_scoped_library_linter.py | 28 | def test_reports_torch_dot_library_dot_library(self) -> None: |
| LOW | tools/test/test_scoped_library_linter.py | 53 | def test_reports_imported_library_name(self) -> None: |
| LOW | tools/test/test_scoped_library_linter.py | 76 | def test_allows_noqa_alone_on_previous_line(self) -> None: |
| LOW | tools/test/test_scoped_library_linter.py | 88 | def test_allows_multiline_call_if_any_line_has_noqa(self) -> None: |
| LOW | tools/test/test_scoped_library_linter.py | 102 | def test_reports_multiline_call_without_noqa(self) -> None: |
| LOW | tools/test/test_scoped_library_linter.py | 118 | def test_empty_on_syntax_error(self) -> None: |
| LOW | tools/test/test_scoped_library_linter.py | 124 | def test_no_match_for_non_library_call(self) -> None: |
| LOW | tools/test/test_utils.py | 7 | def test_create_from_namespaced_tuple(self) -> None: |
| LOW | tools/test/test_utils.py | 18 | def test_namespace_levels_more_than_max(self) -> None: |
| LOW | tools/test/test_test_run.py | 24 | def test_union_with_inclusions(self) -> None: |
| LOW | tools/test/test_test_run.py | 33 | def test_union_with_non_overlapping_exclusions(self) -> None: |
| LOW | tools/test/test_test_run.py | 42 | def test_union_with_overlapping_exclusions(self) -> None: |
| LOW | tools/test/test_test_run.py | 51 | def test_union_with_mixed_inclusion_exclusions(self) -> None: |
| LOW | tools/test/test_test_run.py | 60 | def test_union_with_mixed_files_fails(self) -> None: |
| LOW | tools/test/test_test_run.py | 67 | def test_union_with_empty_file_yields_orig_file(self) -> None: |
| LOW | tools/test/test_test_run.py | 74 | def test_subtracting_full_run_fails(self) -> None: |
| LOW | tools/test/test_test_run.py | 80 | def test_subtracting_empty_file_yields_orig_file(self) -> None: |
| 27403 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | CMakeLists.txt | 721 | message(WARNING "KleidiAI cannot be used on Mobile builds. Set it to OFF") |
| LOW | CMakeLists.txt | 921 | set(USE_FBGEMM OFF) |
| LOW | setup.py | 1 | # Welcome to the PyTorch setup.py. |
| LOW | setup.py | 21 | # which we have faithfully adhered to in our build system is that CFLAGS |
| LOW | setup.py | 41 | # DEBUG_CUDA=1 |
| LOW | setup.py | 61 | # USE_MSLK=0 |
| LOW | setup.py | 81 | # MKL-DNN threading mode: TBB or OMP (default) |
| LOW | setup.py | 101 | # disables distributed MPI backend build |
| LOW | setup.py | 121 | # This option can be used if AVX512 doesn't perform well on a machine. |
| LOW | setup.py | 141 | # specify which AMD GPU targets to build for. |
| LOW | setup.py | 161 | # layer normalization. Default: enabled. |
| LOW | setup.py | 181 | # Specify a NVCC to use. This is used in our CI to point to a cached nvcc |
| LOW | setup.py | 201 | # LIBRARY_PATH |
| LOW | setup.py | 221 | # USE_SYSTEM_PSIMD=ON |
| LOW | tools/git_add_generated_dirs.sh | 1 | #!/bin/sh |
| LOW | tools/git_reset_generated_dirs.sh | 1 | #!/bin/sh |
| LOW | tools/iwyu/run.sh | 1 | # Run include-what-you-use on a file or folder |
| LOW | tools/test/test_stable_shim_usage_linter.py | 141 | shim_functions = get_shim_functions([sample_shim]) |
| LOW | tools/test/stable_shim_usage_linter_data/sample_shim.h | 1 | #ifndef SAMPLE_SHIM_H |
| LOW | tools/test/stable_shim_usage_linter_data/sample_shim.h | 21 | AOTI_TORCH_EXPORT void old_function_2(void* ptr); |
| LOW | tools/test/stable_shim_usage_linter_data/sample_shim.h | 41 | AOTI_TORCH_EXPORT int legacy_fallback(int arg); |
| LOW | tools/test/stable_shim_usage_linter_data/sample_shim.h | 101 | |
| LOW | tools/linter/adapters/flake8_linter.py | 1 | # /// script |
| LOW | tools/linter/adapters/flake8_linter.py | 201 | # "B901": `return x` inside a generator |
| LOW | tools/linter/adapters/pyproject_linter.py | 161 | return [ |
| LOW | tools/linter/adapters/pyproject_linter.py | 181 | # } |
| LOW | tools/linter/adapters/ruff_linter.py | 161 | |
| LOW | tools/linter/adapters/pyrefly_linter.py | 1 | # /// script |
| LOW | tools/autograd/load_derivatives.py | 341 | "forward definition of gradient as element_wise but it does not " |
| LOW | tools/autograd/load_derivatives.py | 561 | r.name for r in f.func.returns |
| LOW | tools/autograd/gen_python_functions.py | 1 | # Generates Python bindings for ATen functions |
| LOW | tools/autograd/gen_python_functions.py | 21 | # |
| LOW | tools/autograd/gen_python_functions.py | 1181 | return sort_overloads(grouped, symint=symint) |
| LOW | tools/autograd/gen_python_functions.py | 1201 | # If they have different number of parameters then they are not ambiguous - but |
| LOW | tools/autograd/gen_autograd_functions.py | 81 | void will_release_variables() override { |
| LOW | tools/autograd/gen_variable_type.py | 1 | # Generates VariableType.h/cpp |
| LOW | tools/autograd/gen_variable_type.py | 421 | # We check the following properties: |
| LOW | tools/autograd/gen_variable_type.py | 1241 | # NOTE(crcrpar): in-place foreach functions' arguments include tensorlist |
| LOW | tools/autograd/gen_trace_type.py | 241 | # This replacement implemented in-place with minimum modifications of |
| LOW | tools/autograd/derivatives.yaml | 1 | # Defines derivative formulas and Python signatures of methods on Variable |
| LOW | tools/autograd/derivatives.yaml | 21 | # of how to register separate derivates for different dispatch keys). |
| LOW | tools/autograd/derivatives.yaml | 41 | # - If that argument is differentiable, in the sense that a gradient with respect |
| LOW | tools/autograd/derivatives.yaml | 61 | # are in scope: |
| LOW | tools/autograd/derivatives.yaml | 81 | # |
| LOW | tools/autograd/derivatives.yaml | 101 | # (NB: if your function computes gradient for a list of tensors, |
| LOW | tools/autograd/derivatives.yaml | 121 | # Another interpretation of this expression would read as `var_0` is needed |
| LOW | tools/autograd/derivatives.yaml | 141 | # |
| LOW | tools/autograd/derivatives.yaml | 161 | # (implemented using zeros_like). These gradients are (hopefully) not |
| LOW | tools/autograd/derivatives.yaml | 181 | # according to these three cases: |
| LOW | tools/autograd/derivatives.yaml | 201 | # It is an efficient way to represent a Tensor filled with zeros because |
| LOW | tools/autograd/derivatives.yaml | 1161 | - name: nanmedian(Tensor self) -> Tensor |
| LOW | tools/autograd/derivatives.yaml | 1821 | # See [Note: Sometimes view derivatives] |
| LOW | tools/autograd/derivatives.yaml | 1841 | # DO NOT define a backward for to_sparse_csr |
| LOW | tools/autograd/derivatives.yaml | 2541 | # |
| LOW | tools/autograd/templates/python_nn_functions.cpp | 1 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS |
| LOW | tools/autograd/templates/python_functions.cpp | 1 | #include <torch/csrc/autograd/generated/python_functions.h> |
| LOW | tools/autograd/templates/python_fft_functions.cpp | 1 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS |
| LOW | tools/autograd/templates/python_sparse_functions.cpp | 1 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS |
| LOW | tools/autograd/templates/python_linalg_functions.cpp | 1 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS |
| LOW | tools/autograd/templates/ADInplaceOrViewType.cpp | 1 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS |
| 5201 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 245 | |
| LOW | tools/extract_scripts.py | 3 | |
| LOW | tools/nvcc_fix_deps.py | 16 | |
| LOW | tools/gen_vulkan_spv.py | 3 | |
| LOW | tools/embed_libomp_macos.py | 16 | |
| LOW | tools/render_junit.py | 3 | |
| LOW | tools/strtobool.py | 3 | |
| LOW | tools/generate_torch_version.py | 1 | |
| LOW | tools/build_with_debinfo.py | 8 | |
| LOW | tools/build_pytorch_libs.py | 1 | |
| LOW | tools/nightly.py | 49 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 4 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 4 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 4 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 4 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 4 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 4 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 12 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 12 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 12 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 13 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 13 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 13 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 14 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 14 | |
| LOW | tools/experimental/torchfuzz/__init__.py | 14 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 3 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 4 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 5 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 6 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 7 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 8 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 9 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 10 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 10 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 10 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 10 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 10 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 10 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 10 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 10 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 20 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 20 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 20 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 20 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 26 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 26 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 26 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 26 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 26 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 26 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 26 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 26 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 36 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 36 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 36 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 36 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 36 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 36 | |
| LOW | tools/experimental/torchfuzz/operators/__init__.py | 36 | |
| 4698 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 508 | |
| LOW | setup.py | 652 | |
| LOW | .spin/cmds.py | 106 | |
| LOW | .spin/cmds.py | 306 | |
| LOW | tools/extract_scripts.py | 52 | |
| LOW | tools/clean.py | 7 | |
| LOW | tools/gen_vulkan_spv.py | 315 | |
| LOW | tools/gen_vulkan_spv.py | 376 | |
| LOW | tools/stale_issues.py | 11 | |
| LOW | tools/stale_issues.py | 82 | |
| LOW | tools/embed_libomp_macos.py | 28 | |
| LOW | tools/render_junit.py | 62 | |
| LOW | tools/generate_torch_version.py | 51 | |
| LOW | tools/download_mnist.py | 32 | |
| LOW | tools/create_worktree.py | 187 | |
| LOW | tools/nightly.py | 891 | |
| LOW | tools/nightly.py | 1160 | |
| LOW | tools/nightly.py | 320 | |
| LOW | tools/experimental/torchfuzz/test_determinism.py | 71 | |
| LOW | tools/experimental/torchfuzz/ops_fuzzer.py | 254 | |
| LOW | tools/experimental/torchfuzz/visualize_graph.py | 41 | |
| LOW | tools/experimental/torchfuzz/visualize_graph.py | 159 | |
| LOW | tools/experimental/torchfuzz/multi_process_fuzzer.py | 83 | |
| LOW | tools/experimental/torchfuzz/multi_process_fuzzer.py | 209 | |
| LOW | tools/experimental/torchfuzz/multi_process_fuzzer.py | 505 | |
| LOW | tools/experimental/torchfuzz/tensor_fuzzer.py | 99 | |
| LOW | tools/experimental/torchfuzz/tensor_fuzzer.py | 213 | |
| LOW | tools/experimental/torchfuzz/tensor_fuzzer.py | 320 | |
| LOW | tools/experimental/torchfuzz/tensor_fuzzer.py | 479 | |
| LOW | tools/experimental/torchfuzz/fuzzer.py | 56 | |
| LOW | tools/experimental/torchfuzz/fuzzer.py | 244 | |
| LOW | tools/experimental/torchfuzz/codegen.py | 514 | |
| LOW | tools/experimental/torchfuzz/codegen.py | 194 | |
| LOW | tools/experimental/torchfuzz/operators/layout.py | 192 | |
| LOW | tools/experimental/torchfuzz/operators/constant.py | 46 | |
| LOW | tools/experimental/torchfuzz/cuda/_codegen.py | 159 | |
| LOW | tools/experimental/torchfuzz/cuda/_codegen.py | 398 | |
| LOW | tools/experimental/torchfuzz/cuda/_codegen.py | 581 | |
| LOW | tools/test/test_gen_backend_stubs.py | 27 | |
| LOW | tools/test/test_cmake.py | 22 | |
| LOW | tools/test/heuristics/test_interface.py | 413 | |
| LOW | tools/test/heuristics/test_interface.py | 437 | |
| LOW | tools/linter/adapters/stable_shim_usage_linter.py | 34 | |
| LOW | tools/linter/adapters/stable_shim_usage_linter.py | 135 | |
| LOW | tools/linter/adapters/pyfmt_linter.py | 142 | |
| LOW | tools/linter/adapters/generated_shims_version_linter.py | 166 | |
| LOW | tools/linter/adapters/no_workflows_on_fork.py | 90 | |
| LOW | tools/linter/adapters/no_merge_conflict_csv_linter.py | 62 | |
| LOW | tools/linter/adapters/stable_shim_version_linter.py | 34 | |
| LOW | tools/linter/adapters/stable_shim_version_linter.py | 125 | |
| LOW | tools/linter/adapters/stable_shim_version_linter.py | 49 | |
| LOW | tools/linter/adapters/test_device_bias_linter.py | 45 | |
| LOW | tools/linter/adapters/test_device_bias_linter.py | 46 | |
| LOW | tools/linter/adapters/test_device_bias_linter.py | 170 | |
| LOW | tools/linter/adapters/_stable_shim_utils.py | 305 | |
| LOW | tools/linter/adapters/header_only_linter.py | 45 | |
| LOW | tools/linter/adapters/clangformat_linter.py | 165 | |
| LOW | tools/linter/adapters/docstring_linter.py | 195 | |
| LOW | tools/linter/adapters/docstring_linter.py | 172 | |
| LOW | tools/linter/adapters/pyproject_linter.py | 215 | |
| 3681 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tools/linter/adapters/lintrunner_version_linter.py | 57 | description="Lintrunner is not installed, did you forget to run `make setup-lint && make lint`?", |
| HIGH | .ci/lumen_cli/tests/test_run_plan.py | 99 | "export A=x && pytest -q", |
| HIGH | .ci/lumen_cli/tests/test_run_plan.py | 100 | "export B=y && pytest -q tests/unit", |
| HIGH | test/test_datapipe.py | 565 | self.assertTrue(df.equals(cdf)) |
| HIGH | test/test_schema_check.py | 459 | # Empty containers return false |
| HIGH | test/test_jit.py | 6521 | # 1. nan == nan should return true |
| HIGH | test/test_pytree.py | 1271 | '"children_spec": [{"type": null, "context": null, ' |
| HIGH | test/test_pytree.py | 1272 | '"children_spec": []}, {"type": null, "context": null, ' |
| HIGH | test/test_pytree.py | 1273 | '"children_spec": []}]}, {"type": null, "context": null, ' |
| HIGH | test/test_pytree.py | 1275 | '"[4, 5, 6]", "children_spec": [{"type": null, "context": null, ' |
| HIGH | test/test_pytree.py | 1276 | '"children_spec": []}, {"type": null, "context": null, "children_spec": ' |
| HIGH | test/test_pytree.py | 1277 | '[]}, {"type": null, "context": null, "children_spec": []}]}]}]' |
| HIGH | test/test_cuda.py | 9562 | if (row < M && col < N) { |
| HIGH | test/test_opaque_obj_v2.py | 466 | queue.push(b) |
| HIGH | test/test_meta.py | 1263 | with MetaCrossRefDispatchMode.push( |
| HIGH | test/inductor/test_torchbind.py | 122 | q.push(torch.ones(2, 3)) |
| HIGH | test/inductor/test_torchbind.py | 350 | self.tq.push(x.cos()) |
| HIGH | test/inductor/test_torchbind.py | 351 | self.tq.push(x.sin()) |
| HIGH | test/nn/test_pooling.py | 817 | "MaxUnpool2d": r"Assertion `maxind >= 0 && maxind < outputImageSize` failed", |
| HIGH | test/nn/test_pooling.py | 818 | "MaxUnpool3d": r"Assertion `index >= 0 && index < outputImageSize` failed", |
| HIGH | test/nn/test_embedding.py | 1086 | msg = "Expected idx >= 0 && idx < num_embeddings" |
| HIGH | test/distributed/test_distributed_spawn.py | 42 | f"e.g.\ntouch /tmp/barrier && TEMP_DIR=/tmp BACKEND='nccl' WORLD_SIZE=2 python {__file__}", |
| HIGH | test/fx/test_fx_split.py | 211 | # pyre-fixme[61]: `name` is undefined, or not always defined. |
| HIGH | test/quantization/eager/test_equalize_eager.py | 56 | identical modules should return true |
| HIGH | test/quantization/eager/test_equalize_eager.py | 57 | modules with high difference in weights should return false |
| HIGH | test/cpython/v3_13/test_contextlib.py | 812 | stack.push(_expect_ok) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 815 | stack.push(cm) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 817 | stack.push(_suppress_exc) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 820 | stack.push(cm) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 822 | stack.push(_expect_exc) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 824 | stack.push(_expect_exc) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 893 | stack.push(lambda *exc: False) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 898 | stack.push(lambda *exc: True) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 1066 | stack.push(suppress_exc) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 1137 | stack.push(suppress_exc) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 1144 | stack.push(lambda *exc: True) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 1145 | stack.push(lambda *exc: 1/0) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 1146 | stack.push(lambda *exc: {}[1]) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 997 | stack.push(suppress_exc) |
| HIGH | test/cpython/v3_13/test_contextlib.py | 1163 | stack.push(cm) |
| HIGH | test/jit/test_torchbind.py | 98 | stackstring.push("lel") |
| HIGH | test/jit/test_torchbind.py | 61 | ss1.push(ss2.pop()) |
| HIGH | test/lazy/test_functionalization.py | 98 | %1 = [BFloat16[3]] aten::_to_copy(%0), dtype=BFloat16, layout=null, device=null, pin_memory=null, non_blocking=0, memo |
| HIGH | test/export/test_torchbind.py | 1106 | tq.push(torch.zeros(2, 2)) |
| HIGH | test/export/test_torchbind.py | 1107 | tq.push(torch.ones(2, 2)) |
| HIGH | test/export/test_torchbind.py | 1109 | tq.push(torch.ones(2, 2) * 2) |
| HIGH | test/export/test_torchbind.py | 1175 | tq.push(x.cos()) |
| HIGH | test/export/test_torchbind.py | 1176 | tq.push(x.sin()) |
| HIGH | test/export/test_torchbind.py | 1236 | tq.push(x.cos()) |
| HIGH | test/export/test_torchbind.py | 1237 | tq.push(x.sin()) |
| HIGH | test/export/test_torchbind.py | 1251 | tq2.push(torch.randn(4, 5, requires_grad=False)) |
| HIGH | test/export/test_torchbind.py | 1257 | tq3.push(torch.randn(2, 3, requires_grad=False)) |
| HIGH | test/export/test_torchbind.py | 1263 | tq4.push(torch.randn(2, 3, requires_grad=False)) |
| HIGH | test/export/test_torchbind.py | 1269 | tq5.push(torch.randn(2, 3, requires_grad=True)) |
| HIGH | test/export/test_torchbind.py | 1275 | tq6.push(torch.randn(2, 3, requires_grad=True, dtype=torch.float64)) |
| HIGH | test/export/test_torchbind.py | 1287 | tq.push(x.cos()) |
| HIGH | test/export/test_torchbind.py | 1288 | tq.push(x.sin()) |
| HIGH | test/export/test_torchbind.py | 1297 | tq1.push(torch.randn(2, 3, requires_grad=False)) |
| HIGH | test/export/test_torchbind.py | 1303 | tq2.push(torch.randn(2, 4, requires_grad=False)) |
| HIGH | test/export/test_torchbind.py | 1308 | tq3.push(torch.randn(2, 5, requires_grad=False)) |
| 427 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/experimental/torchfuzz/codegen.py | 290 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/experimental/torchfuzz/codegen.py | 292 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/code_analyzer/gen_operators_yaml.py | 28 | # ------------------------------------------------------------------------------ |
| MEDIUM | tools/code_analyzer/gen_operators_yaml.py | 34 | # ------------------------ |
| MEDIUM | tools/code_analyzer/gen_operators_yaml.py | 64 | # ----------------------------------------------- |
| MEDIUM | .ci/docker/common/install_openmpi.sh | 5 | # -------------------------------------------------------------------------- |
| MEDIUM | .ci/docker/common/install_rocm.sh | 151 | # ========================================================================= |
| MEDIUM | .ci/docker/common/install_rocm.sh | 153 | # ========================================================================= |
| MEDIUM | test/test_dynamic_shapes.py | 1210 | # ------------------------------------------------------------------ |
| MEDIUM | test/test_dynamic_shapes.py | 1215 | # ------------------------------------------------------------------ |
| MEDIUM | test/test_dynamic_shapes.py | 1225 | # ------------------------------------------------------------------ |
| MEDIUM | test/test_dynamic_shapes.py | 1232 | # ------------------------------------------------------------------ |
| MEDIUM | test/test_custom_ops.py | 5467 | # ========================================================= |
| MEDIUM | test/test_custom_ops.py | 5469 | # ========================================================= |
| MEDIUM | test/test_custom_ops.py | 5479 | # ========================================================= |
| MEDIUM | test/test_custom_ops.py | 5481 | # ========================================================= |
| MEDIUM | test/test_custom_ops.py | 5516 | # ========================================================= |
| MEDIUM | test/test_custom_ops.py | 5518 | # ========================================================= |
| MEDIUM | test/test_custom_ops.py | 5501 | # ========================================================= |
| MEDIUM | test/test_custom_ops.py | 5503 | # ========================================================= |
| MEDIUM | test/test_scatter_gather_ops.py | 535 | # --------------------------------------------------------------------------- |
| MEDIUM | test/test_scatter_gather_ops.py | 543 | # --------------------------------------------------------------------------- |
| MEDIUM | test/test_sympy_utils.py | 919 | # ===================================== |
| MEDIUM | test/test_sympy_utils.py | 925 | # ===================================== |
| MEDIUM | test/test_sympy_utils.py | 939 | # ===================================== |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 21 | # ─────────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 23 | # ─────────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 32 | # ─────────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 34 | # ─────────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 129 | # ─────────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 131 | # ─────────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 245 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 247 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 274 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 276 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 305 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 307 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 330 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 332 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 375 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 377 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 411 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 413 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 444 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 446 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 75 | # ─────────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 77 | # ─────────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 351 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 353 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 467 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_dropout_align_random_eager.py | 471 | # ─────────────────────────────────────────────────────────── |
| MEDIUM | test/inductor/test_user_streams.py | 1619 | # ------------------------------------------------------------------ |
| MEDIUM | test/inductor/test_user_streams.py | 1623 | # ------------------------------------------------------------------ |
| MEDIUM | test/inductor/test_user_streams.py | 1838 | # ------------------------------------------------------------------ |
| MEDIUM | test/inductor/test_user_streams.py | 1842 | # ------------------------------------------------------------------ |
| MEDIUM | test/inductor/test_user_streams.py | 1646 | # ------------------------------------------------------------------ |
| MEDIUM | test/inductor/test_user_streams.py | 1649 | # ------------------------------------------------------------------ |
| MEDIUM | test/inductor/test_user_streams.py | 1680 | # ------------------------------------------------------------------ |
| MEDIUM | test/inductor/test_user_streams.py | 1683 | # ------------------------------------------------------------------ |
| MEDIUM | test/inductor/test_user_streams.py | 1729 | # ------------------------------------------------------------------ |
| 635 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tools/linter/adapters/clangtidy_linter.py | 0 | (?mx) ^ (?p<file>.*?): (?p<line>\d+): (?:(?p<column>-?\d+):)? \s(?p<severity>\s+?):? \s(?p<message>.*) \s(?p<code>\[.*\] |
| HIGH | tools/linter/adapters/mypy_linter.py | 0 | (?mx) ^ (?p<file>.*?): (?p<line>\d+): (?:(?p<column>-?\d+):)? \s(?p<severity>\s+?):? \s(?p<message>.*) \s(?p<code>\[.*\] |
| HIGH | tools/linter/adapters/pyrefly_linter.py | 0 | (?mx) ^ (?p<file>.*?): (?p<line>\d+): (?:(?p<column>-?\d+):)? \s(?p<severity>\s+?):? \s(?p<message>.*) \s(?p<code>\[.*\] |
| HIGH | test/test_dispatch.py | 0 | name multiple times. each overload's schema should only be registered with a single call to def(). |
| HIGH | test/test_dispatch.py | 0 | name multiple times. each overload's schema should only be registered with a single call to def(). |
| HIGH | test/test_dispatch.py | 0 | name multiple times. each overload's schema should only be registered with a single call to def(). |
| HIGH | test/test_dispatch.py | 0 | duplicate registration: registered at /dev/null:0. original registration: registered at /dev/null:0 |
| HIGH | test/test_dispatch.py | 0 | duplicate registration: registered at /dev/null:0. original registration: registered at /dev/null:0 |
| HIGH | test/test_dispatch.py | 0 | duplicate registration: registered at /dev/null:0. original registration: registered at /dev/null:0 |
| HIGH | test/test_functionalization.py | 0 | \ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals |
| HIGH | test/test_functionalization.py | 0 | \ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals |
| HIGH | test/test_functionalization.py | 0 | \ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals |
| HIGH | test/test_functionalization.py | 0 | \ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals |
| HIGH | test/test_functionalization.py | 0 | \ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals |
| HIGH | test/test_functionalization.py | 0 | \ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals |
| HIGH | test/test_functionalization.py | 0 | \ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals |
| HIGH | test/test_functionalization.py | 0 | \ def forward(self, arg0_1): zeros = torch.ops.aten.zeros.default([2, 2], device = device(type='cpu'), pin_memory = fals |
| HIGH | test/test_weak.py | 0 | return a mapping object with the value contained in data dictionary |
| HIGH | test/test_weak.py | 0 | return a mapping object with the value contained in data dictionary |
| HIGH | test/cpython/v3_13/mapping_tests.py | 0 | return a mapping object with the value contained in data dictionary |
| HIGH | test/test_transformers.py | 0 | clones the query, key, and value tensors and moves them to the specified dtype. |
| HIGH | test/inductor/test_flex_attention.py | 0 | clones the query, key, and value tensors and moves them to the specified dtype. |
| HIGH | test/inductor/test_flex_decoding.py | 0 | clones the query, key, and value tensors and moves them to the specified dtype. |
| HIGH | benchmarks/transformer/score_mod.py | 0 | clones the query, key, and value tensors and moves them to the specified dtype. |
| HIGH | test/test_cpp_extensions_jit.py | 0 | torch::tensor tanh_add(torch::tensor x, torch::tensor y) { return x.tanh() + y.tanh(); } |
| HIGH | test/test_cpp_extensions_jit.py | 0 | torch::tensor tanh_add(torch::tensor x, torch::tensor y) { return x.tanh() + y.tanh(); } |
| HIGH | test/test_cpp_extensions_jit.py | 0 | torch::tensor tanh_add(torch::tensor x, torch::tensor y) { return x.tanh() + y.tanh(); } |
| HIGH | test/test_fx.py | 0 | def forward(self, args_list: list[torch.tensor]){maybe_return_annotation}: {', '.join(free_vars)} = args_list |
| HIGH | test/test_fx.py | 0 | def forward(self, args_list: list[torch.tensor]){maybe_return_annotation}: {', '.join(free_vars)} = args_list |
| HIGH | test/test_fx.py | 0 | def forward(self, args_list: list[torch.tensor]){maybe_return_annotation}: {', '.join(free_vars)} = args_list |
| HIGH | test/inductor/test_graph_transform_observer.py | 0 | input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, n_head, seq_len, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_fused_attention.py | 0 | input tensors assumed to have shape (batch_size, seq_len, n_head, embed_dim) |
| HIGH | test/inductor/test_max_autotune.py | 0 | make sure autotuning mm in sub processes work without crashes. |
| HIGH | test/inductor/test_cutlass_backend.py | 0 | make sure autotuning mm in sub processes work without crashes. |
| HIGH | test/inductor/test_cutlass_backend.py | 0 | make sure autotuning mm in sub processes work without crashes. |
| HIGH | test/inductor/test_cutlass_backend.py | 0 | make sure autotuning mm in sub processes work without crashes. |
| HIGH | test/inductor/test_b2b_gemm.py | 0 | compare torch.compile(f, b2b_gemm = off) with torch.compile(f, b2b_gemm = on) |
| HIGH | test/inductor/test_b2b_gemm.py | 0 | compare torch.compile(f, b2b_gemm = off) with torch.compile(f, b2b_gemm = on) |
| HIGH | test/inductor/test_b2b_gemm.py | 0 | compare torch.compile(f, b2b_gemm = off) with torch.compile(f, b2b_gemm = on) |
| HIGH | test/inductor/test_codecache.py | 0 | verify that we can populate and hot load functions from the cache. |
| HIGH | test/inductor/test_codecache.py | 0 | verify that we can populate and hot load functions from the cache. |
| HIGH | test/dynamo/test_aot_autograd_cache.py | 0 | verify that we can populate and hot load functions from the cache. |
| HIGH | test/dynamo/test_aot_autograd_cache.py | 0 | verify that we can populate and hot load functions from the cache. |
| HIGH | …ension/torch_openreg/torch_openreg/openreg/__init__.py | 0 | context-manager that changes the selected device. args: device (torch.device or int): device index to select. it's a no- |
| HIGH | torch/cuda/__init__.py | 0 | context-manager that changes the selected device. args: device (torch.device or int): device index to select. it's a no- |
| HIGH | torch/mtia/__init__.py | 0 | context-manager that changes the selected device. args: device (torch.device or int): device index to select. it's a no- |
| HIGH | test/nn/test_parametrization.py | 0 | test that all parametrizations and their associated parameters are transferred. |
| 330 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | setup.py | 516 | # Create a temporary directory for downloading |
| MEDIUM | setup.py | 662 | # Create a temporary directory for downloading |
| MEDIUM | tools/update_masked_docs.py | 30 | # This file is generated, do not modify it! |
| MEDIUM | tools/experimental/torchfuzz/ops_fuzzer.py | 472 | # Create the operation node |
| MEDIUM | tools/experimental/torchfuzz/multi_process_fuzzer.py | 22 | # Create a mock tqdm class for type safety |
| MEDIUM | tools/experimental/torchfuzz/tensor_fuzzer.py | 251 | # Create a valid permutation that's still dense |
| MEDIUM | tools/experimental/torchfuzz/tensor_fuzzer.py | 344 | # Create a local Random instance to avoid interfering with global state |
| MEDIUM | tools/experimental/torchfuzz/tensor_fuzzer.py | 494 | # Create a local random instance to avoid interfering with global state |
| MEDIUM | tools/experimental/torchfuzz/tensor_fuzzer.py | 502 | # Create a scalar value based on dtype |
| MEDIUM | tools/experimental/torchfuzz/tensor_fuzzer.py | 522 | # Create a scalar value based on dtype |
| MEDIUM | tools/experimental/torchfuzz/fuzzer.py | 104 | # Create a unique folder for this iteration |
| MEDIUM | tools/experimental/torchfuzz/operators/item.py | 27 | # Create a tensor spec that can produce a scalar via .item() |
| MEDIUM | tools/test/test_gb_registry_linter.py | 438 | # Create a callsite with one of the duplicate types |
| MEDIUM | tools/test/heuristics/test_interface.py | 29 | # Create a dummy heuristic class |
| MEDIUM | tools/linter/adapters/stable_shim_usage_linter.py | 124 | "# This file is automatically updated by the stable_shim_usage_linter.\n" |
| MEDIUM | tools/linter/adapters/s3_init.py | 122 | # Create the output folder |
| MEDIUM | tools/autograd/gen_variable_type.py | 431 | # The following code templates implement the checks for this invariant: |
| MEDIUM | tools/autograd/derivatives.yaml | 1487 | # Defining a backward will make codegen spit out the forward call as |
| MEDIUM | tools/setup_helpers/gen_version_header.py | 59 | # Create the output dir if it doesn't exist. |
| MEDIUM | .ci/lumen_cli/tests/test_utils.py | 26 | # Create a temporary directory for the test to run in |
| MEDIUM | .ci/lumen_cli/cli/lib/core/vllm/vllm_test_library.yaml | 2 | # This file defines the test plans for vllm CI development |
| MEDIUM | .ci/libtorch/extract_libtorch_from_wheel.py | 326 | # Create the zip |
| MEDIUM | .ci/wheel/build_wheel.sh | 86 | # Create an isolated directory to store this builds pytorch checkout and conda |
| MEDIUM | .ci/wheel/build_wheel.sh | 103 | # Create a consistent wheel package name to rename the wheel to |
| MEDIUM | test/test_python_dispatch.py | 680 | # Create a fragment |
| MEDIUM | test/test_functionalization.py | 1824 | # Create a view of x |
| MEDIUM | test/test_hub.py | 316 | # Create an entry with malicious path |
| MEDIUM | test/test_hub.py | 322 | # Create a single entry with malicious path for legacy format |
| MEDIUM | test/test_hub.py | 390 | # Create a legacy-style malicious zip (single entry with traversal) |
| MEDIUM | test/test_hub.py | 412 | # Create a zip that looks like a GitHub repository but has malicious content |
| MEDIUM | test/test_torch.py | 3449 | # Create the 4 possible combinations of scalar sizes for source / index |
| MEDIUM | test/test_torch.py | 3498 | # Create the 8 possible combinations of scalar sizes for target / index / source |
| MEDIUM | test/test_torch.py | 8607 | # This method is primarily exposed for torchvision's resize |
| MEDIUM | test/test_torch.py | 10909 | # The following block extends TestTorch with negative dim wrapping tests |
| MEDIUM | test/test_dynamic_shapes.py | 6326 | # Create a backed symbol |
| MEDIUM | test/test_dynamic_shapes.py | 6331 | # Create an unbacked symbol |
| MEDIUM | test/test_dynamic_shapes.py | 3839 | # Create a symint during fake tensor tracing |
| MEDIUM | test/test_dynamic_shapes.py | 4906 | # Create a scalar tensor to scatter into the selected index |
| MEDIUM | test/test_dynamic_shapes.py | 5906 | # Create a tensor with shape [..., 2] where batch dim is unbacked |
| MEDIUM | test/test_dynamic_shapes.py | 6272 | # Create a derived expression: u0 // 2 |
| MEDIUM | test/test_optim.py | 2067 | # Create a random 2D tensor for compatibility with Muon. |
| MEDIUM | test/test_nn.py | 9428 | # Create an appropriately-sized input with a single spatial element. |
| MEDIUM | test/test_subclass.py | 231 | # Define a subclass that does not rewrap for any function in its __torch_dispatch__ impl. |
| MEDIUM | test/test_indexing.py | 1952 | # Create the 8 possible combinations of scalar sizes for target / index / source |
| MEDIUM | test/test_indexing.py | 2289 | # Create the 4 possible combinations of scalar sizes for index / source |
| MEDIUM | test/test_custom_ops.py | 1178 | # Define a named tuple for a Point with x and y coordinates |
| MEDIUM | test/test_cuda.py | 4723 | # Create a pipe to communicate between parent and child processes |
| MEDIUM | test/test_cuda.py | 2675 | # Define a function to create generator states, with optional graph registration |
| MEDIUM | test/test_cuda.py | 2694 | # Define a function to perform specific RNG actions using the generator's states |
| MEDIUM | test/test_cuda.py | 2711 | # Define a function to retrieve the final offsets of the original and new generator states |
| MEDIUM | test/test_cuda.py | 5156 | # Create a simple model with a backward pass |
| MEDIUM | test/test_cuda.py | 5345 | # Create an instance of the model |
| MEDIUM | test/test_cuda.py | 5350 | # Create a sample input tensor |
| MEDIUM | test/test_cuda.py | 2398 | # This function is intended to test the lazy creation and reuse of per-thread |
| MEDIUM | test/test_cuda.py | 9628 | # Define a simple vector addition kernel |
| MEDIUM | test/test_opaque_obj_v2.py | 95 | # Create a class with an unsupported descriptor |
| MEDIUM | test/test_opaque_obj_v2.py | 214 | # Create a new counter to match device mesh's __getitem__ |
| MEDIUM | test/test_dlpack.py | 416 | # Create a new tensor, and wrap it using TensorDLPackWrapper. |
| MEDIUM | test/test_dlpack.py | 419 | # Create a new tensor from the wrapper. |
| MEDIUM | test/test_dlpack.py | 117 | # Create a stream where the tensor will reside |
| 600 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 697 | except Exception: |
| LOW | setup.py | 705 | except Exception: |
| LOW | tools/render_junit.py | 33 | except Exception as err: |
| MEDIUM | tools/nightly_hotpatch.py | 94 | print("Error: PyTorch is not installed in the current Python environment.") |
| LOW | tools/nightly_hotpatch.py | 130 | except Exception as e: |
| MEDIUM | tools/nightly_hotpatch.py | 131 | print(f"An error occurred while downloading the patch: {e}") |
| MEDIUM | tools/nightly_hotpatch.py | 178 | print("Error: The 'patch' utility is not installed or not found in PATH.") |
| LOW | tools/nightly_hotpatch.py | 180 | except Exception as e: |
| MEDIUM | tools/nightly_hotpatch.py | 181 | print(f"An error occurred while applying the patch: {e}") |
| LOW | tools/generate_torch_version.py | 30 | except Exception: |
| LOW | tools/generate_torch_version.py | 47 | except Exception: |
| LOW | tools/nightly.py | 721 | except Exception as e: |
| LOW | tools/nightly.py | 945 | except Exception: |
| LOW | tools/experimental/torchfuzz/ops_fuzzer.py | 238 | except Exception: |
| LOW | tools/experimental/torchfuzz/multi_process_fuzzer.py | 175 | except Exception as e: |
| LOW | tools/experimental/torchfuzz/multi_process_fuzzer.py | 351 | except Exception as e: |
| LOW | tools/experimental/torchfuzz/fuzzer.py | 232 | except Exception as e: |
| MEDIUM | tools/experimental/torchfuzz/fuzzer.py | 240 | print(f"Error: {error_message}") |
| LOW | tools/experimental/torchfuzz/fuzzer.py | 375 | except Exception as e: |
| LOW | tools/experimental/torchfuzz/fuzzer.py | 413 | except Exception as e: |
| LOW | tools/test/gen_operators_yaml_test.py | 141 | except Exception: |
| LOW | tools/linter/adapters/gha_linter.py | 61 | except Exception as err: |
| LOW | tools/linter/adapters/actionlint_linter.py | 168 | except Exception: |
| LOW | tools/linter/adapters/grep_linter.py | 136 | except Exception as err: |
| LOW | tools/linter/adapters/grep_linter.py | 216 | except Exception as err: |
| LOW | tools/linter/adapters/grep_linter.py | 397 | except Exception as err: |
| LOW | tools/linter/adapters/cmake_linter.py | 144 | except Exception: |
| LOW | tools/linter/adapters/pyfmt_linter.py | 138 | except Exception as err: |
| LOW | tools/linter/adapters/pyfmt_linter.py | 177 | except Exception: |
| LOW | tools/linter/adapters/no_workflows_on_fork.py | 242 | except Exception: |
| LOW | tools/linter/adapters/no_merge_conflict_csv_linter.py | 97 | except Exception: |
| LOW | tools/linter/adapters/stable_shim_version_linter.py | 117 | except Exception as e: |
| LOW | tools/linter/adapters/nativefunctions_linter.py | 75 | except Exception as err: |
| LOW | tools/linter/adapters/clangformat_linter.py | 240 | except Exception: |
| LOW | tools/linter/adapters/docstring_linter.py | 92 | except Exception as e: |
| MEDIUM | tools/linter/adapters/docstring_linter.py | 86 | def _grandfather(self) -> dict[str, dict[str, Any]]: |
| LOW | tools/linter/adapters/pyproject_linter.py | 250 | except Exception: |
| LOW | tools/linter/adapters/clangtidy_linter.py | 314 | except Exception: |
| LOW | tools/linter/adapters/cmake_minimum_required_linter.py | 186 | except Exception: |
| LOW | tools/linter/adapters/cmake_minimum_required_linter.py | 246 | except Exception: |
| LOW | tools/linter/adapters/ruff_linter.py | 463 | except Exception: # Catch all exceptions for lintrunner |
| LOW | tools/linter/adapters/newlines_linter.py | 96 | except Exception as err: |
| LOW | tools/linter/adapters/newlines_linter.py | 135 | except Exception as err: |
| LOW | tools/linter/adapters/codespell_linter.py | 132 | except Exception as err: |
| LOW | tools/linter/adapters/codespell_linter.py | 159 | except Exception as err: |
| LOW | tools/linter/adapters/codespell_linter.py | 200 | except Exception: |
| LOW | tools/dynamo/verify_dynamo.py | 187 | except Exception: |
| LOW | tools/testing/upload_artifacts.py | 121 | except Exception as e: |
| LOW | tools/testing/upload_artifacts.py | 207 | except Exception as e: |
| LOW | tools/testing/upload_artifacts.py | 219 | except Exception as e: |
| LOW | tools/testing/target_determination/determinator.py | 30 | except Exception as e: |
| MEDIUM | tools/testing/target_determination/determinator.py | 31 | print(f"Error in {heuristic.__class__.__name__}: {e}", file=file) |
| LOW | …ing/target_determination/heuristics/mentioned_in_pr.py | 33 | except Exception as e: |
| LOW | …ing/target_determination/heuristics/mentioned_in_pr.py | 42 | except Exception as e: |
| LOW | …ing/target_determination/heuristics/mentioned_in_pr.py | 53 | except Exception: |
| LOW | tools/stats/monitor.py | 244 | except Exception as e: |
| LOW | tools/stats/monitor.py | 323 | except Exception as e: |
| LOW | tools/stats/monitor.py | 472 | except Exception as e: |
| LOW | tools/stats/monitor.py | 499 | except Exception: |
| LOW | tools/stats/monitor.py | 524 | except Exception: |
| 1212 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tools/autograd/load_derivatives.py | 292 | is_foreach = f.func.name.name.base.startswith("_foreach_") |
| CRITICAL | tools/autograd/gen_autograd_functions.py | 694 | info.func.func.name.name.base.startswith("_foreach") and is_output |
| CRITICAL | test/test_per_overload_api.py | 73 | torch.ops.aten.linear.default.decompose(x, y), |
| CRITICAL | test/inductor/test_gpu_select_algorithm.py | 104 | w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel( |
| CRITICAL | test/inductor/test_gpu_select_algorithm.py | 159 | w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel( |
| CRITICAL | test/inductor/test_cpu_select_algorithm.py | 1668 | w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel( |
| CRITICAL | test/inductor/test_cpu_select_algorithm.py | 1736 | w_int8 = torch.ao.quantization.fx._decomposed.quantize_per_channel( |
| CRITICAL | test/onnx/test_pytorch_onnx_onnxruntime.py | 12881 | model = torch.ao.nn.intrinsic.quantized.ConvReLU1d(16, 33, 3, stride=2) |
| CRITICAL | test/onnx/test_pytorch_onnx_onnxruntime.py | 12895 | model = torch.ao.nn.intrinsic.quantized.ConvReLU2d(16, 33, 3, stride=2) |
| CRITICAL | test/onnx/test_pytorch_onnx_onnxruntime.py | 12910 | model = torch.ao.nn.intrinsic.quantized.ConvReLU3d( |
| CRITICAL | test/fx/test_dce_pass.py | 232 | torch._ops.ops.aten.add_.Tensor(a, 1) |
| CRITICAL | test/fx/test_dce_pass.py | 314 | torch._ops.ops.aten.add.out(b, b, out=a, alpha=2) |
| CRITICAL | test/dynamo/test_reconstruct.py | 375 | return self.a.b.c.d.e(x) |
| CRITICAL | test/quantization/core/test_quantized_module.py | 1742 | cell_dq = torch.ao.nn.quantized.dynamic.LSTM(input_size=input_size, |
| CRITICAL | test/quantization/core/test_quantized_module.py | 1750 | ref_dq = torch.ao.nn.quantized.dynamic.LSTM(input_size=input_size, |
| CRITICAL | test/quantization/core/test_quantized_module.py | 1804 | cell_dq = torch.ao.nn.quantized.dynamic.GRU(input_size=input_size, |
| CRITICAL | test/quantization/core/test_quantized_op.py | 679 | qY = torch.ao.nn.quantized.functional.elu(qX, output_scale, output_zero_point, alpha=alpha) |
| CRITICAL | test/quantization/core/test_quantized_op.py | 1038 | qY = torch.ao.nn.quantized.functional.hardswish( |
| CRITICAL | test/quantization/core/test_quantized_op.py | 3056 | qY = torch.ao.nn.quantized.functional.hardtanh(qX, -1, 6) |
| CRITICAL | test/quantization/core/test_quantized_op.py | 9137 | qY_hat = torch.ao.nn.quantized.functional.hardtanh(qX, min_val, max_val) |
| CRITICAL | test/quantization/fx/test_quantize_fx.py | 4944 | return torch.ao.quantization.fx.lstm_utils._get_lstm_with_individually_observed_parts( |
| CRITICAL | test/quantization/fx/test_quantize_fx.py | 4964 | return torch.ao.quantization.fx.lstm_utils._get_reference_quantized_lstm_module( |
| CRITICAL | test/quantization/fx/test_quantize_fx.py | 6770 | activation=torch.ao.quantization.observer.HistogramObserver.with_args( |
| CRITICAL | test/quantization/jit/test_quantize_jit.py | 3844 | eager_model.sub.module.fc1.weight.detach() |
| CRITICAL | test/quantization/jit/test_quantize_jit.py | 3847 | eager_model.sub.module.fc1.bias.detach() |
| CRITICAL | test/quantization/jit/test_quantize_jit.py | 3850 | eager_model.sub.module.fc2.weight.detach() |
| CRITICAL | test/quantization/jit/test_quantize_jit.py | 3853 | eager_model.sub.module.fc2.bias.detach() |
| CRITICAL | test/quantization/jit/test_quantize_jit.py | 3798 | eager_model.sub2.fc1.module.weight.detach() |
| CRITICAL | test/quantization/jit/test_quantize_jit.py | 3801 | eager_model.sub2.fc1.module.bias.detach() |
| CRITICAL | test/quantization/eager/test_quantize_eager_ptq.py | 1078 | original_m.sub.custom.conv.weight.detach() |
| CRITICAL | test/quantization/eager/test_quantize_eager_ptq.py | 1081 | original_m.sub.custom.conv.bias.detach() |
| CRITICAL | test/cpp/jit/test_backend.cpp | 49 | __torch__.torch.classes.__backends__.test_backend.__new__(__torch__.torch.classes.__backends__.test_backend) |
| CRITICAL | test/jit/test_class_type.py | 556 | three = jit._imported_class_test.very.very.nested.FooUniqueName(a) |
| CRITICAL | test/export/test_torchbind.py | 344 | torch.ops._TorchScriptTesting.takes_foo.default._dispatch_cache.clear() |
| CRITICAL | test/export/test_torchbind.py | 355 | torch.ops._TorchScriptTesting.takes_foo.default.py_impl( |
| CRITICAL | test/export/test_export.py | 12316 | x = self.n3.n4.n5.n6.n7.n8(x + 1) |
| CRITICAL | test/export/test_export.py | 12318 | self.n3.n4.n5.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12319 | self.n3.n4.n5.n6.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12320 | self.n3.n4.n5.n6.n7.n8.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12355 | x = self.n1.n2.n3.n4.n5.n6.n7(x + 1) |
| CRITICAL | test/export/test_export.py | 12356 | self.n1.n2.n3.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12357 | self.n1.n2.n3.n4.n5.n6.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12358 | self.n1.n2.n3.n4.n5.n6.n7.n8.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12735 | x = self.n1.n2.n3.n4.n5(x + 1) |
| CRITICAL | test/export/test_export.py | 12736 | x = self.n1.n2.n3.n4.n5.n6(x + 1) |
| CRITICAL | test/export/test_export.py | 12738 | self.n1.n2.n3.n4.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12739 | self.n1.n2.n3.n4.n5.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12740 | self.n1.n2.n3.n4.n5.n6.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12834 | x = self.n5.n6.n7.n8.n9(x + 1) |
| CRITICAL | test/export/test_export.py | 12837 | self.n5.n6.n7.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12838 | self.n5.n6.n7.n8.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12855 | x = self.n4.n5.n6.n7.n8(x + 1) |
| CRITICAL | test/export/test_export.py | 12856 | x = self.n4.n5.n6.n7.n8.n9(x + 1) |
| CRITICAL | test/export/test_export.py | 12857 | self.n4.n5.n6.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12858 | self.n4.n5.n6.n7.n8.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12875 | x = self.n3.n4.n5.n6.n7.n8(x + 1) |
| CRITICAL | test/export/test_export.py | 12876 | x = self.n3.n4.n5.n6.n7.n8.n9(x + 1) |
| CRITICAL | test/export/test_export.py | 12879 | self.n3.n4.n5.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12880 | self.n3.n4.n5.n6.buf.add_(1) |
| CRITICAL | test/export/test_export.py | 12881 | self.n3.n4.n5.n6.n7.buf.add_(1) |
| 69 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | test/test_transformers.py | 102 | Compare test tensor against golden and reference tensors. Golden is the highest precision possible serving as t |
| HIGH | test/onnx/onnx_test_common.py | 163 | Run ORT on the given ONNX model and inputs Used in test_fx_to_onnx_with_onnxruntime.py Args: onnx_mode |
| HIGH | test/onnx/torchlib/ops_test_common.py | 327 | Run a model with ONNX Runtime in a separate process. Args: serialized_model: Serialized ONNX model proto. |
| HIGH | .claude/skills/docstring/SKILL.md | 295 | Sample from the Gumbel-Softmax distribution and optionally discretize. Args: logits (Tensor): `[..., n |
| HIGH | torch/library.py | 1695 | Returns the computed kernel for a given operator and dispatch key. This function retrieves the kernel that would be |
| HIGH | torch/_torch_docs.py | 4592 | unflatten(input, dim, sizes) -> Tensor Expands a dimension of the input tensor over multiple dimensions. .. seealso:: |
| HIGH | torch/_torch_docs.py | 6490 | lu_unpack(LU_data, LU_pivots, unpack_data=True, unpack_pivots=True, *, out=None) -> (Tensor, Tensor, Tensor) Unpacks t |
| HIGH | torch/_torch_docs.py | 7461 | aminmax(input, *, dim=None, keepdim=False, out=None) -> (Tensor min, Tensor max) Computes the minimum and maximum valu |
| HIGH | torch/_torch_docs.py | 11658 | triangular_solve(b, A, upper=True, transpose=False, unitriangular=False, *, out=None) -> (Tensor, Tensor) Solves a sys |
| HIGH | torch/functional.py | 80 | broadcast_shapes(*shapes) -> Size Similar to :func:`broadcast_tensors` but for shapes. This is equivalent to |
| HIGH | torch/functional.py | 176 | einsum(equation, *operands) -> Tensor Sums the product of the elements of the input :attr:`operands` along dimensio |
| HIGH | torch/_lobpcg.py | 359 | Find the k largest (or smallest) eigenvalues and the corresponding eigenvectors of a symmetric positive definite gen |
| HIGH | torch/serialization.py | 714 | Restores `storage` using a deserializer function registered for the `location`. This function looks in the reg |
| HIGH | torch/_functorch/einops.py | 16 | A native implementation of `einops.rearrange`, a reader-friendly smart element reordering for multidimensional tenso |
| HIGH | torch/_functorch/_aot_autograd/fx_utils.py | 47 | Given a joint graph with descriptors (meta['desc'] on placeholders and output), returns the node for every inpu |
| HIGH | torch/_functorch/_aot_autograd/fx_utils.py | 103 | Get all output nodes and their corresponding tangent nodes from a joint graph. Similar to get_all_input_and_grad_no |
| HIGH | torch/_functorch/_aot_autograd/fx_utils.py | 231 | Get parameter nodes mapped by their fully qualified names. This function traverses the graph to find all parameter |
| HIGH | torch/_functorch/_aot_autograd/fx_utils.py | 259 | Get buffer nodes mapped by their fully qualified names. This function traverses the graph to find all buffer input |
| HIGH | torch/_functorch/_aot_autograd/fx_utils.py | 287 | Get all parameter nodes from a graph as a list. You can rely on this providing the correct order of parameters you |
| HIGH | torch/_functorch/_aot_autograd/fx_utils.py | 308 | Get all buffer nodes from a graph as a list. You can rely on this providing the correct order of buffers you need |
| HIGH | torch/linalg/__init__.py | 97 | .. seealso:: :func:`torch.linalg.cholesky_ex` for a version of this operation that skips the (slow) e |
| HIGH | torch/linalg/__init__.py | 243 | .. note:: Consider using :func:`torch.linalg.solve` if possible for multiplying a matrix on the left by the in |
| HIGH | torch/linalg/__init__.py | 308 | Args: A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions. Keyword args: left |
| HIGH | torch/linalg/__init__.py | 426 | linalg.slogdet(A, *, out=None) -> (Tensor, Tensor) Computes the sign and natural logarithm of the absolute value of th |
| HIGH | torch/linalg/__init__.py | 504 | .. warning:: This function assumes that :attr:`A` is `diagonalizable`_ (for example, when all the eigenva |
| HIGH | torch/linalg/__init__.py | 615 | .. seealso:: :func:`torch.linalg.eig` computes the full eigenvalue decomposition. Args: A (Tensor): tens |
| HIGH | torch/linalg/__init__.py | 675 | .. note:: The eigenvalues of real symmetric or complex Hermitian matrices are always real. .. warning:: The eigenvect |
| HIGH | torch/linalg/__init__.py | 798 | .. seealso:: :func:`torch.linalg.eigh` computes the full eigenvalue decomposition. Args: A (Tensor): ten |
| HIGH | torch/linalg/__init__.py | 838 | householder_product(A, tau, *, out=None) -> Tensor Computes the first `n` columns of a product of Householder matrices |
| HIGH | torch/linalg/__init__.py | 939 | Args: A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions consistin |
| HIGH | torch/linalg/__init__.py | 993 | Args: A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions consistin |
| HIGH | torch/linalg/__init__.py | 1080 | torch.linalg.lstsq(A, B, rcond=None, *, driver=None) -> (Tensor, Tensor, Tensor, Tensor) Computes a solution to the le |
| HIGH | torch/linalg/__init__.py | 1204 | matrix_power(A, n, *, out=None) -> Tensor Computes the `n`-th power of a square matrix for an integer `n`. Supports i |
| HIGH | torch/linalg/__init__.py | 1355 | linalg.norm(input, ord=None, dim=None, keepdim=False, *, out=None, dtype=None) -> Tensor Computes a vector or matrix n |
| HIGH | torch/linalg/__init__.py | 1494 | linalg.vector_norm(x, ord=2, dim=None, keepdim=False, *, dtype=None, out=None) -> Tensor Computes a vector norm. If : |
| HIGH | torch/linalg/__init__.py | 1576 | linalg.matrix_norm(A, ord='fro', dim=(-2, -1), keepdim=False, *, dtype=None, out=None) -> Tensor Computes a matrix nor |
| HIGH | torch/linalg/__init__.py | 1741 | linalg.svd(A, full_matrices=True, *, driver=None, out=None) -> (Tensor, Tensor, Tensor) Computes the singular value de |
| HIGH | torch/linalg/__init__.py | 1912 | .. seealso:: :func:`torch.linalg.svd` computes the full singular value decomposition. Args: A (Tensor): |
| HIGH | torch/linalg/__init__.py | 1945 | linalg.cond(A, p=None, *, out=None) -> Tensor Computes the condition number of a matrix with respect to a matrix norm. |
| HIGH | torch/linalg/__init__.py | 2268 | .. seealso:: :func:`torch.linalg.solve_triangular` computes the solution of a triangular system of linear |
| HIGH | torch/linalg/__init__.py | 2432 | .. warning:: The LU decomposition is almost never unique, as often there are different permutation matrice |
| HIGH | torch/linalg/__init__.py | 2601 | lu(A, *, pivot=True, out=None) -> (Tensor, Tensor, Tensor) Computes the LU decomposition with partial pivoting of a ma |
| HIGH | torch/linalg/__init__.py | 2691 | linalg.tensorinv(A, ind=2, *, out=None) -> Tensor Computes the multiplicative inverse of :func:`torch.tensordot`. If |
| HIGH | torch/linalg/__init__.py | 2759 | linalg.tensorsolve(A, B, dims=None, *, out=None) -> Tensor Computes the solution `X` to the system `torch.tensordot(A, |
| HIGH | torch/linalg/__init__.py | 2825 | qr(A, mode='reduced', *, out=None) -> (Tensor, Tensor) Computes the QR decomposition of a matrix. Letting :math:`\mat |
| HIGH | torch/nn/functional.py | 2180 | Sample from the Gumbel-Softmax distribution (`Link 1`_ `Link 2`_) and optionally discretize. Args: logi |
| HIGH | torch/nn/functional.py | 6372 | Args: query (Tensor): Query tensor; shape :math:`(N, ..., Hq, L, E)`. key (Tensor): Key tensor; sha |
| HIGH | torch/nn/attention/bias.py | 192 | Handles the logic for computing attention with the specified causal bias. Args: query (Ten |
| HIGH | torch/nn/attention/flex_attention.py | 985 | Creates a BlockMask instance from key-value block information. Args: kv_num_blocks (Tensor |
| HIGH | torch/nn/parallel/distributed.py | 71 | Factory method to create a BucketCapacityConfig from user inputs. Args: bucket_cap_mb: Single bucke |
| HIGH | torch/nn/parallel/distributed.py | 133 | Compute bucket size limits for initial bucketing and rebuilding. Args: static_graph: Whether the co |
| HIGH | torch/nn/utils/stateless.py | 18 | Unties all tied tensors in the module to parameters_and_buffers. This function returns a new untied_parameters |
| HIGH | torch/nn/utils/parametrize.py | 457 | Register a parametrization to a tensor in a module. Assume that ``tensor_name="weight"`` for simplicity. When acces |
| HIGH | torch/nn/utils/parametrize.py | 701 | Remove the parametrizations on a tensor in a module. - If ``leave_parametrized=True``, ``module[tensor_name]`` will |
| HIGH | torch/nn/utils/weight_norm.py | 85 | Apply weight normalization to a parameter in the given module. .. math:: \mathbf{w} = g \dfrac{\mathbf{v}} |
| HIGH | torch/nn/utils/prune.py | 590 | Compute and returns a mask for the input tensor ``t``. Starting from a base ``default_mask`` (which should be a |
| HIGH | torch/nn/utils/prune.py | 699 | Compute and returns a mask for the input tensor ``t``. Starting from a base ``default_mask`` (which should be a |
| HIGH | torch/nn/utils/prune.py | 837 | Apply pruning reparameterization without pruning any units. Applies pruning reparameterization to the tensor corres |
| HIGH | torch/nn/utils/prune.py | 872 | Prune tensor by removing random (currently unpruned) units. Prunes tensor corresponding to parameter called ``name` |
| HIGH | torch/nn/utils/prune.py | 909 | Prune tensor by removing units with the lowest L1-norm. Prunes tensor corresponding to parameter called ``name`` in |
| 140 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/nightly_hotpatch.py | 168 | # Check if the patch was applied successfully |
| LOW | tools/packaging/build_wheel.py | 85 | # Check if it's PyPy (skip it) |
| LOW | tools/packaging/build_wheel.py | 103 | # Check if this version is supported |
| LOW | tools/experimental/torchfuzz/ops_fuzzer.py | 71 | # Check if the operator supports any of the allowed operations |
| LOW | tools/experimental/torchfuzz/multi_process_fuzzer.py | 159 | # Check if output should be ignored and which pattern matched |
| LOW | tools/experimental/torchfuzz/operators/layout.py | 333 | # Check if there's at least one singleton dimension |
| LOW | tools/linter/adapters/grep_linter.py | 201 | # Check if file is too large to compute replacement |
| LOW | tools/linter/adapters/stable_shim_version_linter.py | 137 | # Check if this is the AOTI shim - only enforce versioning on new lines |
| LOW | tools/linter/adapters/stable_shim_version_linter.py | 186 | # Check if this is a newly added line |
| LOW | tools/linter/adapters/_stable_shim_utils.py | 319 | # Check if we're entering a block comment |
| LOW | tools/linter/adapters/_stable_shim_utils.py | 384 | # Check if this #elif has a version condition |
| LOW | tools/linter/adapters/s3_init.py | 42 | # Open the file in binary mode and hash it. |
| LOW | tools/linter/adapters/update_s3.py | 25 | # Open the file in binary mode and hash it. |
| LOW | tools/linter/adapters/newlines_linter.py | 44 | # Check if file is too large |
| LOW | tools/linter/adapters/codespell_linter.py | 98 | # Check if file is too large |
| LOW | tools/amd_build/build_amd.py | 150 | # Check if the compiler is hip-clang. |
| LOW | tools/testing/target_determination/heuristics/utils.py | 170 | # Check if the file extension is in the docs-only set |
| LOW | …ols/lite_interpreter/gen_selected_mobile_ops_header.py | 87 | # Write the file selected_mobile_ops.h with optionally: |
| LOW | …ols/lite_interpreter/gen_selected_mobile_ops_header.py | 126 | # Write the file selected_mobile_ops.h with optionally: |
| LOW | tools/stats/import_test_stats.py | 57 | # Check if the file is new enough (see: FILE_CACHE_LIFESPAN_SECONDS). A real check |
| LOW | tools/stats/check_disabled_tests.py | 77 | # Check if the test is a failure |
| LOW | .ci/docker/common/install_torch_tpu.sh | 56 | # Check if xtrace (set -x) is enabled |
| LOW | .ci/pytorch/common_utils.sh | 63 | # Check if the first argument contains multiple paths separated by spaces |
| LOW | .ci/pytorch/common_utils.sh | 200 | # Check if the wheel has been already been built |
| LOW | .ci/pytorch/build.sh | 141 | # Set ROCM_ARCH to gfx906 for CI builds, if user doesn't override. |
| LOW | .ci/pytorch/test.sh | 166 | # Set OMP_NUM_THREADS to nproc/4 on k8s ARC runners if not already set. |
| LOW | .ci/pytorch/test.sh | 1353 | # Check if regression was consistent (majority of runs) |
| LOW | .ci/pytorch/smoke_test/smoke_test.py | 529 | # Check if NVSHMEM is compiled in current build |
| LOW | .ci/pytorch/smoke_test/smoke_test.py | 545 | # Check if NVSHMEM is available on current system. |
| LOW | .ci/pytorch/smoke_test/check_binary_symbols.py | 417 | # Check if the stable C shim exists |
| LOW | test/test_linalg.py | 188 | # Set filenames to be unique on a per test basis |
| LOW | test/test_reductions.py | 3659 | # Check if reduction happens along the specified dim with and without keepdim. Check with |
| LOW | test/test_reductions.py | 3680 | # Check if function raises error on specified zero'd dimension as reduction dim. |
| LOW | test/test_reductions.py | 3718 | # Check if function raises error on specified zero'd dimension as reduction dim. |
| LOW | test/test_reductions.py | 3745 | # Check if reduction happens along the specified dimension. |
| LOW | test/test_bundled_images.py | 90 | # Check if fb::image_decode_to_NCHW works as expected |
| LOW | test/test_jit.py | 12881 | # Check if the peak sizes at most differ by an empirically obtained factor |
| LOW | test/test_view_ops.py | 1092 | # Check if result is a view of x by comparing data pointers |
| LOW | test/test_view_ops.py | 1094 | # Check if ref is a view of x by comparing data pointers |
| LOW | test/test_custom_ops.py | 282 | # Check if ret is a tuple and has exactly one and the same element |
| LOW | test/test_meta.py | 417 | # Check if it's a view, by testing if any of the returns have |
| LOW | test/test_fx_experimental.py | 920 | # Assign ops to different partitions so a single-output submodule exists. |
| LOW | test/test_modules.py | 103 | # Check if this module creates parameters or registers buffers. |
| LOW | test/test_modules.py | 114 | # Check if a parameter or buffer was created with a tensor not passed to the constructor. |
| LOW | test/test_modules.py | 271 | # Check if the inplace variant of the module gives the same result as the out of place |
| LOW | test/test_transformers.py | 2675 | # Check if masked rows are zero in output |
| LOW | test/test_transformers.py | 2682 | # Check if gradients for masked rows are zero |
| LOW | test/inductor/test_flex_attention.py | 5858 | # Check if kernel code contains warp specialization parameters |
| LOW | test/inductor/test_max_autotune.py | 5758 | # Set env to make it work in CI. |
| LOW | test/inductor/test_cutlass_fallback.py | 18 | # Check if CUTLASS is available |
| LOW | test/inductor/test_cooperative_reductions.py | 130 | # Iterate through elements for comparison |
| LOW | test/inductor/test_max_autotune_blackwell.py | 723 | # Set env to make it work in CI. |
| LOW | test/inductor/test_pad_mm.py | 634 | # Check if any bmm operations had dtype changes |
| LOW | test/inductor/test_ck_backend.py | 503 | # Set env to make it work in CI. |
| LOW | test/inductor/test_subgraph_choice.py | 174 | # Set env to make it work in CI. |
| LOW | test/inductor/test_foreach.py | 1070 | # Set requires_grad to be False to avoid mutating a leaf variable |
| LOW | test/inductor/test_op_dtype_prop.py | 194 | # Check if the op's output should be upcasted/downcasted. |
| LOW | test/inductor/test_aot_inductor_package.py | 405 | # Check if the .so file was build successfully |
| LOW | test/inductor/test_aot_inductor_package.py | 448 | # Check if the .so file was build successfully |
| LOW | test/inductor/test_aot_inductor_package.py | 487 | # Check if the .a file was build successfully |
| 431 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | setup.py | 42 | # if used in conjunction with DEBUG or REL_WITH_DEB_INFO, will also |
| LOW | tools/optional_submodules.py | 71 | # Otherwise just call top-level function of choice |
| MEDIUM | tools/experimental/torchfuzz/visualize_graph.py | 79 | # Create comprehensive label |
| LOW | tools/experimental/torchfuzz/operators/layout.py | 69 | # For single-dim input, just use the exact element count |
| LOW | tools/experimental/torchfuzz/operators/layout.py | 150 | # For single-dim input, just use the exact element count |
| LOW | tools/linter/adapters/gb_registry_linter.py | 210 | # Empty registry, just add all entries |
| MEDIUM | tools/autograd/gen_python_functions.py | 596 | # find and leverage the original ATen signature (to which it delegates |
| MEDIUM | tools/autograd/gen_autograd_functions.py | 196 | # `grads` in order to utilize and apply the existing derivative definitions |
| MEDIUM | tools/autograd/gen_autograd_functions.py | 684 | # note(crcrpar): [nuanced return type of out-of-place foreach functions] |
| MEDIUM | tools/autograd/gen_variable_type.py | 426 | # pertaining to its output: |
| MEDIUM | tools/autograd/gen_variable_type.py | 1544 | # See Note [nuanced return type of out-of-place foreach functions] |
| LOW | tools/autograd/gen_variable_type.py | 2079 | # View ops create fw_grad that already is a view of the base's fw_grad so just use that |
| LOW | tools/autograd/gen_trace_type.py | 180 | # For inplace: just add the input to the end to confirm with the JIT schema |
| MEDIUM | tools/alerts/create_alerts.py | 182 | # Creates a Dict of Job Name -> [JobData]. Essentially a Column in HUD |
| LOW | tools/code_coverage/package/oss/init.py | 128 | # if this argument is specified, just return itself |
| MEDIUM | tools/stats/upload_test_stats.py | 67 | # To do this, we leverage an implementation detail of how we write out |
| LOW | .ci/docker/manywheel/s390_scripts/build.sh | 51 | # So let's just use the same one pip and everyone uses |
| LOW | .ci/docker/common/install_nccl.sh | 6 | # so we can just use the default NCCL version. |
| LOW | .ci/manywheel/build_common.sh | 177 | # Note - just use whichever python we happen to be on |
| LOW | .ci/pytorch/common_utils.sh | 145 | # There won't be nvidia-smi in nogpu tests, so just set TORCH_CUDA_ARCH_LIST to the default |
| MEDIUM | .ci/pytorch/run_tests.sh | 7 | # Essentially runs pytorch/test/run_test.py, but keeps track of which tests to |
| MEDIUM | test/test_mps.py | 6238 | # Essentially remained over integral types should rely on integers ops |
| LOW | test/test_mps.py | 14282 | # fail, so just set CWD to this script's directory |
| LOW | test/test_mps.py | 14327 | # fail, so just set CWD to this script's directory |
| LOW | test/test_python_dispatch.py | 2229 | e.contiguous() # this will just return the original TensorImpl since is_contiguous = True |
| LOW | test/test_import_stats.py | 7 | # time is greater than a certain threshold, but for now we just use them |
| LOW | test/test_tensor_creation_ops.py | 2615 | # instead of repeating this calculation, we just use empty_strided which does the same |
| LOW | test/test_pytree.py | 897 | # fail, so just set CWD to this script's directory |
| MEDIUM | test/test_custom_ops.py | 1135 | # Not comprehensive (it doesn't need to be), just a check that our mechanism works |
| LOW | test/test_stateless.py | 905 | # fail, so just set CWD to this script's directory |
| LOW | test/test_stateless.py | 927 | # fail, so just set CWD to this script's directory |
| MEDIUM | test/test_jit_llga_fuser.py | 61 | # so we disable AMP for JIT & leverage eager-mode AMP. |
| LOW | test/test_cuda.py | 6664 | # fail, so just set CWD to this script's directory |
| LOW | test/test_cuda.py | 3036 | # fail, so just set CWD to this script's directory |
| MEDIUM | test/run_test.py | 434 | # in that they utilize the usual python test infrastructure. |
| LOW | test/run_test.py | 514 | # to just return successfully here |
| MEDIUM | test/test_dlpack.py | 814 | # Run the comprehensive C++ test |
| MEDIUM | test/test_meta.py | 788 | # useful for more comprehensive testing e.g., as seen in |
| MEDIUM | test/test_binary_ufuncs.py | 1857 | # in a binary operation in conjunction with a Tensor on all |
| MEDIUM | test/test_autograd.py | 2975 | # Definitely pick one tensor to add |
| LOW | test/test_autograd.py | 4740 | # This op will just return grad_output two times in backward |
| LOW | test/test_autograd.py | 11847 | # fail, so just set CWD to this script's directory |
| MEDIUM | test/test_nestedtensor.py | 8995 | # OpInfo-based NJT tests. These tests utilize an NJT-specific op_db generated from the standard |
| LOW | test/test_testing.py | 2452 | # fail, so just set CWD to this script's directory |
| MEDIUM | test/inductor/test_deterministic.py | 138 | # Halving sweep, matching what the benchmark harness does. |
| LOW | test/inductor/test_compiled_autograd.py | 175 | # fail, so just set CWD to this script's directory |
| LOW | test/inductor/test_triton_kernels.py | 4993 | # we can just pass the function 'f' for dynamo |
| LOW | test/inductor/test_triton_kernels.py | 5277 | # we can just pass the function 'f' for dynamo |
| MEDIUM | test/inductor/test_max_autotune_blackwell.py | 292 | # Fundamentally we should fix the triton_blackwell_ws_persistent_device_tma template |
| MEDIUM | test/inductor/test_cpu_repro.py | 450 | # The cpp_wrapper C-shim can't utilize the Python error API, so error |
| MEDIUM | test/inductor/test_control_flow.py | 56 | # Simple robust loss: abs values + small constant to avoid inf/nan |
| MEDIUM | test/inductor/test_torchinductor.py | 15841 | # odd number on purpose to trigger comprehensive padding |
| MEDIUM | test/inductor/test_torchinductor_opinfo_properties.py | 547 | """Get sample inputs from OpInfo using reference_inputs for comprehensive coverage.""" |
| MEDIUM | test/inductor/test_torchinductor_opinfo_properties.py | 548 | # Use reference_inputs for more comprehensive test coverage |
| LOW | test/onnx/test_pytorch_onnx_onnxruntime.py | 13816 | # Otherwise the entire model will just return a constant and not have |
| LOW | test/distributed/test_c10d_common.py | 2205 | # fail, so just set CWD to this script's directory |
| MEDIUM | test/distributed/launcher/api_test.py | 89 | """A wrapper function for class `elastic_launch.` in order to make multiprocess returns correct exit code.""" |
| LOW | test/distributed/elastic/multiprocessing/api_test.py | 540 | # Using mock since we cannot just set exitcode on process |
| MEDIUM | …istributed/_composable/fsdp/test_fully_shard_memory.py | 86 | # With the aforementioned PR, and with shape (1, 768), |
| MEDIUM | test/distributed/tensor/test_dtensor_ops.py | 100 | # factory/creation ops: test harness can't convert non-tensor args to DTensor |
| 233 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/test_autograd.py | 8180 | # Step 1: Checkpointed forward with batch_size=4 → static graph G0 |
| LOW | test/test_autograd.py | 8184 | # Step 2: Non-checkpointed call with batch_size=7 triggers automatic |
| LOW | test/test_autograd.py | 8192 | # Step 3: Backward. Checkpoint recomputes fn(x) but now hits G1 |
| LOW | test/test_testing.py | 856 | # We need to check if this test is still needed or if this behavior is now enabled by default. |
| LOW | test/cpp_extensions/cudnn_extension.cpp | 43 | // Step 1: Check inputs. This will throw an error if inputs are invalid, so no |
| LOW | test/cpp_extensions/cudnn_extension.cpp | 46 | // Step 2: Create descriptors |
| LOW | test/cpp_extensions/cudnn_extension.cpp | 59 | // Step 3: Apply CuDNN function |
| LOW | test/cpp_extensions/cudnn_extension.cpp | 71 | // Step 4: Destroy descriptors |
| LOW | test/cpp_extensions/cudnn_extension.cpp | 73 | // Step 5: Return something (optional) |
| LOW | test/distributed/tensor/test_redistribute.py | 3072 | # Step 1: reduce_scatter on mesh dim 0 (size 2) |
| LOW | test/distributed/tensor/test_redistribute.py | 3076 | # Step 2: reduce_scatter on mesh dim 1 (size 3) |
| LOW | test/distributed/tensor/parallel/test_tp_examples.py | 222 | # Step 3: Run test by comparing outputs from single-gpu and multi-gpu models. |
| LOW | test/distributed/tensor/parallel/test_tp_examples.py | 305 | ) # Step 1: Initialize single-gpu models. |
| LOW | test/distributed/tensor/parallel/test_tp_examples.py | 308 | ) # Step 2: Setup tp model, place onto device mesh. |
| LOW | test/distributed/tensor/parallel/test_tp_examples.py | 311 | ) # Step 3: Setup optimizers for both models |
| LOW | test/distributed/tensor/parallel/test_tp_examples.py | 433 | ) # Step 1: Initialize single-gpu models. |
| LOW | test/distributed/tensor/parallel/test_tp_examples.py | 436 | ) # Step 2: Setup tp model, place onto device mesh. |
| LOW | test/distributed/tensor/parallel/test_tp_examples.py | 439 | ) # Step 3: Setup optimizers for both models |
| LOW | test/distributed/tensor/parallel/test_tp_examples.py | 442 | ) # Step 4: set `requires_grad` patterns |
| LOW | test/dynamo/test_repros.py | 7364 | # Step 1: Compile a static shapes graph |
| LOW | test/dynamo/test_repros.py | 7373 | # Step 2: Compile a dynamic shapes graph |
| LOW | test/dynamo/test_repros.py | 7383 | # Step 3: Run with Step 1's inputs |
| LOW | test/dynamo/test_repros.py | 7406 | # Step 1: Compile a static shapes graph |
| LOW | test/dynamo/test_repros.py | 7415 | # Step 2: Compile a dynamic shapes graph |
| LOW | test/dynamo/test_repros.py | 7425 | # Step 3: Run with Step 1's inputs |
| LOW | test/profiler/test_profiler.py | 4382 | # Step 3: under the patch, RECORD -> DEVICE_STOPPED fires stop_trace + |
| LOW | torch/_custom_ops.py | 61 | >>> # Step 1: define the custom op. |
| LOW | torch/_custom_ops.py | 72 | >>> # Step 2: Register an implementation for various PyTorch subsystems |
| LOW | torch/_custom_ops.py | 144 | >>> # Step 1: define the custom op. |
| LOW | torch/_custom_ops.py | 155 | >>> # Step 2: Register an implementation for various PyTorch subsystems |
| LOW | torch/_ops.py | 412 | # Step 1: dispatch on any user TorchDispatchModes |
| LOW | torch/_ops.py | 440 | # Step 2: dispatch on any subclasses |
| LOW | torch/_ops.py | 672 | # When we are unsetting a mode, we need to check if there is |
| LOW | torch/_ops.py | 722 | # When we are setting a mode, we need to check if there is |
| LOW | torch/csrc/dynamo/init.cpp | 357 | // even if __next__ is not defined, so we need to check if the method is truly |
| LOW | torch/csrc/utils/python_arg_parser.cpp | 574 | // Step 1: Try to dispatch based on the mode stack, *ignoring* infra |
| LOW | torch/csrc/utils/python_arg_parser.cpp | 624 | // Step 1: Try to dispatch on any user TorchDispatchModes (including infra |
| LOW | torch/csrc/utils/python_arg_parser.cpp | 635 | // Step 2: Try to dispatch based on any user subclasses, |
| LOW | torch/csrc/jit/tensorexpr/loopnest.cpp | 1975 | // We need to check if fusing the loops results in a loop-carried dependence. |
| LOW | torch/csrc/lazy/ts_backend/ts_eager_fallback.cpp | 222 | // Step 1: Convert all non-eager tensor inputs into eager tensors and put them |
| LOW | torch/csrc/lazy/ts_backend/ts_eager_fallback.cpp | 254 | // Step 2: Call the underlying eager implementation of the operator |
| LOW | torch/csrc/lazy/ts_backend/ts_eager_fallback.cpp | 257 | // Step 3: We need to take special care to handle mutable aliases properly: |
| LOW | torch/csrc/lazy/ts_backend/ts_eager_fallback.cpp | 268 | // Step 4: Convert any eager output tensors back to the original input device. |
| LOW | torch/_functorch/eager_transforms.py | 661 | # Step 1: Construct grad_outputs by splitting the standard basis |
| LOW | torch/_functorch/eager_transforms.py | 778 | # Step 2: The returned jacobian is one big tensor per input. In this step, |
| LOW | torch/_functorch/eager_transforms.py | 792 | # Step 3: Right now, `jacobian` is a List[List[Tensor]]. |
| LOW | torch/_functorch/_aot_autograd/functional_utils.py | 387 | # For outputs aliasing inputs, we need to check if the requires-gradness has changed. |
| LOW | torch/_functorch/_aot_autograd/functional_utils.py | 389 | # For outputs aliasing inputs, we need to check if the dtype has changed. |
| LOW | …rch/_functorch/_aot_autograd/graph_capture_wrappers.py | 1338 | # Step 1: wrap tensor inputs into subclasses if necessary |
| LOW | …rch/_functorch/_aot_autograd/graph_capture_wrappers.py | 1343 | # Step 2: call the inner function, with our (maybe subclass) inputs |
| LOW | …rch/_functorch/_aot_autograd/graph_capture_wrappers.py | 1376 | # Step 3: Unwrap any subclass outputs back into dense tensors |
| LOW | …ctorch/_activation_offloading/activation_offloading.py | 767 | # Step 1: Identify reload patterns |
| LOW | …ctorch/_activation_offloading/activation_offloading.py | 772 | # Step 2: Reorder nodes by directly manipulating the graph |
| LOW | …ctorch/_activation_offloading/activation_offloading.py | 791 | # Step 1: Decide which nodes to offload and mark them |
| LOW | …ctorch/_activation_offloading/activation_offloading.py | 800 | # Step 2: Add offload and reload nodes to the graphs |
| LOW | torch/_export/utils.py | 1368 | # Step 1: Materialize all ops from C++ dispatcher |
| LOW | torch/_export/utils.py | 1371 | # Step 2: Query all ops from python dispatcher |
| LOW | torch/_export/serde/schema_check.py | 869 | # Step 1: Detect major schema updates. |
| LOW | torch/_export/serde/schema_check.py | 896 | # Step 2: Detect minor schema updates. |
| LOW | torch/onnx/_internal/exporter/_core.py | 1657 | # Step 4: (verify=True) Check the ONNX model with ONNX checker |
| 191 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/test_datapipe.py | 3741 | |
| MEDIUM | test/test_functionalization.py | 769 | |
| MEDIUM | test/test_functionalization.py | 770 | |
| MEDIUM | test/test_functionalization.py | 771 | |
| MEDIUM | test/test_functionalization.py | 772 | |
| MEDIUM | test/test_jit.py | 14077 | |
| MEDIUM | test/test_jit.py | 9927 | |
| MEDIUM | test/test_jit_fuser.py | 734 | |
| MEDIUM | test/test_jit_fuser.py | 735 | |
| MEDIUM | test/test_jit_fuser.py | 737 | |
| MEDIUM | test/test_jit_fuser.py | 739 | |
| MEDIUM | test/test_jit_fuser.py | 742 | |
| MEDIUM | test/test_jit_fuser.py | 746 | |
| MEDIUM | test/test_autograd.py | 15593 | |
| MEDIUM | test/test_fx.py | 4949 | |
| MEDIUM | test/test_fx.py | 3810 | |
| MEDIUM | test/inductor/test_ordered_set.py | 25 | |
| MEDIUM | test/inductor/test_ordered_set.py | 976 | |
| MEDIUM | test/onnx/test_utility_funs.py | 109 | |
| MEDIUM | test/dynamo/test_misc.py | 9347 | |
| MEDIUM | test/dynamo/test_misc.py | 12038 | |
| MEDIUM | test/dynamo/test_generator.py | 1237 | |
| MEDIUM | test/dynamo/test_exceptions.py | 535 | |
| MEDIUM | test/dynamo/test_guard_manager.py | 886 | |
| MEDIUM | test/quantization/fx/test_quantize_fx.py | 2564 | |
| MEDIUM | test/quantization/fx/test_quantize_fx.py | 2566 | |
| MEDIUM | test/quantization/fx/test_quantize_fx.py | 2569 | |
| MEDIUM | test/cpython/v3_13/test_itertools.py | 2723 | |
| MEDIUM | test/cpython/v3_13/test_generators.py | 566 | |
| MEDIUM | test/cpython/v3_13/test_generators.py | 577 | |
| MEDIUM | test/cpython/v3_13/test_exceptions.py | 1836 | |
| MEDIUM | test/cpython/v3_13/test_set.py | 77 | |
| MEDIUM | test/cpython/v3_13/test_set.py | 1109 | |
| MEDIUM | test/cpython/v3_13/test_deque.py | 40 | |
| MEDIUM | test/cpython/v3_13/test_builtin.py | 1288 | |
| MEDIUM | test/jit/test_backends.py | 595 | |
| MEDIUM | test/profiler/test_memory_profiler.py | 738 | |
| MEDIUM | test/profiler/test_memory_profiler.py | 739 | |
| MEDIUM | test/profiler/test_memory_profiler.py | 740 | |
| MEDIUM | test/profiler/test_memory_profiler.py | 742 | |
| MEDIUM | test/profiler/test_memory_profiler.py | 748 | |
| MEDIUM | test/profiler/test_memory_profiler.py | 763 | |
| MEDIUM | test/profiler/test_memory_profiler.py | 767 | |
| MEDIUM | test/profiler/test_memory_profiler.py | 798 | |
| MEDIUM | test/profiler/test_memory_profiler.py | 802 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 501 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 987 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 988 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 989 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 992 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1003 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1004 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1005 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1007 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1013 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1014 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1151 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1152 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1207 | |
| MEDIUM | test/torch_np/numpy_tests/core/test_indexing.py | 1209 | |
| 25 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/test/heuristics/test_heuristics.py | 256 | def helper(test_file: str, changed_file: str) -> bool: |
| LOW | test/test_mps.py | 3409 | def helper(binary_op): |
| LOW | test/test_mps.py | 4370 | def helper(dtype): |
| LOW | test/test_mps.py | 4381 | def helper(dtype): |
| LOW | test/test_mps.py | 257 | def helper(model_cpu, model_mps, dtype, iterations, batch_size, atol=3e-4, rtol=1e-5): |
| LOW | test/test_mps.py | 321 | def helper(model, optimizer, scaler, device, input, target, apply_grad_transform=False): |
| LOW | test/test_mps.py | 997 | def helper(val, shape, dtype): |
| LOW | test/test_mps.py | 1213 | def helper(dtype): |
| LOW | test/test_mps.py | 1362 | def helper(input_shape, batch1_shape, batch2_shape): |
| LOW | test/test_mps.py | 1409 | def helper(bias_shape): |
| LOW | test/test_mps.py | 1696 | def helper(shape, ks, padding=0, dilation=1, ceil_mode=False, return_indices=False, test_ties=False): |
| LOW | test/test_mps.py | 1770 | def helper(size, memory_format): |
| LOW | test/test_mps.py | 1796 | def helper(shape): |
| LOW | test/test_mps.py | 1905 | def helper(shape, channels_last=False): |
| LOW | test/test_mps.py | 1922 | def helper(shape, eps=1, momentum=0.1, wts=False, training=False, channels_last=False, |
| LOW | test/test_mps.py | 2398 | def helper(input_shape, normalized_shape, eps=1e-05, elementwise_affine=True, dtype=torch.float32, non_contiguou |
| LOW | test/test_mps.py | 2461 | def helper(shape, eps=1, momentum=0.1, wts=False, channels_last=False, track_running_stats=True, test_module=Fal |
| LOW | test/test_mps.py | 2638 | def helper(dim, layer='linear', dtype=torch.float32): |
| LOW | test/test_mps.py | 2708 | def helper(input_shape, wt_shape, |
| LOW | test/test_mps.py | 2781 | def helper(input_shape, wt_shape, |
| LOW | test/test_mps.py | 2849 | def helper(shape): |
| LOW | test/test_mps.py | 2874 | def helper(shape): |
| LOW | test/test_mps.py | 2898 | def helper(threshold, value, num_elems, inplace=False, requires_grad=True): |
| LOW | test/test_mps.py | 2925 | def helper(shape): |
| LOW | test/test_mps.py | 2958 | def helper(shape, value, xtype=torch.float32, ytype=None, ztype=None): |
| LOW | test/test_mps.py | 2995 | def helper(shape, value): |
| LOW | test/test_mps.py | 3021 | def helper(shape, value): |
| LOW | test/test_mps.py | 3211 | def helper(shape): |
| LOW | test/test_mps.py | 3331 | def helper(x_tensor, y_func, z_func, r_func=None): |
| LOW | test/test_mps.py | 3424 | def helper(operator): |
| LOW | test/test_mps.py | 3516 | def helper(shape, repeats): |
| LOW | test/test_mps.py | 3615 | def helper(shape, dtype=torch.float32, num_repeats=torch.Tensor(), dim=None): |
| LOW | test/test_mps.py | 3640 | def helper(dtype): |
| LOW | test/test_mps.py | 3740 | def helper(data, to_dtype): |
| LOW | test/test_mps.py | 3758 | def helper(data, to_dtype): |
| LOW | test/test_mps.py | 3871 | def helper(dtype): |
| LOW | test/test_mps.py | 3928 | def helper(x, return_inverse, return_counts): |
| LOW | test/test_mps.py | 3948 | def helper(x, dim, return_inverse, return_counts): |
| LOW | test/test_mps.py | 4152 | def helper(src_shape, dst_shape, src_dtype, dst_dtype): |
| LOW | test/test_mps.py | 4290 | def helper(dtype, noncontiguous, dim): |
| LOW | test/test_mps.py | 4335 | def helper(dtype): |
| LOW | test/test_mps.py | 4353 | def helper(dtype): |
| LOW | test/test_mps.py | 4398 | def helper(shape, dtype): |
| LOW | test/test_mps.py | 4598 | def helper(n, c): |
| LOW | test/test_mps.py | 4615 | def helper(shape, reduction): |
| LOW | test/test_mps.py | 4644 | def helper(shape, reduction): |
| LOW | test/test_mps.py | 4714 | def helper(shape, reduction): |
| LOW | test/test_mps.py | 4970 | def helper(shape): |
| LOW | test/test_mps.py | 4983 | def helper(shape): |
| LOW | test/test_mps.py | 4994 | def helper(shape): |
| LOW | test/test_mps.py | 5007 | def helper(shape): |
| LOW | test/test_mps.py | 5018 | def helper(shape): |
| LOW | test/test_mps.py | 5031 | def helper(shape): |
| LOW | test/test_mps.py | 5042 | def helper(shape): |
| LOW | test/test_mps.py | 5055 | def helper(shape): |
| LOW | test/test_mps.py | 5066 | def helper(shape): |
| LOW | test/test_mps.py | 5079 | def helper(shape): |
| LOW | test/test_mps.py | 5108 | def helper(n, c, h, w, reduction_type, dtype=torch.float32): |
| LOW | test/test_mps.py | 5236 | def helper(n, c, h, w, dtype=torch.float32): |
| LOW | test/test_mps.py | 5361 | def helper(shape): |
| 198 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/autograd/derivatives.yaml | 37 | # If None of the output is differentiable, you can also add the function |
| LOW | test/test_jit.py | 455 | # you are deleting `constants.pkl`, make sure to update `torch.serialization.load` |
| LOW | test/test_jit.py | 2536 | # NB: We make sure to pass in a batch with a different max sequence |
| MEDIUM | test/test_fx.py | 4032 | # Used to test that you can use your own placeholder class |
| LOW | test/inductor/test_triton_kernels.py | 5517 | # so we wanna make sure to correctly handle edge cases with tricky line breaks |
| MEDIUM | test/inductor/test_profiler.py | 83 | # Debugging tips: you can add prof.export_chrome_trace("test.json") inline in |
| LOW | test/dynamo/test_repros.py | 1537 | # NB: When you remove the expectedFailure, don't forget to |
| LOW | test/dynamo/test_repros.py | 1537 | # NB: When you remove the expectedFailure, don't forget to |
| LOW | test/quantization/fx/test_model_report_fx.py | 1958 | # if they passed in fusion parameter, make sure to test that |
| MEDIUM | test/ao/sparsity/test_structured_sparsifier.py | 1004 | # Manually set the filter weights for demonstration purposes |
| LOW | .claude/skills/triaging-issues/labels.json | 416 | "description": "Optimization passes written in FX (don't forget to select a more specific label)" |
| MEDIUM | torch/torch_version.py | 38 | # Ideally this should work for most cases by attempting to group |
| LOW | torch/headeronly/core/ScalarType.h | 340 | // Don't forget to extend this when adding new QInt types |
| MEDIUM | torch/csrc/jit/backends/backend_debug_info.h | 51 | * don't serialize this info as part of LoweredModule as mentioned earlier. |
| MEDIUM | torch/_functorch/_aot_autograd/graph_compile.py | 987 | # Step 1) - Get the `joint_hop_gm`. As mentioned earlier, the |
| LOW | torch/_subclasses/meta_utils.py | 922 | # Need to make sure to resize the meta storage too. |
| LOW | torch/nn/utils/parametrizations.py | 135 | # We always make sure to always copy Q in every path |
| MEDIUM | torch/nn/modules/loss.py | 2194 | >>> S_min = 10 # Minimum target length, for demonstration purposes |
| LOW | torch/nn/modules/activation.py | 1362 | # When lifting this restriction, don't forget to either |
| LOW | torch/nn/modules/activation.py | 1362 | # When lifting this restriction, don't forget to either |
| LOW | …nnx/_internal/torchscript_exporter/symbolic_opset11.py | 979 | # make sure to cast other to self's type |
| LOW | …nnx/_internal/torchscript_exporter/symbolic_opset11.py | 1013 | # make sure to cast other to self's type |
| LOW | …onnx/_internal/torchscript_exporter/symbolic_opset9.py | 2159 | # make sure to cast other to self's type |
| LOW | …onnx/_internal/torchscript_exporter/symbolic_opset9.py | 2188 | # make sure to cast other to self's type |
| LOW | …nnx/_internal/torchscript_exporter/symbolic_opset12.py | 77 | # make sure to cast other to self's type |
| LOW | torch/distributed/elastic/rendezvous/etcd_rendezvous.py | 886 | # make sure you don't call any long-blocking methods that do not |
| LOW | torch/distributed/tensor/_dtensor_spec.py | 448 | # use, where we make sure to update the hash when the `tensor_meta` |
| LOW | torch/fx/graph.py | 2005 | # When generating Python code, we need to make sure to name things |
| MEDIUM | torch/fx/experimental/symbolic_shapes.py | 1526 | # (1) If you can use a higher level combinator prefer using those instead, they are definitely safe (modulo short-circui |
| LOW | torch/fx/experimental/proxy_tensor.py | 701 | # from_real_tensor to create fake values (don't forget to |
| LOW | torch/fx/experimental/proxy_tensor.py | 701 | # from_real_tensor to create fake values (don't forget to |
| LOW | torch/fx/passes/reinplace.py | 765 | # When that happens, we need to make sure to keep our |
| MEDIUM | torch/optim/lr_scheduler.py | 368 | >>> # Alternatively, you can use a single lambda function for all groups. |
| LOW | torch/_inductor/cpp_builder.py | 2466 | # When we build remotely, we need to make sure to carefully copy any files |
| LOW | torch/_inductor/compile_fx_ext.py | 639 | # Since our metrics were gathered in a subprocess make sure to add them |
| LOW | torch/_inductor/codegen/common.py | 1243 | # NB: if you add a new special function, don't forget to update |
| LOW | torch/_inductor/codegen/common.py | 1243 | # NB: if you add a new special function, don't forget to update |
| LOW | torch/utils/_python_dispatch.py | 956 | # Next: we need to make sure to return inputs directly, if the output is a mutable alias (e.g. add_()). |
| LOW | torch/utils/hipify/hipify_python.py | 734 | # make sure to check the end-of-word marker present |
| LOW | torch/utils/data/sampler.py | 73 | # implementing a `__len__` method. In such cases, we must make sure to not |
| MEDIUM | torch/_dynamo/backends/onnxrt.py | 34 | # " (4) If it returns `True`, then you can use `onnxrt` backend.\n" |
| MEDIUM | benchmarks/dynamo/common.py | 1027 | # Hypothetically you can use this from other places, but it's currently |
| LOW | .github/scripts/test_trymerge.py | 8 | # GraphQL queries in trymerge.py, please make sure to delete `gql_mocks.json` |
| LOW | aten/src/ATen/OpaqueTensorImpl.h | 49 | // unnecessary; don't forget to change that if needed! |
| LOW | aten/src/ATen/SparseTensorImpl.cpp | 50 | // unnecessary; don't forget to change that if needed! |
| MEDIUM | torchgen/api/types/types_base.py | 179 | # which you can use to figure out if a given Binding is appropriate |
| LOW | c10/core/StorageImpl.h | 106 | // unnecessary; don't forget to change that if needed! |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | test/test_view_ops.py | 1105 | # Test various configurations - one per line as requested |
| HIGH | test/quantization/fx/test_quantize_fx.py | 8938 | # reshape will be quantized to fp16 as requested by this qconfig |
| HIGH | c10/util/Backtrace.cpp | 226 | // Skip as many frames as requested. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/vendoring/quack/vendor.sh | 4 | # Usage: |
| LOW | torch/library.h | 961 | /// Example usage: |
| LOW | torch/library.h | 1038 | /// Example usage: |
| LOW | torch/csrc/api/include/torch/python.h | 198 | /// Example usage: |
| LOW | torch/csrc/api/include/torch/python.h | 234 | /// Example usage: |
| LOW | torch/csrc/api/include/torch/nn/modules/common.h | 6 | /// Example usage: |
| LOW | torch/nn/attention/flex_attention.py | 48 | # Usage: |
| LOW | torch/_inductor/config.py | 177 | # Example usage: |
| LOW | torch/_inductor/fuzzer.py | 540 | # Example usage: |
| LOW | torch/testing/_internal/common_device_type.py | 975 | # Usage: |
| LOW | torch/testing/_internal/common_device_type.py | 987 | # Usage: |
| LOW | torch/testing/_internal/common_device_type.py | 1219 | # Example usage: |
| LOW | torch/_dynamo/variables/higher_order_ops.py | 141 | # Example usage: |
| LOW | aten/src/ATen/TensorMeta.h | 17 | // Example usage: |
| LOW | aten/src/ATen/TensorMeta.h | 49 | // Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/cpp/lazy/test_misc.cpp | 45 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut at suscipit purus."), |
| LOW | test/cpp/lazy/test_misc.cpp | 45 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut at suscipit purus."), |
| LOW | test/cpp/lazy/test_misc.cpp | 47 | "Lorem Jpsum dolor sit amet, consectetur adipiscing elit. Ut at suscipit purus.")); |