Repository Analysis

PaddlePaddle/Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)

15.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of PaddlePaddle/Paddle, a C++ project with 24,015 GitHub stars. SynthScan v2.0 examined 2,328,362 lines of code across 10251 source files, recording 28337 pattern matches distributed across 26 syntactic categories. The overall adjusted score of 15.0 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

15.0
Adjusted Score
15.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
24.0K
Stars
C++
Language
2.3M
Lines of Code
10.3K
Files
28.3K
Pattern Hits
2026-07-14
Scan Date
0.19
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 39HIGH 1903MEDIUM 492LOW 25903

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 28337 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block9841 hits · 9773 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWsetup.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOW.cmake-format.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOW.cmake-format.py21COMMENT
LOWtools/diff_api.py1#!/usr/bin/env pythonCOMMENT
LOWtools/gen_pybind11_stub.py1# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/test_print_signatures.py1#! /usr/bin/env pythonCOMMENT
LOWtools/gen_tensor_stub.py1# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/count_api_without_core_ops.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/get_ut_mem_map.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/get_op_list.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/get_single_test_cov.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/CheckPRTemplate.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/check_op_kernel_same_dtypes.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/statistics_UT_resource.sh1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/timeline.py1# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/op_benchmark_count.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/gen_ut_cmakelists.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/get_quick_disable_lt.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/type_checking.py1# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/check_pr_approval.py1# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/nvcc_lazy.sh1#!/usr/bin/env bashCOMMENT
LOWtools/pyCov_multithreading.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/gen_alias_mapping.sh1#!/usr/bin/env bashCOMMENT
LOWtools/gen_alias_mapping.sh21# Arguments:COMMENT
LOWtools/diff_use_default_grad_op_maker.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/get_pr_ut.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/__init__.py1# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/timeout_debug_help.sh1#!/bin/bashCOMMENT
LOWtools/check_api_compatible.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/static_mode_white_list.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/reduce_lib_size_util.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/analysisPyXml.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/sampcd_processor.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/check_sequence_op.sh1#!/bin/bashCOMMENT
LOWtools/handle_h_cu_file.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/print_op_desc.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/check_op_desc.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/prune_for_jetson.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/gpups_test.sh1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/check_aten_ops_signature.py1# Copyright (c) 2026 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/get_op_list.sh1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/get_pr_title.py1# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/test_runner.py1# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/summary_env.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/document_preview.sh1#!/bin/bashCOMMENT
LOWtools/jetson_infer_op.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/op_benchmark.sh1#!/bin/bashCOMMENT
LOWtools/diff_unittest.py1#!/usr/bin/env pythonCOMMENT
LOWtools/check_code_block_format.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/parse_kernel_info.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/check_op_register_type.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/check_added_ut.sh1#!/bin/bashCOMMENT
LOWtools/test_run_by_protobuf_3.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/check_abi_compatibility.py1# Copyright (c) 2026 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/gpu_kernel_compare.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/test_check_pr_approval.py1#! /usr/bin/env pythonCOMMENT
LOWtools/check_gpu_kernel_approval.sh1#!/bin/bashCOMMENT
LOWtools/parallel_UT_rule.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/check_only_change_python_files.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
9781 more matches not shown…
Docstring Block Structure1588 hits · 7205 pts
SeverityFileLineSnippetContext
HIGHtools/sampcd_processor_utils.py222A DocTester can be used to test the codeblock from the API's docstring. Attributes: style(str): `style` shSTRING
HIGHtest/tokenizer/bert_tokenizer.py44 Tokenizes a piece of text using basic tokenizer. Args: text (str): A piece of text. STRING
HIGHtest/tokenizer/bert_tokenizer.py188 Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perSTRING
HIGHtest/tokenizer/bert_tokenizer.py374 Converts a string to a list of tokens. Args: text (str): The text to be tokenized. STRING
HIGHtest/legacy_test/nets.py280 :api_attr: Static Graph **This api takes input as an DenseTensor. If input is a Tensor, please use** :STRING
HIGHtest/dygraph_to_static/simnet_dygraph_model.py236 This interface is used to construct a callable object of the ``FC`` class. For more details, refer to code examSTRING
HIGHpython/paddle/_paddle_docs.py60 Acos Activation Operator. .. math:: out = cos^{-1}(x) Args: x (Tensor): Input of Acos opeSTRING
HIGHpython/paddle/_paddle_docs.py99 Acosh Activation Operator. .. math:: out = acosh(x) Args: x (Tensor): Input of Acosh operaSTRING
HIGHpython/paddle/_paddle_docs.py138 Sinh Activation Operator. .. math:: out = sinh(x) Args: x (Tensor): Input of Sinh operatorSTRING
HIGHpython/paddle/_paddle_docs.py179 Computes the minimum of tensor elements over the given axis Note: The difference between min and amin STRING
HIGHpython/paddle/_paddle_docs.py313 Computes both the minimum and maximum of tensor elements over the given axis. Note: Like amin and amaxSTRING
HIGHpython/paddle/_paddle_docs.py360 Computes the maximum of tensor elements over the given axis. Note: The difference between max and amaxSTRING
HIGHpython/paddle/_paddle_docs.py495 Computes the ``logical and`` of tensor elements over the given dimension. Args: x (Tensor): An N-D TenSTRING
HIGHpython/paddle/_paddle_docs.py567 Computes the indices of the max elements of the input tensor's element along the provided axis. Args: STRING
HIGHpython/paddle/_paddle_docs.py616 Computes the indices of the min elements of the input tensor's element along the provided axis. Args: STRING
HIGHpython/paddle/_paddle_docs.py664 Arctangent Operator. .. math:: out = tan^{-1}(x) Args: x (Tensor): Input of Atan operator,STRING
HIGHpython/paddle/_paddle_docs.py703 Atanh Activation Operator. .. math:: out = atanh(x) Args: x (Tensor): Input of Atan operatSTRING
HIGHpython/paddle/_paddle_docs.py743Element-wise arctangent of x/y with consideration of the quadrant. Equation: .. math:: atan2(xSTRING
HIGHpython/paddle/_paddle_docs.py799 Calculates the log to the base 2 of the given input tensor, element-wise. .. math:: Out = \log_2x STRING
HIGHpython/paddle/_paddle_docs.py854 Calculates the log to the base 10 of the given input tensor, element-wise. .. math:: Out = \log_{10}xSTRING
HIGHpython/paddle/_paddle_docs.py909 Asinh Activation Operator. .. math:: out = asinh(x) Args: x (Tensor): Input of Asinh operaSTRING
HIGHpython/paddle/_paddle_docs.py948 Reciprocal Activation Operator. .. math:: out = \\frac{1}{x} Args: x (Tensor): Input of RSTRING
HIGHpython/paddle/_paddle_docs.py987 Square each elements of the inputs. .. math:: out = x^2 Args: x (Tensor): Input of Square STRING
HIGHpython/paddle/_paddle_docs.py1024 Tangent Operator. Computes tangent of x element-wise. Input range is `(k*pi-pi/2, k*pi+pi/2)` and output rangeSTRING
HIGHpython/paddle/_paddle_docs.py1065 Calculates the natural log of the given input tensor plus 1, element-wise. .. math:: Out = \ln(x+1) STRING
HIGHpython/paddle/_paddle_docs.py1106 Applies matrix multiplication to two tensors. `matmul` follows the complete broadcast rules, and its behaviSTRING
HIGHpython/paddle/_paddle_docs.py1205 multiply two tensors element-wise. The equation is: .. math:: out = x * y Note: SupportedSTRING
HIGHpython/paddle/_paddle_docs.py1261 Calculates the log of the sum of exponential of ``x`` along ``axis`` . .. math:: logsumexp(x) = \log\suSTRING
HIGHpython/paddle/_paddle_docs.py1320 softplus activation .. math:: softplus(x)=\begin{cases} \frac{1}{\beta} * \\log(1 + e^STRING
HIGHpython/paddle/_paddle_docs.py1360 The function used to calculate modified bessel function of order 0. Equation: .. math:: STRING
HIGHpython/paddle/_paddle_docs.py1397 The function used to calculate exponentially scaled modified Bessel function of order 0. Equation: .. STRING
HIGHpython/paddle/_paddle_docs.py1437 Check if all :math:`x` and :math:`y` satisfy the condition: .. math:: \\left| x - y \right| \\leq atolSTRING
HIGHpython/paddle/_paddle_docs.py1493 Return whether every element of input tensor is finite number or not. Args: x (Tensor): The input tensSTRING
HIGHpython/paddle/_paddle_docs.py1522 Return whether every element of input tensor is `+/-INF` or not. Args: x (Tensor): The input tensor, iSTRING
HIGHpython/paddle/_paddle_docs.py1551 Return whether every element of input tensor is `NaN` or not. Args: x (Tensor): The input tensor, it'sSTRING
HIGHpython/paddle/_paddle_docs.py1583 Roll the `x` tensor along the given axis(axes). With specific 'shifts', Elements that roll beyond the last posiSTRING
HIGHpython/paddle/_paddle_docs.py1635 Ceil Operator. Computes ceil of x element-wise. .. math:: out = \\left \\lceil x \\right \\rceil STRING
HIGHpython/paddle/_paddle_docs.py1677 Computes the sum of tensor elements over the given dimension. This API has two signatures: 1. ``paddle.suSTRING
HIGHpython/paddle/_paddle_docs.py1780 Puts values from the tensor values into the tensor x using the indices specified in indices (which is a tuple of TeSTRING
HIGHpython/paddle/_paddle_docs.py1847 Computes the ``logical or`` of tensor elements over the given dimension, and return the result. Args: STRING
HIGHpython/paddle/_paddle_docs.py1920 Expand the input tensor ``x`` to the same shape as the input tensor ``y``. Both the number of dimensions of `STRING
HIGHpython/paddle/_paddle_docs.py1967 Sample input X by using bilinear interpolation or nearest interpolation based on flow field grid, which is usuaSTRING
HIGHpython/paddle/_paddle_docs.py2094 This API implements pixel shuffle operation. See more details in :ref:`PixelShuffle <api_paddle_nn_PixelShuffleSTRING
HIGHpython/paddle/_paddle_docs.py2128 gelu activation. The activation function of Gelu is calculated element by element. More information refers to STRING
HIGHpython/paddle/_paddle_docs.py2194 Sigmoid Activation. .. math:: out = \\frac{1}{1 + e^{-x}} Args: x (Tensor): Input of SigmoSTRING
HIGHpython/paddle/_paddle_docs.py2236 Returns the truth value of :math:`x > y` elementwise, which is equivalent function to the overloaded operator `>`. STRING
HIGHpython/paddle/_paddle_docs.py2275 Sine Activation Operator. .. math:: out = sin(x) Args: x (Tensor): Input of Sin operator, STRING
HIGHpython/paddle/_paddle_docs.py2314 Returns sign of every element in `x`: For real numbers, 1 for positive, -1 for negative and 0 for zero. For complexSTRING
HIGHpython/paddle/_paddle_docs.py2346 Calculates the lgamma of the given input tensor, element-wise. This operator performs elementwise lgamma for iSTRING
HIGHpython/paddle/_paddle_docs.py2385 Calculates the natural log of the given input Tensor, element-wise. .. math:: Out = \ln(x) Args:STRING
HIGHpython/paddle/_paddle_docs.py2424 Rsqrt Activation Operator. Please make sure input is legal in case of numeric errors. .. math:: ouSTRING
HIGHpython/paddle/_paddle_docs.py2465 Cosine Operator. Computes cosine of x element-wise. Input range is `(-inf, inf)` and output range is `[-1,1]`.STRING
HIGHpython/paddle/_paddle_docs.py2506 Cosh Activation Operator. Input range `(-inf, inf)`, output range `(1, inf)`. .. math:: out = \\frSTRING
HIGHpython/paddle/_paddle_docs.py2547 Floor Activation Operator. Computes floor of x element-wise. .. math:: out = \\lfloor x \\rfloor STRING
HIGHpython/paddle/_paddle_docs.py2588 Compare two tensors and returns a new tensor containing the element-wise maxima. The equation is: .. math:: STRING
HIGHpython/paddle/_paddle_docs.py2655 Compare two tensors and return a new tensor containing the element-wise minima. The equation is: .. math:: STRING
HIGHpython/paddle/_paddle_docs.py2721 Sqrt Activation Operator. .. math:: out=\\sqrt{x}=x^{1/2} Args: x (Tensor): Input of Sqrt STRING
HIGHpython/paddle/_paddle_docs.py2765 Returns the lower triangular part of a matrix (2-D tensor) or batch of matrices :attr:`x`, the other elements oSTRING
HIGHpython/paddle/_paddle_docs.py2834 Return the upper triangular part of a matrix (2-D tensor) or batch of matrices :attr:`x`, the other elements ofSTRING
HIGHpython/paddle/_paddle_docs.py2904 Applies batched matrix multiplication to two tensors. Both of the two input tensors must be three-dimensional STRING
1528 more matches not shown…
Hyper-Verbose Identifiers6763 hits · 6806 pts
SeverityFileLineSnippetContext
LOWsetup.py330def _convert_readme_relative_paths_for_pypi(readme: str) -> str:CODE
LOWsetup.py929def write_parameter_server_version_py(STRING
LOWsetup.py1163def get_paddle_extra_install_requirements():STRING
LOWsetup.py1509def extend_type_hints_package_data(packages, package_data, paddle_binary_dir):STRING
LOWsetup.py1536def get_package_data_and_package_dir():STRING
LOWsetup.py2978def install_cpp_dist_and_build_test(install_dir, lib_test_dir, headers, libs):CODE
LOWsetup.py3034 def submodules_not_exists_or_empty(folder):CODE
LOWtools/gen_pybind11_stub.py363def check_remove_syntax_error(filename: str, limit: int = 10000):CODE
LOWtools/gen_pybind11_stub.py555def load_python_api_function_by_name(name: str) -> Any:CODE
LOWtools/gen_pybind11_stub.py890 def _parse_dst_module_to_path(CODE
LOWtools/gen_tensor_stub.py72def create_builtin_annotation_renamer():CODE
LOWtools/gen_tensor_stub.py86def rename_builtin_annotation(annotation):CODE
LOWtools/count_api_without_core_ops.py47def split_with_and_without_core_ops(member, cur_name):CODE
LOWtools/count_api_without_core_ops.py170def get_apis_with_and_without_core_ops(modules):CODE
LOWtools/CheckPRTemplate.py144def check_precision_change_approval(body, pr_number, pr_user):CODE
LOWtools/CheckPRTemplate.py280def pull_request_event_template(event, repo, *args, **kwargs):CODE
LOWtools/check_op_kernel_same_dtypes.py84def check_change_or_add_op_kernel_dtypes_valid():CODE
LOWtools/gen_ut_cmakelists.py250 def _init_dist_ut_ports_from_cmakefile(self, cmake_file_name):CODE
LOWtools/gen_ut_cmakelists.py289 def parse_assigned_dist_ut_ports(self, current_work_dir, depth=0):STRING
LOWtools/type_checking.py326def codeblock_identifier_to_filename(codeblock_identifier: str) -> str:CODE
LOWtools/get_pr_ut.py169 def __get_comment_by_filetype(self, content, filetype):CODE
LOWtools/check_op_desc.py407def print_version_error_message(error_message):CODE
LOWtools/check_aten_ops_signature.py851def torch_include_dirs_from_python() -> list[Path]:CODE
LOWtools/check_aten_ops_signature.py861def discover_torch_include_dir(torch_include_dir: str | None) -> Path:CODE
LOWtools/check_aten_ops_signature.py88def strip_comments_and_literals(text: str) -> str:CODE
LOWtools/check_aten_ops_signature.py456def strip_leading_signature_annotations(text: str) -> str:CODE
LOWtools/check_aten_ops_signature.py493def top_level_function_definitions(CODE
LOWtools/check_aten_ops_signature.py600def signature_without_templates(signature: CppSignature) -> CppSignature:CODE
LOWtools/check_aten_ops_signature.py691def tensor_class_declarations(CODE
LOWtools/check_aten_ops_signature.py708def class_section_declarations(CODE
LOWtools/check_aten_ops_signature.py817def parse_paddle_class_members(CODE
LOWtools/check_aten_ops_signature.py1023def check_tensor_body_members(CODE
LOWtools/check_aten_ops_signature.py1054def check_tensor_base_members(CODE
LOWtools/check_aten_ops_signature.py1085def is_paddle_internal_member(signature: CppSignature) -> bool:CODE
LOWtools/get_pr_title.py57def check_skip_distribute_test(title):CODE
LOWtools/check_code_block_format.py138def format_code_block_with_suggestions(CODE
LOWtools/check_code_block_format.py181def check_code_block_indentation(CODE
LOWtools/check_code_block_format.py202def check_code_block_follows_blank_line(CODE
LOWtools/check_code_block_format.py216 def check_lines_starts_with_blank_line(CODE
LOWtools/check_abi_compatibility.py108def parse_readelf_dynamic_symbols(readelf_output: str) -> list[DynamicSymbol]:CODE
LOWtools/check_abi_compatibility.py184def is_protected_paddle_abi_symbol(symbol: DynamicSymbol) -> bool:CODE
LOWtools/check_abi_compatibility.py193def protected_symbols_by_name(CODE
LOWtools/check_abi_compatibility.py338def find_required_abi_approver(CODE
LOWtools/check_abi_compatibility.py398def check_abi_removal_approval(CODE
LOWtools/check_abi_compatibility.py439def check_abi_issues_approval(CODE
LOWtools/gpu_kernel_compare.py67 def _create_config_signature_without_dtype(CODE
LOWtools/test_check_pr_approval.py113 def test_check_with_required_reviewer_not_approved(self):STRING
LOWtools/check_only_change_python_files.py58 def check_only_change_python_file(self):CODE
LOWtools/test_check_api_compatible.py62 def test_args_places_exchanged(self):CODE
LOWtools/test_check_api_compatible.py116 def test_args_places_exchanged(self):CODE
LOWtools/check_op_benchmark_result.py56def load_benchmark_result_from_logs_dir(logs_dir):CODE
LOWtools/sampcd_processor_utils.py406def get_full_api_from_pr_spec():CODE
LOWtools/sampcd_processor_utils.py419def extract_code_blocks_from_docstr(docstr, google_style=True):CODE
LOWtools/remove_grad_op_and_kernel.py49def remove_grad_op_and_kernel(content, pattern1, pattern2):CODE
LOWtools/codestyle/clang-tidy.py77def find_compilation_database(path, result="./"):CODE
LOWtools/codestyle/clang-tidy.py205def check_clang_apply_replacements_binary(args):CODE
LOWtest/tools/test_gpu_kernel_compare.py35 def test_all_gpu_kernel_detection(self):CODE
LOWtest/tools/test_check_aten_ops_signature.py1028 def test_discover_torch_include_dir_argument(self):CODE
LOWtest/tools/test_check_aten_ops_signature.py1034 def test_discover_torch_include_dir_from_python_helper(self):CODE
LOWtest/tools/test_check_aten_ops_signature.py1044 def test_changed_aten_ops_headers_includes_modified_headers(self):CODE
6703 more matches not shown…
Unused Imports4789 hits · 3572 pts
SeverityFileLineSnippetContext
LOWsetup.py15CODE
LOWtools/gen_pybind11_stub.py15CODE
LOWtools/type_checking.py24CODE
LOWtools/sampcd_processor.py25CODE
LOWtools/check_aten_ops_signature.py15CODE
LOWtools/check_abi_compatibility.py21CODE
LOWtools/gpu_kernel_compare.py15CODE
LOWtools/print_signatures.py21CODE
LOWtools/sampcd_processor_utils.py15CODE
LOWtools/sampcd_processor_utils.py623CODE
LOWtools/sampcd_processor_utils.py624CODE
LOWtools/commitlist.py15CODE
LOWtest/compat/test_torch_proxy_mixed.py78CODE
LOWtest/compat/test_torch_proxy_mixed.py91CODE
LOWtest/compat/fake_torch_modules/torch/__init__.py17CODE
LOWtest/compat/fake_torch_modules/torch/__init__.py17CODE
LOWtest/compat/fake_torch_modules/torch/nn/__init__.py15CODE
LOWtest/ipu/op_test_ipu.py14CODE
LOWtest/flex_checkpoint/test_macros.py15CODE
LOWtest/ir/pir/cinn/llama_test_model.py15CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_28.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_79.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_69.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_38.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_0.py19CODE
LOW…st/ir/pir/cinn/sub_graphs/test_sub_graph_avg_pool2d.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_18.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_49.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_59.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_4.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_19.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_48.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_58.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_5.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_conv_nd.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_29.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_78.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_68.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_39.py18CODE
LOW…/pir/cinn/sub_graphs/test_sub_graph_bfloat162float8.py17CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_1.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_22.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_73.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_80.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_47.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_16.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_chunk.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_add_n.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_57.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_90.py15CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_63.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_32.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_12.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_43.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_77.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_26.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_84.py18CODE
LOW…/cinn/sub_graphs/test_sub_graph_adaptive_avg_pool2d.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_36.py18CODE
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_67.py18CODE
4729 more matches not shown…
Deep Nesting2314 hits · 2083 pts
SeverityFileLineSnippetContext
LOWsetup.py421CODE
LOWsetup.py995CODE
LOWsetup.py1536CODE
LOWtools/gen_pybind11_stub.py580CODE
LOWtools/gen_pybind11_stub.py695CODE
LOWtools/gen_pybind11_stub.py777CODE
LOWtools/gen_tensor_stub.py427CODE
LOWtools/gen_tensor_stub.py599CODE
LOWtools/count_api_without_core_ops.py47CODE
LOWtools/count_api_without_core_ops.py95CODE
LOWtools/count_api_without_core_ops.py116CODE
LOWtools/count_api_without_core_ops.py136CODE
LOWtools/get_ut_mem_map.py20CODE
LOWtools/get_single_test_cov.py23CODE
LOWtools/get_single_test_cov.py68CODE
LOWtools/get_single_test_cov.py132CODE
LOWtools/CheckPRTemplate.py58CODE
LOWtools/CheckPRTemplate.py144CODE
LOWtools/CheckPRTemplate.py251CODE
LOWtools/check_op_kernel_same_dtypes.py84CODE
LOWtools/timeline.py142CODE
LOWtools/timeline.py215CODE
LOWtools/gen_ut_cmakelists.py250CODE
LOWtools/gen_ut_cmakelists.py289CODE
LOWtools/type_checking.py104CODE
LOWtools/get_pr_ut.py216CODE
LOWtools/get_pr_ut.py299CODE
LOWtools/reduce_lib_size_util.py23CODE
LOWtools/reduce_lib_size_util.py51CODE
LOWtools/analysisPyXml.py23CODE
LOWtools/check_op_desc.py65CODE
LOWtools/check_op_desc.py139CODE
LOWtools/check_op_desc.py210CODE
LOWtools/check_op_desc.py230CODE
LOWtools/prune_for_jetson.py36CODE
LOWtools/prune_for_jetson.py110CODE
LOWtools/check_aten_ops_signature.py149CODE
LOWtools/check_aten_ops_signature.py226CODE
LOWtools/check_aten_ops_signature.py241CODE
LOWtools/check_aten_ops_signature.py300CODE
LOWtools/check_aten_ops_signature.py493CODE
LOWtools/check_aten_ops_signature.py626CODE
LOWtools/check_aten_ops_signature.py708CODE
LOWtools/check_code_block_format.py153CODE
LOWtools/gpu_kernel_compare.py85CODE
LOWtools/print_signatures.py84CODE
LOWtools/print_signatures.py208CODE
LOWtools/check_op_benchmark_result.py35CODE
LOWtools/get_ut_file_map.py20CODE
LOWtools/get_ut_file_map.py57CODE
LOWtools/final_ut_parallel_rule.py20CODE
LOWtools/group_case_for_parallel.py19CODE
LOWtools/sampcd_processor_utils.py358CODE
LOWtools/sampcd_processor_utils.py419CODE
LOWtools/sampcd_processor_utils.py673CODE
LOWtools/analysis_build_time.py35CODE
LOWtools/CrossStackProfiler/DCGMFileReader.py105CODE
LOWtools/CrossStackProfiler/NetFileReader.py28CODE
LOWtools/CrossStackProfiler/ProfileFileReader.py56CODE
LOWtools/CrossStackProfiler/ProfileFileReader.py71CODE
2254 more matches not shown…
AI Structural Patterns1011 hits · 936 pts
SeverityFileLineSnippetContext
LOWtools/CheckPRTemplate.py42CODE
LOWtools/CheckPRTemplate.py248CODE
LOWtools/sampcd_processor.py361CODE
LOWtest/standalone_executor/test_standalone_executor.py290CODE
LOWtest/standalone_executor/test_standalone_controlflow.py109CODE
LOWtest/ir/test_inference_datatype.py37CODE
LOWtest/ir/test_inference_datatype_pir.py37CODE
LOWtest/ir/pir/test_pir_to_static.py27CODE
LOWtest/ir/pir/test_pir_to_static.py44CODE
LOWtest/ir/pir/test_pir_to_static.py208CODE
LOWtest/ir/pir/test_symbol_overload.py36CODE
LOWtest/ir/pir/test_symbol_overload.py49CODE
LOWtest/ir/pir/cinn/llama_test_model.py30CODE
LOWtest/ir/pir/cinn/llama_test_model.py233CODE
LOWtest/ir/pir/cinn/test_dynamic_shape.py97CODE
LOWtest/ir/pir/cinn/test_dynamic_shape.py115CODE
LOWtest/ir/pir/cinn/test_slice_cinn.py48CODE
LOWtest/ir/pir/cinn/test_enable_cinn_kernel_cache_2.py55CODE
LOWtest/ir/pir/cinn/test_enable_cinn_kernel_cache_2.py78CODE
LOWtest/ir/pir/cinn/test_cinn_reduce_sum.py53CODE
LOWtest/ir/pir/cinn/test_cinn_sub_graph.py52CODE
LOWtest/ir/pir/cinn/test_cinn_sub_graph.py62CODE
LOWtest/ir/pir/cinn/test_cinn_sub_graph.py72CODE
LOWtest/ir/pir/cinn/test_cinn_sub_graph.py84CODE
LOWtest/ir/pir/cinn/test_cinn_sub_graph.py107CODE
LOWtest/ir/pir/cinn/test_cinn_sub_graph.py132CODE
LOWtest/ir/pir/cinn/test_cinn_sub_graph.py142CODE
LOWtest/ir/pir/cinn/test_cinn_sub_graph.py224CODE
LOWtest/ir/pir/cinn/test_graph.py102CODE
LOWtest/ir/pir/cinn/test_enable_cinn_kernel_cache.py55CODE
LOWtest/ir/pir/cinn/test_enable_cinn_kernel_cache.py78CODE
LOWtest/ir/pir/cinn/adt/test_cinn_sub_graph_map_expr.py40CODE
LOWtest/ir/pir/cinn/inference/test_llama_forward.py87CODE
LOWtest/ir/pir/cinn/inference/test_llama_while.py78CODE
LOWtest/ir/pir/cinn/inference/test_llama_inference.py185CODE
LOW…ir/pir/cinn/symbolic/test_cinn_input_shape_symbolic.py108CODE
LOW…ir/pir/cinn/symbolic/test_single_op_fallback_to_phi.py38CODE
LOW…ir/pir/cinn/symbolic/test_single_op_fallback_to_phi.py65CODE
LOW…ir/pir/cinn/symbolic/test_single_op_fallback_to_phi.py86CODE
LOW…st/ir/pir/cinn/symbolic/test_llama_unsqueeze_expand.py43CODE
LOWtest/ir/pir/cinn/symbolic/test_cinn_merge_expand.py37CODE
LOWtest/ir/pir/cinn/symbolic/test_dyshape_mean.py35CODE
LOW…t/ir/pir/cinn/symbolic/test_llama_group_log_softmax.py65CODE
LOWtest/ir/pir/cinn/symbolic/test_sub_graph_for_backend.py40CODE
LOWtest/ir/pir/cinn/symbolic/test_reshape_zero_shape.py45CODE
LOW…ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py45CODE
LOW…ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py67CODE
LOW…ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py109CODE
LOW…ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py138CODE
LOW…ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py217CODE
LOW…ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py245CODE
LOW…ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py271CODE
LOW…ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py320CODE
LOWtest/ir/pir/cinn/symbolic/test_cinn_data_symbol_arg.py95CODE
LOWtest/ir/pir/cinn/symbolic/test_cinn_cpu_kernel.py62CODE
LOW…t/ir/pir/cinn/symbolic/test_llama_transpose_reshape.py42CODE
LOW…t/ir/pir/cinn/symbolic/test_llama_transpose_reshape.py88CODE
LOW…r/pir/cinn/symbolic/test_infer_sym_shape_nullary_op.py67CODE
LOW…r/pir/cinn/symbolic/test_infer_sym_shape_nullary_op.py78CODE
LOW…r/pir/cinn/symbolic/test_infer_sym_shape_nullary_op.py104CODE
951 more matches not shown…
Cross-File Repetition168 hits · 840 pts
SeverityFileLineSnippetContext
HIGHtools/reduce_lib_size_util.py0this script simply removes grad ops and kernels. you should use this script when cmake on_infer=on, which can greatly reSTRING
HIGHtools/prune_for_jetson.py0this script simply removes grad ops and kernels. you should use this script when cmake on_infer=on, which can greatly reSTRING
HIGHtools/remove_grad_op_and_kernel.py0this script simply removes grad ops and kernels. you should use this script when cmake on_infer=on, which can greatly reSTRING
HIGHtest/ir/pir/cinn/llama_test_model.py0expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.STRING
HIGH…rallel/hybrid_strategy/to_distributed_api_for_llama.py0expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.STRING
HIGH…llel/hybrid_strategy/semi_auto_parallel_llama_model.py0expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.STRING
HIGHtest/ir/inference/auto_scan_test.py0prepare tensorrt subgraph engine dynamic shape parameters.STRING
HIGHtest/ir/inference/quant_dequant_test.py0prepare tensorrt subgraph engine dynamic shape parameters.STRING
HIGHtest/ir/inference/inference_pass_test.py0prepare tensorrt subgraph engine dynamic shape parameters.STRING
HIGHtest/collective/fleet/parallel_dygraph_transformer.py0generate the initial values for the sinusoid position encoding table.STRING
HIGHtest/legacy_test/transformer_model.py0generate the initial values for the sinusoid position encoding table.STRING
HIGH…cy_test/test_imperative_transformer_sorted_gradient.py0generate the initial values for the sinusoid position encoding table.STRING
HIGHtest/dygraph_to_static/transformer_dygraph_model.py0generate the initial values for the sinusoid position encoding table.STRING
HIGHtest/xpu/test_generate_proposals_v2_op_xpu.py0apply intersection-over-union overlap between box_a and box_bSTRING
HIGHtest/legacy_test/test_generate_proposals_v2_op.py0apply intersection-over-union overlap between box_a and box_bSTRING
HIGHtest/legacy_test/test_multiclass_nms_op.py0apply intersection-over-union overlap between box_a and box_bSTRING
HIGHtest/legacy_test/test_nms_op.py0apply intersection-over-union overlap between box_a and box_bSTRING
HIGHtest/xpu/test_softmax_op_xpu.py0compute the softmax of vector x in a numerically stable way.STRING
HIGH…/xpu/test_collective_softmax_with_cross_entropy_xpu.py0compute the softmax of vector x in a numerically stable way.STRING
HIGHtest/legacy_test/test_fused_multihead_matmul_op.py0compute the softmax of vector x in a numerically stable way.STRING
HIGHtest/legacy_test/test_softmax_op.py0compute the softmax of vector x in a numerically stable way.STRING
HIGH…cy_test/c_softmax_with_multi_label_cross_entropy_op.py0compute the softmax of vector x in a numerically stable way.STRING
HIGHtest/legacy_test/c_softmax_with_cross_entropy_op.py0compute the softmax of vector x in a numerically stable way.STRING
HIGHtest/onednn/test_softmax_bf16_onednn_op.py0compute the softmax of vector x in a numerically stable way.STRING
HIGHtest/xpu/test_lamb_op_xpu.py0simulate one step of the adam optimizer :param inputs: dict of inputs :param attributes: dict of attributes :return tuplSTRING
HIGHtest/legacy_test/test_lamb_op.py0simulate one step of the adam optimizer :param inputs: dict of inputs :param attributes: dict of attributes :return tuplSTRING
HIGHtest/xpu/test_adam_op_xpu.py0simulate one step of the adam optimizer :param inputs: dict of inputs :param attributes: dict of attributes :return tuplSTRING
HIGHtest/legacy_test/test_adam_op.py0simulate one step of the adam optimizer :param inputs: dict of inputs :param attributes: dict of attributes :return tuplSTRING
HIGHtest/xpu/test_fill_diagonal_tensor_op_xpu.py0fill value into the diagonal of x that offset is ${offset} and the coordinate system is (dim1, dim2).STRING
HIGHtest/legacy_test/test_fill_diagonal_tensor_op.py0fill value into the diagonal of x that offset is ${offset} and the coordinate system is (dim1, dim2).STRING
HIGHtest/legacy_test/test_diagonal_scatter.py0fill value into the diagonal of x that offset is ${offset} and the coordinate system is (dim1, dim2).STRING
HIGHtest/xpu/test_bilinear_interp_v2_op_xpu.py0bilinear interpolation implement in shape [n, c, h, w]STRING
HIGHtest/legacy_test/test_bilinear_interp_v2_op.py0bilinear interpolation implement in shape [n, c, h, w]STRING
HIGHtest/legacy_test/test_interp_recompute_scale_factor.py0bilinear interpolation implement in shape [n, c, h, w]STRING
HIGHtest/onednn/test_bilinear_interp_v2_onednn_op.py0bilinear interpolation implement in shape [n, c, h, w]STRING
HIGHtest/xpu/test_nearest_interp_v2_op_xpu.py0nearest neighbor interpolation implement in shape [n, c, h, w]STRING
HIGHtest/legacy_test/test_nearest_interp_v2_op.py0nearest neighbor interpolation implement in shape [n, c, h, w]STRING
HIGHtest/legacy_test/test_interp_recompute_scale_factor.py0nearest neighbor interpolation implement in shape [n, c, h, w]STRING
HIGHtest/onednn/test_nearest_interp_v2_onednn_op.py0nearest neighbor interpolation implement in shape [n, c, h, w]STRING
HIGH…st/legacy_test/test_dist_fleet_sparse_embedding_ctr.py0network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training returSTRING
HIGHtest/legacy_test/fleet_heter_ps_training.py0network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training returSTRING
HIGHtest/legacy_test/dist_fleet_sparse_embedding_ctr.py0network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training returSTRING
HIGHtest/legacy_test/dist_fleet_heter_pipeline_ctr.py0network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training returSTRING
HIGHtest/legacy_test/dist_fleet_ctr.py0network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training returSTRING
HIGHtest/legacy_test/test_compat_unfold.py0test whether there will be correct exception when users pass paddle.split kwargs in paddle.compat.split, vice versa.STRING
HIGHtest/legacy_test/test_compat_split_static.py0test whether there will be correct exception when users pass paddle.split kwargs in paddle.compat.split, vice versa.STRING
HIGHtest/legacy_test/test_compat_split.py0test whether there will be correct exception when users pass paddle.split kwargs in paddle.compat.split, vice versa.STRING
HIGHtest/legacy_test/dist_fleet_sparse_embedding_ctr.py0do training using dataset, using fetch handler to catch variable args: fleet(fleet api): the fleet object of parameter sSTRING
HIGHtest/legacy_test/dist_fleet_ctr.py0do training using dataset, using fetch handler to catch variable args: fleet(fleet api): the fleet object of parameter sSTRING
HIGHtest/legacy_test/dist_fleet_simnet_bow.py0do training using dataset, using fetch handler to catch variable args: fleet(fleet api): the fleet object of parameter sSTRING
HIGHtest/legacy_test/dist_fleet_ctr_ps_gpu.py0do training using dataset, using fetch handler to catch variable args: fleet(fleet api): the fleet object of parameter sSTRING
HIGHtest/dygraph_to_static/test_resnet.py0tests model decorated by `dygraph_to_static_output` in static graph mode. for users, the model is defined in dygraph modSTRING
HIGHtest/dygraph_to_static/test_resnet_amp.py0tests model decorated by `dygraph_to_static_output` in static graph mode. for users, the model is defined in dygraph modSTRING
HIGHtest/dygraph_to_static/test_resnet_pure_fp16.py0tests model decorated by `dygraph_to_static_output` in static graph mode. for users, the model is defined in dygraph modSTRING
HIGHtest/dygraph_to_static/test_pylayer.py0tests model decorated by `dygraph_to_static_output` in static graph mode. for users, the model is defined in dygraph modSTRING
HIGHpython/paddle/pir/math_op_patch.py0whether this tensor requires gradient computation. this is a convenience property that returns the opposite of stop_gradSTRING
HIGHpython/paddle/base/layers/math_op_patch.py0whether this tensor requires gradient computation. this is a convenience property that returns the opposite of stop_gradSTRING
HIGHpython/paddle/base/dygraph/math_op_patch.py0whether this tensor requires gradient computation. this is a convenience property that returns the opposite of stop_gradSTRING
HIGHpython/paddle/pir/math_op_patch.py0set whether this tensor requires gradient computation. args: requires_grad (bool): true to enable gradient computation, STRING
HIGHpython/paddle/base/layers/math_op_patch.py0set whether this tensor requires gradient computation. args: requires_grad (bool): true to enable gradient computation, STRING
108 more matches not shown…
Decorative Section Separators209 hits · 676 pts
SeverityFileLineSnippetContext
MEDIUM.cmake-format.py15# -----------------------------COMMENT
MEDIUM.cmake-format.py17# -----------------------------COMMENT
MEDIUM.cmake-format.py22# ------------------------------------------------COMMENT
MEDIUM.cmake-format.py24# ------------------------------------------------COMMENT
MEDIUM.cmake-format.py34# ----------------------------------COMMENT
MEDIUM.cmake-format.py36# ----------------------------------COMMENT
MEDIUMtools/enforce/count_all_enforce.sh35# ----------------------------COMMENT
MEDIUMtools/enforce/count_all_enforce.sh37# ----------------------------COMMENT
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py28# ==============================================================================COMMENT
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py31# ==============================================================================COMMENT
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py132# ==============================================================================COMMENT
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py134# ==============================================================================COMMENT
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py240# ==============================================================================COMMENT
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py242# ==============================================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py81 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py104 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py127 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py235 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py258 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py281 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py375 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py425 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py529 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py622 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py26 # ------------------------------------------------------COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py49 # ------------------------------------------------------COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py70 # ------------------------------------------------------COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py81 # ------------------------------------------------------COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py90 # ------------------------------------------------------COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py101 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py133 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py165 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py257 # ------------------------------------------------------COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py259 # ======================================================COMMENT
MEDIUMtest/flex_checkpoint/test_aoa_engine.py310 # ======================================================COMMENT
MEDIUMtest/ir/inference/test_use_optimized_model_api.py36# -------------------------------------------------------------COMMENT
MEDIUM…ollective/fleet/hybrid_parallel_sharding_muon_model.py75# ------------------------------------------------------------------COMMENT
MEDIUM…ollective/fleet/hybrid_parallel_sharding_muon_model.py77# ------------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py529 # ---------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py531 # ---------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py561 # ---------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py563 # ---------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py589 # ---------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py591 # ---------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py597 # ---------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py599 # ---------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_slow_conv_op.py115 # =================================================================COMMENT
MEDIUMtest/legacy_test/test_slow_conv_op.py117 # =================================================================COMMENT
MEDIUMtest/legacy_test/test_slow_conv_op.py216 # =================================================================COMMENT
MEDIUMtest/legacy_test/test_slow_conv_op.py218 # =================================================================COMMENT
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py111 # ── dtype coverage ──────────────────────────────────────────────────COMMENT
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py168 # ── shape coverage ──────────────────────────────────────────────────COMMENT
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py190 # ── stream ordering ─────────────────────────────────────────────────COMMENT
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py435# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py437# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py731# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py734# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_pylayer_clear_dataptr.py236 # ------------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_pylayer_clear_dataptr.py238 # ------------------------------------------------------------------COMMENT
MEDIUMtest/legacy_test/test_pylayer_clear_dataptr.py277 # ------------------------------------------------------------------COMMENT
149 more matches not shown…
Cross-Language Confusion138 hits · 636 pts
SeverityFileLineSnippetContext
HIGHtools/pyCov_multithreading.py53 os.system(f'cd {path} && pwd && coverage xml -i -o python-coverage.xml')CODE
HIGHtools/get_pr_ut.py271 f"cd {PADDLE_ROOT}build && ctest -N",CODE
HIGHtools/prune_for_jetson.py105 " && git apply tools/infer_prune_patches/*.patch && cd -"CODE
HIGHtools/get_ut_file_map.py37 rf'cd {rootPath}/build && ctest -N -V | grep -Ei "Test[ \t]+#" | grep -oEi "\w+$" > {all_uts_paddle}'CODE
HIGHtools/group_case_for_parallel.py35 f'cd {rootPath}/tools && wget --no-proxy https://paddle-windows.bj.bcebos.com/pre_test_bak_20230908/{filCODE
HIGHtools/group_case_for_parallel.py39 f'cd {rootPath}/tools && wget --no-proxy https://paddle-docker-tar.bj.bcebos.com/pre_test_bak_20230908/{CODE
HIGHtools/continuous_integration/bisect.py99 f'git checkout {args.bisect_branch} && git clean -fd && git checkout .'CODE
HIGH…t/custom_runtime/test_collective_process_group_xccl.py49 os.system("rm -rf log && mkdir -p log")CODE
HIGH…t/custom_runtime/test_collective_process_group_xccl.py159 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format(CODE
HIGHtest/custom_runtime/test_custom_op_setup.py119 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8 \CODE
HIGHtest/custom_runtime/test_custom_cpu_to_static.py110 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format(CODE
HIGHtest/custom_runtime/test_custom_cpu_profiler_plugin.py32 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format(CODE
HIGHtest/custom_runtime/test_custom_cpu_plugin.py34 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format(CODE
HIGHtest/distribution/test_distribution_bernoulli.py118 KL[a || b] = Pa * Log[Pa / Pb] + (1 - Pa) * Log[(1 - Pa) / (1 - Pb)]STRING
HIGHtest/legacy_test/test_elementwise_heaviside_op.py481 Fix: add early-return guards in ElemwiseGradBroadcast1CUDA (h==0 || w==0)STRING
HIGHtest/legacy_test/test_elementwise_heaviside_op.py482 and ElemwiseGradBroadcast2CUDA (pre==0 || n==0 || post==0).STRING
HIGH…ization/quant2_int8_image_classification_comparison.py335 f'Accepted top1 accuracy drop threshold: {threshold}. (condition: (Quant_top1_acc - IN8_top1_acc) <= threshoCODE
HIGHtest/custom_op/test_check_abi.py59 # Mac: clang has no version limitation, always return trueCOMMENT
HIGHtest/sot/test_stack.py44 stack.push(1)CODE
HIGHtest/sot/test_stack.py45 stack.push(2)CODE
HIGHpython/paddle/_paddle_docs.py754 &\text{undefined} & x=0, y = 0CODE
HIGHpython/paddle/_paddle_docs.py3003 out = x || yCODE
HIGHpython/paddle/_paddle_docs.py3094 out = (x || y) \&\& !(x \&\& y)CODE
HIGHpython/paddle/nn/initializer/kaiming.py184 # var.place._type() means undefined, happens when initializer is specified in ParamAttrCOMMENT
HIGHpython/paddle/nn/layer/common.py306 if align_corners = True && out_size > 1 :CODE
HIGHpython/paddle/nn/functional/common.py327 if align_corners = True && out_size > 1 :CODE
HIGHpython/paddle/nn/functional/common.py1034 if align_corners = True && out_size > 1 :CODE
HIGHpython/paddle/io/dataloader/dataloader_iter.py285 self._blocking_queue.push(array)CODE
HIGHpython/paddle/io/dataloader/dataloader_iter.py658 if not self._blocking_queue.push(array):CODE
HIGHpython/paddle/distribution/laplace.py387 r"""Calculate the KL divergence KL(self || other) with two Laplace instances.STRING
HIGHpython/paddle/distribution/geometric.py326 r"""Calculate the KL divergence KL(self || other) with two Geometric instances.STRING
HIGHpython/paddle/distribution/bernoulli.py459 KL(a || b) = p_a \log(p_a / p_b) + (1 - p_a) \log((1 - p_a) / (1 - p_b))CODE
HIGHpython/paddle/vision/ops.py1986 Their relation should be ``0 <= x1 < x2 && 0 <= y1 < y2``.CODE
HIGHpython/paddle/jit/dy2static/transformers/utils.py425 a.push(0) don't modify the variable a, but the contentCODE
HIGHpython/paddle/jit/dy2static/transformers/utils.py440 b.push(1)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py767 self.stack.push(CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py770 self.stack.push(old_exception)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py771 self.stack.push(CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py780 self.stack.push(CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py785 self.stack.push(ConstantVariable.wrap_literal(None, self._graph))CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py786 self.stack.push(exception_var)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py787 self.stack.push(CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py825 self.stack.push(self.stack.peek[instr.arg])CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py828 self.stack.push(self.stack.top)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py832 self.stack.push(ref)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py990 self.stack.push(CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py998 self.stack.push(var)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1003 self.stack.push(const_var)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1014 self.stack.push(self.vframe.cells[name])CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1018 self.stack.push(self.vframe.locals[instr.argval].cell_content())CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1022 self.stack.push(self.vframe.cells[name].cell_content())CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1031 self.stack.push(var)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1039 self.stack.push(int_var)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1057 self.stack.push(NullVariable())CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1065 self.stack.push(value)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1067 self.stack.push(NullVariable())CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1086 self.stack.push(method.fn)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1087 self.stack.push(obj)CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1091 self.stack.push(NullVariable())CODE
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1092 self.stack.push(method)CODE
78 more matches not shown…
Modern Structural Boilerplate568 hits · 558 pts
SeverityFileLineSnippetContext
LOWsetup.py583__all__ = ['cuda', 'cudnn', 'nccl', 'show', 'xpu', 'xpu_xre', 'xpu_xccl', 'xpu_xhpc', 'tensorrt', 'cuda_archs', 'hip']CODE
LOWtools/count_api_without_core_ops.py21__all__ = [CODE
LOWtools/type_checking.py55 def set_debug(self, debug: bool) -> None:CODE
LOWtools/sampcd_processor_utils.py27logger = logging.getLogger(__name__)CODE
LOWtools/commitlist.py294 def update_many(self, records: Iterable[PullRequestRecord]) -> None:CODE
LOWtest/ir/inference/program_config.py294 def set_input_type(self, _type: np.dtype) -> None:CODE
LOWtest/dataset/cifar_test.py19__all__ = []CODE
LOWtest/dataset/flowers_test.py19__all__ = []CODE
LOWtest/dataset/test_image.py28__all__ = []CODE
LOWtest/dataset/voc2012_test.py19__all__ = []CODE
LOWtest/dataset/imdb_test.py20__all__ = []CODE
LOWtest/dataset/wmt16_test.py19__all__ = []CODE
LOWtest/dataset/imikolov_test.py21__all__ = []CODE
LOWtest/dataset/mnist_test.py19__all__ = []CODE
LOW…est_incubate_build_src_rank_and_local_expert_id_xpu.py23logger = logging.getLogger(__name__)CODE
LOWtest/legacy_test/test_incubate_fused_loss.py27logger = logging.getLogger(__name__)CODE
LOWtest/legacy_test/test_sparse_conv_op.py30logger = logging.getLogger(__name__)CODE
LOWtest/legacy_test/decorator_helper.py17__all__ = ['many_times', 'prog_scope']CODE
LOW…st/test_incubate_build_src_rank_and_local_expert_id.py23logger = logging.getLogger(__name__)CODE
LOWtest/legacy_test/test_dist_fleet_heter_base.py33__all__ = ['FleetDistHeterRunnerBase', 'TestFleetHeterBase', 'runtime_main']CODE
LOWtest/legacy_test/utils.py34__all__ = ['DyGraphProgramDescTracerTestHelper', 'is_equal_program']CODE
LOWtest/legacy_test/autodiff_checker_helper.py28__all__ = ['check_vjp']CODE
LOWtest/legacy_test/test_sparse_conv_igemm_op.py27logger = logging.getLogger(__name__)CODE
LOWtest/legacy_test/test_dist_fleet_base.py40__all__ = ['FleetDistRunnerBase', 'TestFleetBase', 'runtime_main']CODE
LOWtest/legacy_test/test_decorator.py22__all__ = []CODE
LOWtest/legacy_test/ernie_utils/top2_gate.py55logger = logging.getLogger(__name__)CODE
LOWtest/legacy_test/ernie_utils/moe_all_gather_layer.py57logger = logging.getLogger(__name__)CODE
LOWtest/legacy_test/ernie_utils/moe_layer.py60logger = logging.getLogger(__name__)CODE
LOWtest/legacy_test/ernie_utils/moe_layer_uneven.py38logger = logging.getLogger(__name__)CODE
LOWtest/distributed_passes/model_zoo.py24__all__ = [CODE
LOWtest/auto_parallel/PipelineStage_demo.py51logger = logging.getLogger(__name__)CODE
LOWtest/dygraph_to_static/tsm_config_utils.py17logger = logging.getLogger(__name__)CODE
LOW…prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py45 def set_dtype(self, dtype) -> None:CODE
LOW…prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py48 def set_shape(self, shape) -> None:CODE
LOW…prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py51 def set_training(self, training) -> None:CODE
LOW…prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py54 def set_momentum(self, momentum) -> None:CODE
LOW…prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py57 def set_epsilon(self, epsilon) -> None:CODE
LOW…prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py60 def set_data_format(self, data_format) -> None:CODE
LOW…prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py63 def set_use_global_stats(self, use_global_stats) -> None:CODE
LOWtest/ps/static_gpubox_trainer.py30logger = logging.getLogger(__name__)CODE
LOWtest/ps/dataset_generator_criteo.py21logger = logging.getLogger(__name__)CODE
LOWpython/paddle/signal.py36__all__ = [CODE
LOWpython/paddle/batch.py23__all__ = []CODE
LOWpython/paddle/__init__.py1092__all__ = [CODE
LOWpython/paddle/random.py20__all__ = ["initial_seed"]CODE
LOWpython/paddle/hub.py17__all__ = ['list', 'help', 'load', 'load_state_dict_from_url']CODE
LOWpython/paddle/paddle_version.py24__all__ = ["PaddleVersion"]CODE
LOWpython/paddle/functional.py26__all__ = [CODE
LOWpython/paddle/linalg.py64__all__ = [CODE
LOWpython/paddle/callbacks.py26__all__ = [CODE
LOWpython/paddle/_legacy_C_ops.py18__all__ = []CODE
LOWpython/paddle/regularizer.py23__all__ = ['L1Decay', 'L2Decay']CODE
LOWpython/paddle/fft.py41__all__ = [CODE
LOWpython/paddle/_C_ops.py17__all__ = []CODE
LOWpython/paddle/sysconfig.py19__all__ = ['get_include', 'get_lib']CODE
LOWpython/paddle/_pir_ops.py17__all__ = []CODE
LOWpython/paddle/special.py30__all__ = [CODE
LOWpython/paddle/reader/decorator.py47__all__ = []CODE
LOWpython/paddle/reader/__init__.py81__all__ = []STRING
LOWpython/paddle/pir/__init__.py69__all__ = []CODE
508 more matches not shown…
Excessive Try-Catch Wrapping416 hits · 486 pts
SeverityFileLineSnippetContext
LOWsetup.py547 except Exception as e:CODE
MEDIUMsetup.py548 print(f"Error while getting TensorRT version: {e}")CODE
LOWsetup.py1366 except Exception as e:STRING
LOWsetup.py2937 except Exception as e:CODE
LOWsetup.py3053 except Exception:CODE
MEDIUMsetup.py296def git_commit() -> str:CODE
LOWtools/CheckPRTemplate.py237 except Exception as e:CODE
MEDIUMtools/CheckPRTemplate.py50def check_link_accessible(url):CODE
MEDIUMtools/op_benchmark_count.py117print(f"Error Lines Percentage: {error_percentage:.2f}%")CODE
LOWtools/gen_ut_cmakelists.py489 except Exception as e:STRING
LOWtools/gen_ut_cmakelists.py560 except Exception as e:CODE
LOWtools/get_quick_disable_lt.py116 except Exception as e:CODE
LOWtools/get_pr_ut.py69 except Exception as e:CODE
LOWtools/get_pr_ut.py117 except Exception as e:CODE
MEDIUMtools/check_aten_ops_signature.py851def torch_include_dirs_from_python() -> list[Path]:CODE
LOWtools/check_aten_ops_signature.py856 except Exception:CODE
LOWtools/check_aten_ops_signature.py1218 except Exception as exc:CODE
LOWtools/print_signatures.py180 except Exception as e:CODE
MEDIUMtools/print_signatures.py64def md5(doc):CODE
LOWtools/CrossStackProfiler/NetFileReader.py63 except Exception:CODE
LOWtools/CrossStackProfiler/CspFileReader.py301 except Exception:CODE
LOWtools/CrossStackProfiler/CspFileReader.py366 except Exception as e:CODE
MEDIUMtools/CrossStackProfiler/CspFileReader.py363def test_FileReader(args):CODE
MEDIUMtools/codestyle/clang-tidy.py452 print('Error exporting fixes.\n', file=sys.stderr)CODE
MEDIUMtools/codestyle/clang-tidy.py461 print('Error applying fixes.\n', file=sys.stderr)CODE
LOWtest/compat/test_event_stream_apis.py63 except Exception:CODE
LOWtest/compat/test_event_stream_apis.py262 except Exception:CODE
LOWtest/compat/test_event_stream_apis.py299 except Exception:CODE
LOWtest/compat/test_paddle_cuda_apis.py42 except Exception:CODE
LOWtest/compat/test_paddle_cuda_apis.py115 except Exception as e:CODE
LOWtest/compat/test_paddle_cuda_apis.py163 except Exception as e:CODE
LOWtest/compat/test_paddle_cuda_apis.py243 except Exception as e:CODE
LOWtest/compat/test_paddle_cuda_apis.py291 except Exception as e:CODE
LOWtest/compat/test_paddle_cuda_apis.py318 except Exception as e:CODE
LOWtest/compat/test_paddle_cuda_apis.py403 except Exception as e:CODE
LOWtest/compat/test_paddle_cuda_apis.py187 except Exception:CODE
LOWtest/compat/test_paddle_cuda_apis.py332 except Exception as e:CODE
LOWtest/compat/test_paddle_cuda_apis.py353 except Exception as e:CODE
LOWtest/compat/test_paddle_cuda_apis.py384 except Exception as e:CODE
LOWtest/ir/inference/auto_scan_test.py373 except Exception as e:CODE
LOWtest/ir/inference/auto_scan_test.py618 except Exception as e:CODE
LOWtest/ir/inference/auto_scan_test.py1131 except Exception as e:CODE
LOWtest/ir/inference/auto_scan_test.py1230 except Exception as e:CODE
LOWtest/collective/test_gen_nccl_id_op.py77 except Exception as e:CODE
MEDIUMtest/collective/test_gen_nccl_id_op.py74def setUp(self):CODE
LOW…ollective/multinode/mn_dygraph_group_sharded_stage3.py318 except Exception as e:CODE
LOWtest/collective/fleet/test_auto_checkpoint.py268 except Exception as e:CODE
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py524 except Exception as e:CODE
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py539 except Exception as e:CODE
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py554 except Exception as e:CODE
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py569 except Exception as e:CODE
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py585 except Exception as e:CODE
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py671 except Exception as e:CODE
LOW…llective/fleet/dygraph_group_sharded_stage2_offload.py125 except Exception as e:CODE
LOWtest/ai_edited_test/test_ai_layer_gen.py125 except Exception:CODE
LOWtest/ai_edited_test/test_ai_layer_gen.py138 except Exception:CODE
LOWtest/ai_edited_test/test_ai_layer_gen.py151 except Exception:CODE
LOWtest/ai_edited_test/test_ai_layer_gen.py162 except Exception:CODE
LOWtest/ai_edited_test/test_ai_layer_gen.py171 except Exception:CODE
LOWtest/ai_edited_test/test_ai_amp_ops.py61 except Exception:CODE
356 more matches not shown…
Hallucination Indicators39 hits · 432 pts
SeverityFileLineSnippetContext
CRITICAL…lective/fleet/test_fleet_tensor_parallel_extra_sync.py144 paddle.distributed.fleet.utils.tensor_parallel_utils.add_extra_synchronization(CODE
CRITICALtest/collective/fleet/test_zero_bubble_utils.py129 paddle.base.framework.core.eager.Tensor(CODE
CRITICALtest/collective/fleet/test_hdfs1.py57\tat org.apache.hadoop.util.FileSystemUtil.throwException(FileSystemUtil.java:164)CODE
CRITICALtest/collective/fleet/test_hdfs1.py58\tat org.apache.hadoop.util.FileSystemUtil.dealWithResponse(FileSystemUtil.java:118)CODE
CRITICALtest/collective/fleet/test_hdfs1.py59\tat org.apache.hadoop.lite.client.LiteClientImpl.getFileStatus(LiteClientImpl.java:696)CODE
CRITICALtest/collective/fleet/test_hdfs1.py60\tat org.apache.hadoop.fs.LibDFileSystemImpl.getFileStatus(LibDFileSystemImpl.java:297)CODE
CRITICALtest/collective/fleet/test_hdfs1.py61\tat org.apache.hadoop.fs.LiteFileSystem.getFileStatus(LiteFileSystem.java:514)CODE
CRITICALtest/collective/fleet/test_hdfs1.py62\tat org.apache.hadoop.fs.FsShell.test(FsShell.java:1092)CODE
CRITICALtest/collective/fleet/test_hdfs1.py63\tat org.apache.hadoop.fs.FsShell.run(FsShell.java:2285)CODE
CRITICALtest/collective/fleet/test_hdfs1.py64\tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)CODE
CRITICALtest/collective/fleet/test_hdfs1.py65\tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)CODE
CRITICALtest/collective/fleet/test_hdfs1.py66\tat org.apache.hadoop.fs.FsShell.main(FsShell.java:2353)CODE
CRITICALtest/legacy_test/test_fleet_runtime.py24 base = paddle.distributed.fleet.runtime.runtime_base.RuntimeBase()CODE
CRITICALtest/legacy_test/test_dist_base.py103 role = paddle.distributed.fleet.base.role_maker.PaddleCloudRoleMaker(CODE
CRITICALpython/paddle/nn/layer/conv.py887 return paddle.distributed.auto_parallel.ring_conv.RingConv2d.apply(STRING
CRITICALpython/paddle/nn/functional/sdpa.py551 out = paddle.distributed.auto_parallel.ring_attention.RingFlashAttention.apply(STRING
CRITICALpython/paddle/distributed/auto_parallel/moe_utils.py118 dims_mapping = paddle.distributed.auto_parallel.static.utils.convert_to_dims_mapping(CODE
CRITICALpython/paddle/distributed/ps/the_one_ps.py986 table_proto = self.ps_desc.worker_param.downpour_worker_param.downpour_table_param.add()CODE
CRITICALpython/paddle/distributed/ps/the_one_ps.py988 table_proto = self.ps_desc.server_param.downpour_server_param.downpour_table_param.add()CODE
CRITICALpython/paddle/distributed/ps/the_one_ps.py1001 table_proto = self.ps_desc.server_param.downpour_server_param.downpour_table_param.add()CODE
CRITICAL…e/distributed/fleet/meta_parallel/zero_bubble_utils.py85 weight.main_grad = paddle.base.framework.core.eager.Tensor(CODE
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_load.py61 model_state_dict = paddle.incubate.distributed.utils.io.load(path="path/to/load.pdparams")STRING
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_load.py65 optimizer_state_dict = paddle.incubate.distributed.utils.io.load(path="path/to/load.pdopt")STRING
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_save.py113 >>> paddle.incubate.distributed.utils.io.save(STRING
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_save.py118 >>> paddle.incubate.distributed.utils.io.save(STRING
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_save.py123 >>> paddle.incubate.distributed.utils.io.save(optimizer.state_dict(), path="path/to/save.pdopt", gather=0, sSTRING
CRITICAL…le/incubate/distributed/models/moe/gate/gshard_gate.py81 topk_idx = paddle.distributed.models.moe.utils._random_routing(CODE
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py279 table.accessor.sparse_commonsgd_param.naive.weight_bounds.extend(CODE
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py283 table.accessor.sparse_commonsgd_param.naive.weight_bounds.extend(CODE
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py297 table.accessor.sparse_commonsgd_param.adagrad.weight_bounds.extend(CODE
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py301 table.accessor.sparse_commonsgd_param.adagrad.weight_bounds.extend(CODE
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py321 table.accessor.sparse_commonsgd_param.adam.weight_bounds.extend(CODE
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py325 table.accessor.sparse_commonsgd_param.adam.weight_bounds.extend(CODE
CRITICALpython/paddle/jit/dy2static/program_translator.py1792 >>> paddle.jit.dy2static.program_translator.ProgramTranslator.get_instance()STRING
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py383 paddle.distributed.auto_parallel.static.mix_to_dist_pass.apply_mix2dist_pass(CODE
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py389 paddle.distributed.auto_parallel.static.mix_to_dist_pass.apply_mix2dist_pass(CODE
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py392 paddle.distributed.auto_parallel.static.pir_pass.apply_partition_pass(CODE
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py395 paddle.distributed.auto_parallel.static.pir_pass.ReshardPasses.apply_reshard_pass(CODE
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py399 paddle.distributed.auto_parallel.static.pir_pass.remove_unuseful_comm_op_pass(CODE
Self-Referential Comments96 hits · 264 pts
SeverityFileLineSnippetContext
MEDIUMtools/gen_tensor_stub.py264 '# This file is auto generated by `tools/gen_tensor_stub.py`.\n\n'CODE
MEDIUMtools/gen_ut_cmakelists.py550 cmds = """# This file is generated by ${PADDLE_ROOT}/tools/gen_ut_cmakelists.py.CODE
MEDIUMtest/compat/test_event_stream_apis.py168 # Create a tensor to ensure some work is doneCOMMENT
MEDIUMtest/compat/test_event_stream_apis.py320 # Create a stream for work executionCOMMENT
MEDIUMtest/ir/inference/test_trt_explicit_quantization.py82 # Define the inference programCOMMENT
MEDIUMtest/ir/inference/test_trt_explicit_quantization.py147 # Define the inference programCOMMENT
MEDIUMtest/collective/fleet/hybrid_parallel_pp_layers.py332 # Create a generator that yields (input, label) pairsCOMMENT
MEDIUMtest/ai_edited_test/test_ai_embedding_onehot.py120 # Create a weight matrix where some rows have norm > max_normCOMMENT
MEDIUMtest/ai_edited_test/test_ai_nn_utils.py106 # Create a new vector of the right sizeCOMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py52 # Create a fixed compute tensor for matmul.COMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py91 # Create a fixed tensor with known values using linspace.COMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py110 # Create a fixed source tensor with all elements equal to 3.14.COMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py114 # Create a destination tensor on CPU (pinned memory) initialized to zeros.COMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py148 # Create a large tensor (~100MB) on XPU.COMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload_loadtest.py50 # Create a large tensor on XPU.COMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload.py50 # Create a fixed compute tensor for matmulCOMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload.py89 # Create a fixed tensor with known values using linspace.COMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload.py108 # Create a fixed source tensor with all elements equal to 3.14.COMMENT
MEDIUMtest/xpu/test_xpu_async_offload_reload.py114 # Create a destination tensor on CPU (pinned memory) initialized to zeros.COMMENT
MEDIUMtest/xpu/test_xpu_pinned_memory.py37 # Create a sample numpy array.COMMENT
MEDIUMtest/xpu/test_xpu_pinned_memory.py40 # Create an XPU pinned memory place using the same interface as GPU pinned memory.COMMENT
MEDIUMtest/xpu/test_xpu_pinned_memory.py43 # Create a tensor in XPU pinned memory.COMMENT
MEDIUMtest/xpu/test_xpu_pinned_memory.py60 # Create a sample numpy array.COMMENT
MEDIUMtest/xpu/test_xpu_pinned_memory.py63 # Create a tensor on an XPU device.COMMENT
MEDIUMtest/xpu/test_xpu_share_memory.py94 # Create a Queue to send the IPC metadata.COMMENT
MEDIUMtest/legacy_test/test_tensor_requires_grad.py82 # Create a parameter - Parameters have stop_gradient=False by default (trainable)COMMENT
MEDIUMtest/legacy_test/test_tensor_requires_grad.py282 # Create a parameter - Parameters have stop_gradient=False by default (trainable)COMMENT
MEDIUMtest/legacy_test/test_sdpa_kernel.py135 # Create a maskCOMMENT
MEDIUMtest/legacy_test/test_api_compatibility_part5.py195 # Create a sparse CSR tensorCOMMENT
MEDIUMtest/legacy_test/test_api_compatibility_part5.py217 # Create a sparse CSR tensorCOMMENT
MEDIUMtest/legacy_test/test_api_compatibility_part5.py1055 # Create a simple layerCOMMENT
MEDIUMtest/legacy_test/test_interp_recompute_scale_factor.py491 # Create a scalar tensor with empty shape []COMMENT
MEDIUMtest/legacy_test/test_cuda_graph.py210 # Create a new input buffer and replace the pointerCOMMENT
MEDIUMtest/legacy_test/ernie_utils/top2_gate.py666 # Create a mask for 1st's expert per tokenCOMMENT
MEDIUMtest/legacy_test/ernie_utils/top2_gate.py680 # Create a mask for 2nd's expert per token using Gumbel-max trickCOMMENT
MEDIUMtest/auto_parallel/test_dist_tensor.py69 # Create a dist_attrCOMMENT
MEDIUMtest/prim/pir_prim/test_auto_recompute.py165 # The following code is related to coverage, although backward_ops,define_op,all_used_ops is not used, it neCOMMENT
MEDIUMtest/tensorrt/test_converter_model_bert.py46 # Create a TensorRTConfig with inputs as a required field.COMMENT
MEDIUMtest/tensorrt/test_converter_model_dummy.py45 # Create a TensorRTConfig with inputs as a required field.COMMENT
MEDIUMtest/tensorrt/test_converter_model_dummy.py86 # Create a TensorRTConfig with inputs as a required field.COMMENT
MEDIUMtest/tensorrt/test_converter_model_resnet50_move.py67 # Create a TensorRTConfig with inputs as a required field.COMMENT
MEDIUMtest/tensorrt/test_converter_model_resnet50.py72 # Create a TensorRTConfig with inputs as a required field.COMMENT
MEDIUMtest/tensorrt/test_converter_model_resnet50.py119 # Create a TensorRTConfig with inputs as a required field.COMMENT
MEDIUMtest/tensorrt/test_converter_model_resnet50.py175 # Create a TensorRTConfig with inputs as a required field.COMMENT
MEDIUMtest/tensorrt/test_converter_model_resnet50.py269 # Create a TensorRTConfig with inputs as a required field.COMMENT
MEDIUMtest/tensorrt/test_export.py151 # Create a TensorRTConfig with inputs as a required field.COMMENT
MEDIUMtest/tensorrt/test_export.py162 # Create a config for inference.COMMENT
MEDIUMtest/sot/test_24_exceptions.py42 # This function is designed to test scenarios involving only the `raise` statement.COMMENT
MEDIUMpython/paddle/reader/decorator.py392 >>> # Create a buffered reader, and the buffer size is 2.STRING
MEDIUMpython/paddle/compat/proxy.py366 # Create a new module object that will act as the "torch..." module.COMMENT
MEDIUMpython/paddle/compat/nn/__init__.py600 >>> # Define the linear layer.CODE
MEDIUMpython/paddle/nn/layer/common.py173 >>> # Define the linear layer.CODE
MEDIUMpython/paddle/optimizer/adagrad.py245 # Create the adagrad optimizer opSTRING
MEDIUMpython/paddle/optimizer/adadelta.py234 # Create the adadelta optimizer opSTRING
MEDIUMpython/paddle/framework/io_utils.py36# This file contains various utility functions that are used in static.io(io related api that used in static graph)COMMENT
MEDIUM…paddle/distributed/transpiler/distribute_transpiler.py1350 # Create a union-find data structure from optimize ops,STRING
MEDIUM…paddle/distributed/transpiler/distribute_transpiler.py2784 # Create a unit find data struct by optimize opsSTRING
MEDIUM…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py102 # Create a new ReadItem with combined dst_ranksCOMMENT
MEDIUMpython/paddle/distributed/auto_parallel/api.py819 >>> # Create a distributed attributeSTRING
MEDIUMpython/paddle/distributed/fleet/layers/mpu/random.py30# This file is inspired by Megatron to control random states for MP:COMMENT
36 more matches not shown…
Dead Code94 hits · 165 pts
SeverityFileLineSnippetContext
MEDIUMtest/standalone_executor/test_standalone_executor.py82CODE
MEDIUMtest/standalone_executor/test_standalone_executor.py84CODE
MEDIUMtest/standalone_executor/test_standalone_executor.py86CODE
MEDIUMtest/standalone_executor/test_standalone_executor.py88CODE
MEDIUMtest/standalone_executor/test_standalone_executor.py89CODE
MEDIUMtest/standalone_executor/test_standalone_executor.py100CODE
MEDIUMtest/standalone_executor/test_standalone_executor.py101CODE
MEDIUMtest/standalone_executor/test_standalone_executor.py105CODE
MEDIUMtest/standalone_executor/test_standalone_executor.py106CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py112CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py113CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py114CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py135CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py136CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py157CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py158CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py159CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py180CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py181CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py222CODE
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py223CODE
MEDIUMtest/ir/pir/cinn/test_cinn_sub_graph.py129CODE
MEDIUMtest/ir/pir/cinn/test_cinn_sub_graph.py132CODE
MEDIUM…t/ir/pir/cinn/symbolic/test_sub_graph_chatglm2_5_st.py114CODE
MEDIUMtest/custom_runtime/process_group_xccl.py130CODE
MEDIUMtest/custom_runtime/process_group_xccl.py131CODE
MEDIUMtest/custom_runtime/process_group_xccl.py132CODE
MEDIUMtest/custom_runtime/process_group_xccl.py133CODE
MEDIUMtest/custom_runtime/process_group_xccl.py134CODE
MEDIUMtest/custom_runtime/process_group_xccl.py135CODE
MEDIUMtest/custom_runtime/process_group_xccl.py136CODE
MEDIUMtest/custom_runtime/process_group_xccl.py137CODE
MEDIUMtest/custom_runtime/process_group_xccl.py138CODE
MEDIUMtest/custom_runtime/process_group_xccl.py147CODE
MEDIUMtest/custom_runtime/process_group_xccl.py148CODE
MEDIUMtest/custom_runtime/process_group_xccl.py153CODE
MEDIUMtest/custom_runtime/process_group_xccl.py157CODE
MEDIUMtest/custom_runtime/process_group_xccl.py158CODE
MEDIUMtest/custom_runtime/process_group_xccl.py159CODE
MEDIUMtest/custom_runtime/process_group_xccl.py160CODE
MEDIUMtest/custom_runtime/process_group_xccl.py161CODE
MEDIUMtest/custom_runtime/process_group_xccl.py162CODE
MEDIUMtest/custom_runtime/process_group_xccl.py163CODE
MEDIUMtest/custom_runtime/process_group_xccl.py164CODE
MEDIUMtest/custom_runtime/process_group_xccl.py165CODE
MEDIUMtest/custom_runtime/process_group_xccl.py168CODE
MEDIUMtest/custom_runtime/process_group_xccl.py169CODE
MEDIUMtest/custom_runtime/process_group_xccl.py178CODE
MEDIUMtest/custom_runtime/process_group_xccl.py181CODE
MEDIUMtest/custom_runtime/process_group_xccl.py186CODE
MEDIUMtest/custom_runtime/process_group_xccl.py190CODE
MEDIUMtest/custom_runtime/process_group_xccl.py191CODE
MEDIUMtest/custom_runtime/process_group_xccl.py192CODE
MEDIUMtest/custom_runtime/process_group_xccl.py193CODE
MEDIUMtest/custom_runtime/process_group_xccl.py194CODE
MEDIUMtest/custom_runtime/process_group_xccl.py195CODE
MEDIUMtest/custom_runtime/process_group_xccl.py206CODE
MEDIUMtest/custom_runtime/process_group_xccl.py210CODE
MEDIUMtest/custom_runtime/process_group_xccl.py211CODE
MEDIUMtest/custom_runtime/process_group_xccl.py212CODE
34 more matches not shown…
Structural Annotation Overuse61 hits · 112 pts
SeverityFileLineSnippetContext
LOWtest/ai_edited_test/test_ai_layer_gen.py18# NOTE: This module provides code generation utilities for Paddle layer functions.COMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py136 # Step 1: Pad L/R (pad_left=1, pad_right=0)COMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py140 # Step 2: Pad T/B (pad_top=1, pad_bottom=2) on [Row A', Row B']COMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py178 # Step 1: Pad L/R (pad_left=1, pad_right=0) on W-dimCOMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py182 # Step 2: Pad T/B (pad_top=1, pad_bottom=2) on H-dim [Row A', Row B']COMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py213 # Step 1: Pad L/R (pad_left=1, pad_right=1)COMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py217 # Step 2: Pad T/B (pad_top=1, pad_bottom=1) on [Row A', Row B']COMMENT
LOWpython/paddle/optimizer/muon.py551 # Step 1: Momentum updateCOMMENT
LOWpython/paddle/optimizer/muon.py562 # Step 2: Reshape update buffer to 2D matrix.COMMENT
LOWpython/paddle/optimizer/muon.py581 # Step 3: Newton-Schulz orthogonalisationCOMMENT
LOW…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py70 # Step 1: Group by tensor_nameCOMMENT
LOW…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py77 # Step 2: For each tensor_name group, further group by all attributes except dst_rankCOMMENT
LOW…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py93 # Step 3: Combine items with the same key into a single ReadItem with all dst_ranksCOMMENT
LOWpython/paddle/distributed/auto_parallel/ring_conv.py629 # Step 1: Reconstruct `in_tensor_augmented` (original input to local conv in forward)COMMENT
LOWpython/paddle/distributed/auto_parallel/ring_conv.py641 # Step 2: Pad `grad_out` to match the output shape of conv on augmented inputCOMMENT
LOWpython/paddle/distributed/auto_parallel/ring_conv.py666 # Step 3: Local backward computation using augmented/padded tensorsCOMMENT
LOWpython/paddle/distributed/auto_parallel/ring_conv.py672 # Step 4: Aggregate "halo" regions for grad_inputCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py969 # Step 3: adjust the process meshes for special opsCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py972 # Step 4: adjust the process meshes between graphsCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py722 # Step 1: set the process mesh of while_op to the merged process mesh of its subblockCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py735 # Step 2: set the related nodes of while_op to the process mesh of while_opCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py788 # Step 3: set the process meshes of the inputs in while_op to the process meshes of the outside input nodesCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py816 # Step 4: set the process meshes of the outputs in while_op to the process meshes of the outside output nodeCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py899 # Step 1: Set the annotated process meshes from tensors to the first ops using themCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py936 # Step 2: set the process meshes of ops with the nearest op before themCOMMENT
LOW…thon/paddle/distributed/auto_parallel/static/engine.py516 # Step 1: find the reader opsCOMMENT
LOW…thon/paddle/distributed/auto_parallel/static/engine.py521 # Step 2: insert the new reader ops to cppCOMMENT
LOW…thon/paddle/distributed/auto_parallel/static/engine.py535 # Step 3: insert the new reader ops to pythonCOMMENT
LOW…thon/paddle/distributed/auto_parallel/static/engine.py540 # Step 4: remove the old reader ops from python and cppCOMMENT
LOW…dle/distributed/auto_parallel/static/cost/base_cost.py314 # NOTE: The input_name of comm ops used usually is X.COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py712 # Step 1: nF0COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py717 # Step 2: nF0F1COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py730 # Step 3: nB1W1F1 (Use zero bubble)COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py797 # Step 5: nB1F1B0COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py803 # Step 6: nB1B0 (The second half of the passes use zero bubble)COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py814 # Step 7: nWB0 (Use zero bubble)COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py820 # Step 8: nWCOMMENT
LOW…imizers/dygraph_optimizer/hybrid_parallel_optimizer.py777 # Step 4: Reduce norm_tensor for each groupCOMMENT
LOWpaddle/fluid/imperative/layout_transformer.h185 // Step 1: Adjust the data_layout attr to the desired layoutCOMMENT
LOWpaddle/fluid/imperative/layout_transformer.h205 // Step 2: Transpose the specified input for Op and set the transposed var'sCOMMENT
LOWpaddle/fluid/imperative/layout_transformer.h219 // Step 3: Set the Op's layout sensitive outs var.COMMENT
LOWpaddle/phi/kernels/impl/slice_kernel_impl.h36 // Step 1: Get the accurate attribute value of starts and endsCOMMENT
LOWpaddle/phi/kernels/impl/slice_kernel_impl.h39 // Step 2: Compute outputCOMMENT
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h107 // Step 1: Set the value of out at `_index` to zeroCOMMENT
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h133 // Step 2: Set a tensor with the same shape as out tensor. And its data atCOMMENT
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h172 // Step 3: Set out tensor with value_tensorCOMMENT
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h275 // Step 2: Compute outputCOMMENT
LOWpaddle/phi/kernels/gpu/rms_norm_cuda_kernel.h2179 // Step 1: Convert var -> rstdCOMMENT
LOWpaddle/phi/kernels/gpu/rms_norm_cuda_kernel.h2200 // Step 2: Compute dX using vectorized or non-vectorized kernelCOMMENT
LOWpaddle/phi/kernels/gpu/rms_norm_cuda_kernel.h2257 // Step 3: Compute dgamma and dbetaCOMMENT
LOWpaddle/phi/kernels/gpu/elementwise_grad.h459 // Step 1: tmp_dy = -dout (elementwise negation via broadcast).COMMENT
LOWpaddle/phi/kernels/gpu/elementwise_grad.h465 // Step 2: dy = sum_to(tmp_dy) (reduce over broadcast dims via SumKernel).COMMENT
LOWpaddle/phi/kernels/funcs/layer_norm_impl.cu.h243 // Step 1: Reduce to calculate mean and varCOMMENT
LOWpaddle/phi/kernels/funcs/layer_norm_impl.cu.h269 // Step 2: Calculate yCOMMENT
LOWpaddle/phi/backends/gpu/cuda/cuda_graph.h118// NOTE: This class use a singleton design pattern ensures there's only aCOMMENT
LOWpaddle/phi/backends/gpu/rocm/hip_graph.h120// NOTE: This class use a singleton design pattern ensures there's only aCOMMENT
LOWpaddle/phi/backends/custom/cuda_graph.h122// NOTE: This class use a singleton design pattern ensures there's only aCOMMENT
LOW…s/skills/paddle-design-compiler/references/executor.md31#### Step 1: BuildInstruction — 构建 Instruction 列表COMMENT
LOW…s/skills/paddle-design-compiler/references/executor.md52#### Step 2: BuildInstructionDependences — 构建依赖 DAGCOMMENT
LOW…s/skills/paddle-design-compiler/references/executor.md62#### Step 3: Stream 调度分析COMMENT
1 more matches not shown…
Verbosity Indicators52 hits · 98 pts
SeverityFileLineSnippetContext
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py136 # Step 1: Pad L/R (pad_left=1, pad_right=0)COMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py140 # Step 2: Pad T/B (pad_top=1, pad_bottom=2) on [Row A', Row B']COMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py178 # Step 1: Pad L/R (pad_left=1, pad_right=0) on W-dimCOMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py182 # Step 2: Pad T/B (pad_top=1, pad_bottom=2) on H-dim [Row A', Row B']COMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py213 # Step 1: Pad L/R (pad_left=1, pad_right=1)COMMENT
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py217 # Step 2: Pad T/B (pad_top=1, pad_bottom=1) on [Row A', Row B']COMMENT
LOWpython/paddle/optimizer/muon.py551 # Step 1: Momentum updateCOMMENT
LOWpython/paddle/optimizer/muon.py562 # Step 2: Reshape update buffer to 2D matrix.COMMENT
LOWpython/paddle/optimizer/muon.py581 # Step 3: Newton-Schulz orthogonalisationCOMMENT
LOW…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py70 # Step 1: Group by tensor_nameCOMMENT
LOW…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py77 # Step 2: For each tensor_name group, further group by all attributes except dst_rankCOMMENT
LOW…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py93 # Step 3: Combine items with the same key into a single ReadItem with all dst_ranksCOMMENT
LOWpython/paddle/distributed/auto_parallel/ring_conv.py629 # Step 1: Reconstruct `in_tensor_augmented` (original input to local conv in forward)COMMENT
LOWpython/paddle/distributed/auto_parallel/ring_conv.py641 # Step 2: Pad `grad_out` to match the output shape of conv on augmented inputCOMMENT
LOWpython/paddle/distributed/auto_parallel/ring_conv.py666 # Step 3: Local backward computation using augmented/padded tensorsCOMMENT
LOWpython/paddle/distributed/auto_parallel/ring_conv.py672 # Step 4: Aggregate "halo" regions for grad_inputCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py969 # Step 3: adjust the process meshes for special opsCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py972 # Step 4: adjust the process meshes between graphsCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py722 # Step 1: set the process mesh of while_op to the merged process mesh of its subblockCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py735 # Step 2: set the related nodes of while_op to the process mesh of while_opCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py788 # Step 3: set the process meshes of the inputs in while_op to the process meshes of the outside input nodesCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py816 # Step 4: set the process meshes of the outputs in while_op to the process meshes of the outside output nodeCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py899 # Step 1: Set the annotated process meshes from tensors to the first ops using themCOMMENT
LOW…/paddle/distributed/auto_parallel/static/completion.py936 # Step 2: set the process meshes of ops with the nearest op before themCOMMENT
LOW…thon/paddle/distributed/auto_parallel/static/engine.py516 # Step 1: find the reader opsCOMMENT
LOW…thon/paddle/distributed/auto_parallel/static/engine.py521 # Step 2: insert the new reader ops to cppCOMMENT
LOW…thon/paddle/distributed/auto_parallel/static/engine.py535 # Step 3: insert the new reader ops to pythonCOMMENT
LOW…thon/paddle/distributed/auto_parallel/static/engine.py540 # Step 4: remove the old reader ops from python and cppCOMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py712 # Step 1: nF0COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py717 # Step 2: nF0F1COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py730 # Step 3: nB1W1F1 (Use zero bubble)COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py797 # Step 5: nB1F1B0COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py803 # Step 6: nB1B0 (The second half of the passes use zero bubble)COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py814 # Step 7: nWB0 (Use zero bubble)COMMENT
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py820 # Step 8: nWCOMMENT
LOW…imizers/dygraph_optimizer/hybrid_parallel_optimizer.py777 # Step 4: Reduce norm_tensor for each groupCOMMENT
LOWpaddle/fluid/imperative/layout_transformer.h185 // Step 1: Adjust the data_layout attr to the desired layoutCOMMENT
LOWpaddle/fluid/imperative/layout_transformer.h205 // Step 2: Transpose the specified input for Op and set the transposed var'sCOMMENT
LOWpaddle/fluid/imperative/layout_transformer.h219 // Step 3: Set the Op's layout sensitive outs var.COMMENT
LOWpaddle/phi/kernels/impl/slice_kernel_impl.h36 // Step 1: Get the accurate attribute value of starts and endsCOMMENT
LOWpaddle/phi/kernels/impl/slice_kernel_impl.h39 // Step 2: Compute outputCOMMENT
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h107 // Step 1: Set the value of out at `_index` to zeroCOMMENT
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h133 // Step 2: Set a tensor with the same shape as out tensor. And its data atCOMMENT
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h172 // Step 3: Set out tensor with value_tensorCOMMENT
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h275 // Step 2: Compute outputCOMMENT
LOWpaddle/phi/kernels/gpu/rms_norm_cuda_kernel.h2179 // Step 1: Convert var -> rstdCOMMENT
LOWpaddle/phi/kernels/gpu/rms_norm_cuda_kernel.h2200 // Step 2: Compute dX using vectorized or non-vectorized kernelCOMMENT
LOWpaddle/phi/kernels/gpu/rms_norm_cuda_kernel.h2257 // Step 3: Compute dgamma and dbetaCOMMENT
LOWpaddle/phi/kernels/gpu/elementwise_grad.h459 // Step 1: tmp_dy = -dout (elementwise negation via broadcast).COMMENT
LOWpaddle/phi/kernels/gpu/elementwise_grad.h465 // Step 2: dy = sum_to(tmp_dy) (reduce over broadcast dims via SumKernel).COMMENT
LOWpaddle/phi/kernels/funcs/layer_norm_impl.cu.h243 // Step 1: Reduce to calculate mean and varCOMMENT
LOWpaddle/phi/kernels/funcs/layer_norm_impl.cu.h269 // Step 2: Calculate yCOMMENT
AI Slop Vocabulary47 hits · 88 pts
SeverityFileLineSnippetContext
LOWtools/dockerfile/build_scripts/build.sh91# So let's just use the same one pip and everyone usesCOMMENT
LOWtest/ir/inference/test_onednn_prelu_op.py44 # not valid case, just return 0COMMENT
LOWtest/ir/inference/test_onednn_prelu_op.py56 # not valid case, just return 0COMMENT
LOWtest/xpu/process_group_bkcl.py83 # XPU don't support event query by now, so just use sync op hereCOMMENT
MEDIUMtest/legacy_test/test_cos.py136 """Test float32 cos with large shape for comprehensive coverage.STRING
MEDIUMtest/legacy_test/test_cos.py149 """Test float64 cos with large shape for comprehensive coverage.STRING
LOWtest/legacy_test/test_eager_tensor.py2154 # just return selfCOMMENT
LOWtest/legacy_test/prim_op_test.py150 # if this is a list (test_unsqueeze2_op): we just pass it into the python api.COMMENT
MEDIUMtest/legacy_test/test_einsum_v2.py235# self.sample = {"paradigm": "i->iii", "data": ["x"]}COMMENT
MEDIUMtest/legacy_test/test_einsum_v2.py239# self.sample = {"paradigm": "i...->i...i", "data": ["S"]}COMMENT
MEDIUMtest/legacy_test/test_pow.py501 """Test float32 pow with large shape on CPU for comprehensive coverage."""STRING
MEDIUMtest/legacy_test/test_pow.py513 """Test float64 pow with large shape on CPU for comprehensive coverage."""STRING
MEDIUMtest/legacy_test/test_exp.py137 """Test float32 exp with large shape for comprehensive coverage.STRING
MEDIUMtest/legacy_test/test_exp.py149 """Test float64 exp with large shape for comprehensive coverage.STRING
MEDIUMtest/legacy_test/test_pylayer_clear_dataptr.py361 # confirming the erase path is robust against missing entries.COMMENT
MEDIUMtest/legacy_test/test_sin.py136 """Test float32 sin with large shape for comprehensive coverage.STRING
MEDIUMtest/legacy_test/test_sin.py149 """Test float64 sin with large shape for comprehensive coverage.STRING
LOWpython/paddle/distributed/parallel.py1116 # here just set correctly place to usersCOMMENT
LOWpython/paddle/distributed/auto_parallel/moe_utils.py83 # assume the each rank has the same tensor shape for now, just use the local shape to calculate the global shapeCOMMENT
LOWpython/paddle/distributed/auto_parallel/api.py348 # None calc rank, just return no init.COMMENT
LOWpython/paddle/distributed/auto_parallel/api.py514 # just use the local shape to calculate the global shapeCOMMENT
MEDIUM…n/paddle/distributed/auto_parallel/pipelining/stage.py956 # A more robust interface implementation is desired in the future.COMMENT
LOW…addle/distributed/auto_parallel/static/dist_context.py916 # here we just set there process_mesh to the first one.COMMENT
LOW…thon/paddle/distributed/auto_parallel/static/engine.py1170 # so, just return here and need to reimplement the logics belowCOMMENT
LOW…e/distributed/auto_parallel/static/operators/common.py311 # For now, just return the first compatible implCOMMENT
MEDIUM…e/distributed/auto_parallel/static/operators/common.py479 # TODO utilize the batch_dim attr instead of "0" in futureCOMMENT
LOW…e/distributed/fleet/meta_parallel/pipeline_parallel.py3371 # else just return logits without loss func calcCOMMENT
LOW…e/distributed/fleet/meta_parallel/pipeline_parallel.py3721 # else just return logits without loss func calcCOMMENT
LOW…e/distributed/fleet/meta_parallel/pipeline_parallel.py4178 # else just return logits without loss func calcCOMMENT
MEDIUM…buted/fleet/meta_parallel/parallel_layers/pp_layers.py725 # Set color for shared parameters to facilitate synchronization of parametersCOMMENT
LOW…buted/fleet/meta_parallel/parallel_layers/pp_layers.py1033 # For 1f1b scheduler, just use run_function listCOMMENT
LOWpython/paddle/io/dataloader/flat.py140 # simply return structureCOMMENT
LOWpython/paddle/utils/dlpack.py265 # Old versions just call the converterCOMMENT
LOWpython/paddle/incubate/jit/inference_decorator.py621 # if function has already been decorated by @paddle.incubate.jit.inference(), then we just return it.COMMENT
LOWpython/paddle/jit/dy2static/convert_operators.py478 # IfExpr will return a non-None return value, so we just return ret.COMMENT
LOWpython/paddle/jit/dy2static/partial_program.py1132 # can't just create a new program, we need copy the vardesc.COMMENT
MEDIUMpython/paddle/jit/sot/utils/envs.py168 # Enable information collection flags to facilitate debugging and analysisCOMMENT
LOW…e/jit/sot/opcode_translator/executor/function_graph.py902 # just set it back in SIR, and return outputs to replace tensor meta (it might changes?)COMMENT
LOW…t/sot/opcode_translator/executor/variables/callable.py270 # do nothing. just return None.COMMENT
MEDIUMpaddle/cinn/ir/ir.h1009// TODO(liujinnan): Essentially IterExpr is not IndexExpr, so it does notCOMMENT
MEDIUMpaddle/cinn/hlir/framework/pir/broadcast_with_cf.h26// eliminated, and we utilize broadcast shape conditions to determine whichCOMMENT
MEDIUMpaddle/fluid/pybind/slice_utils.h290// _PySlice_GetIndices. Try to use _PySlice_Unpack which is more robust thanCOMMENT
MEDIUMpaddle/phi/backends/gpu/cuda/cuda_graph.h109// utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup.COMMENT
MEDIUMpaddle/phi/backends/gpu/rocm/hip_graph.h111// utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup.COMMENT
MEDIUMpaddle/phi/backends/onednn/onednn_reuse.h1041 // rare shapes. By extending the shape to utilize oneDNN optimized binaryCOMMENT
MEDIUMpaddle/phi/backends/custom/cuda_graph.h113// utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup.COMMENT
LOWpaddle/phi/api/generator/dist_api_gen.py2024 # InferSPMD rules, just set replicated dist_attr for them.COMMENT
Fake / Example Data59 hits · 76 pts
SeverityFileLineSnippetContext
LOWtest/legacy_test/test_retain_graph.py54 fake_data,CODE
LOWtest/legacy_test/test_retain_graph.py64 interpolatesv = fake_dataCODE
LOWtest/legacy_test/test_retain_graph.py75 interpolatesv = alpha * real_data + ((1 - alpha) * fake_data)CODE
LOWtest/legacy_test/test_audio_backend.py147 fake_data = np.array([0, 1, 2, 3, 4, 6], np.float32)CODE
LOWtest/legacy_test/test_audio_backend.py148 soundfile.write(wave_wav_path, fake_data, 1, subtype="DOUBLE")CODE
LOWtest/legacy_test/test_paddle_save_load.py292 fake_data = np.zeros([3, 2, 1, 2, 3])CODE
LOWtest/legacy_test/test_paddle_save_load.py294 set_value(x, fake_data, '1')CODE
LOWtest/legacy_test/test_paddle_save_load.py296 set_value(x, fake_data)CODE
LOWtest/legacy_test/test_paddle_save_load.py298 set_value(var, fake_data)CODE
LOWtest/legacy_test/test_nanmedian.py392 # self.fake_data["row_nan_int64"] = row_data.astype(np.int64)COMMENT
LOWtest/legacy_test/test_nanmedian.py393 # self.fake_data["row_nan_int32"] = row_data.astype(np.int32)COMMENT
LOWtest/legacy_test/test_nanmedian.py130 single_partial_nan = self.fake_data["single_axis_normal"].copy()CODE
LOWtest/legacy_test/test_nanmedian.py132 multi_partial_nan = self.fake_data["multi_axis_normal"].copy()CODE
LOWtest/legacy_test/test_nanmedian.py134 self.fake_data["single_axis_partial_nan"] = single_partial_nanCODE
LOWtest/legacy_test/test_nanmedian.py135 self.fake_data["multi_axis_partial_nan"] = multi_partial_nanCODE
LOWtest/legacy_test/test_nanmedian.py141 self.fake_data["row_nan_even"] = row_data.astype(np.float32)CODE
LOWtest/legacy_test/test_nanmedian.py142 self.fake_data["row_nan_float64"] = row_data.astype(np.float64)CODE
LOWtest/legacy_test/test_nanmedian.py148 self.fake_data["col_nan_odd"] = col_data.astype(np.float32)CODE
LOWtest/legacy_test/test_nanmedian.py232 for name, data in self.fake_data.items():CODE
LOWtest/legacy_test/test_nanmedian.py236 test_axis_case(self.fake_data["row_nan_even"], axis)CODE
LOWtest/legacy_test/test_nanmedian.py237 test_axis_case(self.fake_data["col_nan_odd"], axis)CODE
LOWtest/legacy_test/test_nanmedian.py379 single_partial_nan = self.fake_data["single_axis_normal"].copy()CODE
LOWtest/legacy_test/test_nanmedian.py381 multi_partial_nan = self.fake_data["multi_axis_normal"].copy()CODE
LOWtest/legacy_test/test_nanmedian.py383 self.fake_data["single_axis_partial_nan"] = single_partial_nanCODE
LOWtest/legacy_test/test_nanmedian.py384 self.fake_data["multi_axis_partial_nan"] = multi_partial_nanCODE
LOWtest/legacy_test/test_nanmedian.py390 self.fake_data["row_nan_even"] = row_data.astype(np.float32)CODE
LOWtest/legacy_test/test_nanmedian.py391 self.fake_data["row_nan_float64"] = row_data.astype(np.float64)CODE
LOWtest/legacy_test/test_nanmedian.py399 self.fake_data["col_nan_odd"] = col_data.astype(np.float32)CODE
LOWtest/legacy_test/test_nanmedian.py477 for name, data in self.fake_data.items():CODE
LOWtest/legacy_test/test_nanmedian.py481 test_axis_case(self.fake_data["row_nan_even"], axis)CODE
LOWtest/legacy_test/test_nanmedian.py482 test_axis_case(self.fake_data["col_nan_odd"], axis)CODE
LOWtest/legacy_test/test_nanmedian.py119 self.fake_data = {CODE
LOWtest/legacy_test/test_nanmedian.py165 data = self.fake_data["col_nan_odd"]CODE
LOWtest/legacy_test/test_nanmedian.py267 data = self.fake_data["col_nan_odd"]CODE
LOWtest/legacy_test/test_nanmedian.py368 self.fake_data = {CODE
LOWtest/legacy_test/test_nanmedian.py416 data = self.fake_data["col_nan_odd"]CODE
LOWtest/legacy_test/test_nanmedian.py516 data = self.fake_data["col_nan_odd"]CODE
LOWtest/dygraph_to_static/test_partial_program.py52def fake_data(shape):CODE
LOWtest/dygraph_to_static/test_partial_program.py63 self.x = fake_data([10, 16])CODE
LOWtest/dygraph_to_static/test_partial_program.py65 fake_data([10, 16]),CODE
LOWtest/dygraph_to_static/test_partial_program.py69 'z': [fake_data([10, 12]), fake_data([10, 12])],CODE
LOWtest/dygraph_to_static/test_partial_program.py70 'c': fake_data([10, 10]),CODE
LOWtest/dygraph_to_static/test_partial_program.py71 'd': {'da': 12, 'dc': fake_data([10, 10])},CODE
LOWtest/dygraph_to_static/test_partial_program.py101 self.x = fake_data([10, 16])CODE
LOWtest/dygraph_to_static/test_partial_program.py102 self.y = fake_data([10, 16])CODE
LOWpython/paddle/quantization/quantize.py67 >>> dummy_data = paddle.rand([1, 1, 32, 32], dtype="float32")CODE
LOWpython/paddle/quantization/quantize.py68 >>> paddle.jit.save(converted_model, "./quant_deploy", [dummy_data])CODE
LOWpython/paddle/base/framework.py7809 >>> rlt = paddle.static.data("fake_data", shape=[-1, 1, 1], dtype='float32')CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h84 for (auto fake_name : attr_names) {CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h85 size_t pos = fake_name.find(suffix);CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h87 std::string name = fake_name.substr(0, pos);CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h89 PADDLE_GET_CONST(std::vector<float>, op_desc->GetAttr(fake_name));CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h91 op_desc->RemoveAttr(fake_name);CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h116 for (auto fake_name : attr_names) {CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h118 size_t pos = fake_name.find(suffix_is_unsigned);CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h121 std::string unsigned_var_name = fake_name;CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h125 std::string var_name = fake_name.substr(0, pos);CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h126 size_t unsigned_pos = fake_name.find(unsigned_flag);CODE
LOWpaddle/fluid/framework/ir/onednn/onednn_pass_util.h128 fake_name.erase(unsigned_pos, unsigned_flag.length());CODE
Redundant / Tautological Comments56 hits · 72 pts
SeverityFileLineSnippetContext
LOWtools/CheckPRTemplate.py150 # Check if involves precision changeCOMMENT
LOWtools/CheckPRTemplate.py210 # Check if all required approvers have approvedCOMMENT
LOWtest/compat/test_device_apis.py192 # Set device to GPUCOMMENT
LOWtest/compat/test_device_apis.py373 # Set device to custom deviceCOMMENT
LOWtest/compat/test_device_apis.py559 # Set device to GPUCOMMENT
LOWtest/compat/test_device_apis.py631 # Set device to custom deviceCOMMENT
LOWtest/compat/test_paddle_cuda_apis.py49# Check if we should skip all testsCOMMENT
LOWtest/ipu/op_test_ipu.py76 # Check if ipumodel mode is enabledCOMMENT
LOWtest/ir/pir/fused_pass/test_pir_horizontal_fuse_pass.py219 # Assign results to the programCOMMENT
LOWtest/ai_edited_test/test_ai_moe_permute.py196 # Assign tokens to expertsCOMMENT
LOWtest/ai_edited_test/test_ai_random_state.py59 # Set device to CPU to ensure random numbers are generated on CPUCOMMENT
LOWtest/legacy_test/test_tensor_fill_diagonal_.py296 # Check if diagonal elements are updated correctlyCOMMENT
LOWtest/legacy_test/test_tensor_fill_diagonal_.py299 # Check if off-diagonal elements remain 0COMMENT
LOWtest/legacy_test/test_eager_tensor.py569 False # Set stop_gradient to be False, supported auto-gradCODE
LOWtest/legacy_test/test_sequential.py52 # Check if layer names are preserved in orderCOMMENT
LOWtest/legacy_test/test_sequential.py57 # Check if layers can be accessed by nameCOMMENT
LOWtest/legacy_test/test_mean_op_v1.py28 # Check if we're using XPUCOMMENT
LOWtest/legacy_test/test_mean_op_v1.py33 # Check if we're using OneDNNCOMMENT
LOWtest/legacy_test/test_fused_act_dequant_op.py201 # Check if s needs to be expanded to match x shapeCOMMENT
LOWtest/legacy_test/test_compat_nn_linear.py442 # Check if weights are the sameCOMMENT
LOWtest/legacy_test/test_executor_and_use_program_cache.py44 # Set parallel to False to use the default executor.COMMENT
LOWtest/legacy_test/test_narrow.py60 # Check if they both changed to test_val (alias)COMMENT
LOWtest/legacy_test/test_tensor_type_convert_api.py139 # Check if conversion method existsCOMMENT
LOWtest/legacy_test/test_tensor_type_convert_api.py220 # Check if the method existsCOMMENT
LOWtest/legacy_test/test_nn_functional_interpolate.py248 # Check if grad is not all zeros (it shouldn't be)COMMENT
LOWtest/dygraph_to_static/check_approval.py135 # Check if the test class inherits from unittest.TestCaseCOMMENT
LOWpython/paddle/nn/functional/pooling.py655 # Check if dilation is non-trivial (not all ones)COMMENT
LOWpython/paddle/nn/functional/pooling.py1267 # Check if dilation is non-trivial (not all ones)STRING
LOWpython/paddle/nn/functional/pooling.py1457 # Check if dilation is non-trivial (not all ones)STRING
LOWpython/paddle/framework/restricted_unpickler.py134 # Check if class has __dict__ (user-defined classes do)COMMENT
LOWpython/paddle/framework/restricted_unpickler.py155 # Check if this base class defines the dangerous methodCOMMENT
LOWpython/paddle/distributed/parallel.py733 # Print result in process 1:STRING
LOWpython/paddle/distributed/parallel.py737 # Print result in process 2:STRING
LOW…uted/fleet/meta_parallel/parallel_layers/spec_utils.py94 # Check if a layer class is provided as a spec or if the layer pathCOMMENT
LOW…/paddle/distributed/fleet/base/distributed_strategy.py346 # Check if attribute exists in self or in the protobuf strategy objectCOMMENT
LOWpython/paddle/autograd/backward_utils.py721 # Check if operands_source sizes matchCOMMENT
LOWpython/paddle/autograd/backward_utils.py727 # Check if op_results size matches operands_sourceCOMMENT
LOWpython/paddle/autograd/backward_utils.py751 # Check if yield_op is indeed a yield operationCOMMENT
LOWpython/paddle/autograd/backward_utils.py755 # Check if operands_source size of yield_op matches op_results size of while_opCOMMENT
LOWpython/paddle/cuda/__init__.py594 # Check if any device type has been compiled/initializedSTRING
LOWpython/paddle/cuda/__init__.py603 # Check if any custom device type is compiled/initializedSTRING
LOWpython/paddle/utils/decorator_utils.py1351 # Check if Paddle style (axes is list) or PyTorch style (dim is int)COMMENT
LOWpython/paddle/utils/decorator_utils.py1395 # Check if all sizes are integers (variable args mode)COMMENT
LOWpython/paddle/utils/cpp_extension/cpp_extension.py1460 # Check if dist-info existsSTRING
LOWpython/paddle/utils/cpp_extension/cpp_extension.py1529 # Check if dist-info existsSTRING
LOWpython/paddle/tensorrt/register.py85 # Check if the version range includes 'x' (e.g., "8.x")COMMENT
LOWpython/paddle/static/nn/static_pylayer.py111 # Set OpRole to `backward`. The operators marked as `backward` are expected to be pruned in PruneBackward.COMMENT
LOWpython/paddle/tensor/creation.py2287 # Check if start/end/step contain floating point valuesSTRING
LOWpython/paddle/tensor/einsum.py397 # Check if conditions hold for turning the operation into a matmulCOMMENT
LOWpython/paddle/tensor/math.py4650 # Check if the input tensor is of bool type and raise an errorSTRING
LOWpython/paddle/tensor/math.py4683 # Check if the input tensor is of bool type and raise an errorSTRING
LOWpython/paddle/base/executor.py2099 # Check if paddle.static.data() variable no feed dataCOMMENT
LOW.github/workflows/cherry-pick.yml95 # Check if target branch exists on remoteCOMMENT
LOW.github/workflows/cherry-pick.yml161 # Check if PR already existsCOMMENT
LOW.github/actions/skip-skill/check_skip.sh36# Check if PR eventCOMMENT
LOW.github/actions/skip-skill/check_skip.sh65 # Check if files match ignore patternsCOMMENT
AI Response Leakage8 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtest/legacy_test/test_imperative_auto_prune.py152 # In this example, the forward method involves all paramsCOMMENT
HIGHpython/paddle/distributed/io.py558 >>> # In this example, the inference program was saved in the fileSTRING
HIGHpython/paddle/tensorrt/export.py703 >>> # In this example, the user specifies the actual input.STRING
HIGHpython/paddle/static/io.py570 # In this example, the save_inference_mode inference will prune the defaultSTRING
HIGHpython/paddle/static/io.py917 # In this example, the inference program was saved in fileSTRING
HIGHpython/paddle/static/input.py111 # In this example, we will feed x and y with np-ndarray "1"STRING
HIGHpython/paddle/static/pir_io.py848 # In this example, the inference program was saved in fileSTRING
HIGHpython/paddle/base/data_feeder.py518 >>> # In this example, reader - generator will return a list of ndarray of 3 elementsSTRING
Example Usage Blocks10 hits · 14 pts
SeverityFileLineSnippetContext
LOWtools/gen_alias_mapping.sh24# Usage:COMMENT
LOWtools/dockerfile/build-image.sh19# Usage:COMMENT
LOWtools/enforce/grep_invalid_enforce.sh20# Usage:COMMENT
LOWtest/dygraph_to_static/dygraph_to_static_utils.py45# Usage:STRING
LOWpython/paddle/incubate/cc/compiler.py36# Usage:COMMENT
LOWpython/paddle/incubate/cc/typing.py24# Usage:COMMENT
LOWpython/paddle/incubate/cc/typing.py43# Usage:COMMENT
LOWpython/paddle/incubate/cc/typing.py59# Usage:COMMENT
LOWpaddle/.set_python_path.sh19# Usage:COMMENT
LOW…cinn/runtime/custom_device/custom_device_backend_api.h102/// Usage example:COMMENT
Slop Phrases5 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMpython/paddle/paddle_version.py56 # Ideally this should work for most cases by attempting to groupCOMMENT
MEDIUMpython/paddle/nn/functional/flash_attention.py129 This is a basic implementation of scaled dot product attention composed ofCODE
MEDIUMpython/paddle/optimizer/lr.py278 # (Note): you can change it for your subclass.COMMENT
MEDIUM…inn/operator_fusion/pir_graph_analyzing/dim_relation.h94 // Mainly for demonstration purposes, i.e. works but is overly simpleCOMMENT
LOW.github/ISSUE_TEMPLATE/3_build-installation-issue.yml11 #### Before submitting a Build/Installation Issue, please make sure you have visited the [official website](httpCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpaddle/cinn/optim/transform_gpu_forloop.h83 * are common in auto-generated code or optimized code paths whereCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtest/xpu/test_contiguous_complex64_strided_view_xpu.py33 # standard XPU test scaffolding and to query supported dtypes.COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtest/legacy_test/test_restricted_unpickler.py470 def helper():CODE
LOWtest/legacy_test/test_matrix_rank_atol_rtol_op.py83 def process_data(self):CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/legacy_test/ernie_utils/moe_layer_uneven.py267 # TODO: implement reduce in cuda opsCOMMENT