PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | setup.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | .cmake-format.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | .cmake-format.py | 21 | COMMENT | |
| LOW | tools/diff_api.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tools/gen_pybind11_stub.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/test_print_signatures.py | 1 | #! /usr/bin/env python | COMMENT |
| LOW | tools/gen_tensor_stub.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/count_api_without_core_ops.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/get_ut_mem_map.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/get_op_list.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/get_single_test_cov.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/CheckPRTemplate.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/check_op_kernel_same_dtypes.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/statistics_UT_resource.sh | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/timeline.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/op_benchmark_count.py | 1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/gen_ut_cmakelists.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/get_quick_disable_lt.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/type_checking.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/check_pr_approval.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/nvcc_lazy.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/pyCov_multithreading.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/gen_alias_mapping.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/gen_alias_mapping.sh | 21 | # Arguments: | COMMENT |
| LOW | tools/diff_use_default_grad_op_maker.py | 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/get_pr_ut.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/__init__.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/timeout_debug_help.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/check_api_compatible.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/static_mode_white_list.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/reduce_lib_size_util.py | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/analysisPyXml.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/sampcd_processor.py | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/check_sequence_op.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/handle_h_cu_file.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/print_op_desc.py | 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/check_op_desc.py | 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/prune_for_jetson.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/gpups_test.sh | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/check_aten_ops_signature.py | 1 | # Copyright (c) 2026 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/get_op_list.sh | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/get_pr_title.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/test_runner.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/summary_env.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/document_preview.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/jetson_infer_op.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/op_benchmark.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/diff_unittest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tools/check_code_block_format.py | 1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/parse_kernel_info.py | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/check_op_register_type.py | 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/check_added_ut.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/test_run_by_protobuf_3.py | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/check_abi_compatibility.py | 1 | # Copyright (c) 2026 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/gpu_kernel_compare.py | 1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/test_check_pr_approval.py | 1 | #! /usr/bin/env python | COMMENT |
| LOW | tools/check_gpu_kernel_approval.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/parallel_UT_rule.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/check_only_change_python_files.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| 9781 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/sampcd_processor_utils.py | 222 | A DocTester can be used to test the codeblock from the API's docstring. Attributes: style(str): `style` sh | STRING |
| HIGH | test/tokenizer/bert_tokenizer.py | 44 | Tokenizes a piece of text using basic tokenizer. Args: text (str): A piece of text. | STRING |
| HIGH | test/tokenizer/bert_tokenizer.py | 188 | Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to per | STRING |
| HIGH | test/tokenizer/bert_tokenizer.py | 374 | Converts a string to a list of tokens. Args: text (str): The text to be tokenized. | STRING |
| HIGH | test/legacy_test/nets.py | 280 | :api_attr: Static Graph **This api takes input as an DenseTensor. If input is a Tensor, please use** : | STRING |
| HIGH | test/dygraph_to_static/simnet_dygraph_model.py | 236 | This interface is used to construct a callable object of the ``FC`` class. For more details, refer to code exam | STRING |
| HIGH | python/paddle/_paddle_docs.py | 60 | Acos Activation Operator. .. math:: out = cos^{-1}(x) Args: x (Tensor): Input of Acos ope | STRING |
| HIGH | python/paddle/_paddle_docs.py | 99 | Acosh Activation Operator. .. math:: out = acosh(x) Args: x (Tensor): Input of Acosh opera | STRING |
| HIGH | python/paddle/_paddle_docs.py | 138 | Sinh Activation Operator. .. math:: out = sinh(x) Args: x (Tensor): Input of Sinh operator | STRING |
| HIGH | python/paddle/_paddle_docs.py | 179 | Computes the minimum of tensor elements over the given axis Note: The difference between min and amin | STRING |
| HIGH | python/paddle/_paddle_docs.py | 313 | Computes both the minimum and maximum of tensor elements over the given axis. Note: Like amin and amax | STRING |
| HIGH | python/paddle/_paddle_docs.py | 360 | Computes the maximum of tensor elements over the given axis. Note: The difference between max and amax | STRING |
| HIGH | python/paddle/_paddle_docs.py | 495 | Computes the ``logical and`` of tensor elements over the given dimension. Args: x (Tensor): An N-D Ten | STRING |
| HIGH | python/paddle/_paddle_docs.py | 567 | Computes the indices of the max elements of the input tensor's element along the provided axis. Args: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 616 | Computes the indices of the min elements of the input tensor's element along the provided axis. Args: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 664 | Arctangent Operator. .. math:: out = tan^{-1}(x) Args: x (Tensor): Input of Atan operator, | STRING |
| HIGH | python/paddle/_paddle_docs.py | 703 | Atanh Activation Operator. .. math:: out = atanh(x) Args: x (Tensor): Input of Atan operat | STRING |
| HIGH | python/paddle/_paddle_docs.py | 743 | Element-wise arctangent of x/y with consideration of the quadrant. Equation: .. math:: atan2(x | STRING |
| HIGH | python/paddle/_paddle_docs.py | 799 | Calculates the log to the base 2 of the given input tensor, element-wise. .. math:: Out = \log_2x | STRING |
| HIGH | python/paddle/_paddle_docs.py | 854 | Calculates the log to the base 10 of the given input tensor, element-wise. .. math:: Out = \log_{10}x | STRING |
| HIGH | python/paddle/_paddle_docs.py | 909 | Asinh Activation Operator. .. math:: out = asinh(x) Args: x (Tensor): Input of Asinh opera | STRING |
| HIGH | python/paddle/_paddle_docs.py | 948 | Reciprocal Activation Operator. .. math:: out = \\frac{1}{x} Args: x (Tensor): Input of R | STRING |
| HIGH | python/paddle/_paddle_docs.py | 987 | Square each elements of the inputs. .. math:: out = x^2 Args: x (Tensor): Input of Square | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1024 | Tangent Operator. Computes tangent of x element-wise. Input range is `(k*pi-pi/2, k*pi+pi/2)` and output range | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1065 | Calculates the natural log of the given input tensor plus 1, element-wise. .. math:: Out = \ln(x+1) | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1106 | Applies matrix multiplication to two tensors. `matmul` follows the complete broadcast rules, and its behavi | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1205 | multiply two tensors element-wise. The equation is: .. math:: out = x * y Note: Supported | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1261 | Calculates the log of the sum of exponential of ``x`` along ``axis`` . .. math:: logsumexp(x) = \log\su | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1320 | softplus activation .. math:: softplus(x)=\begin{cases} \frac{1}{\beta} * \\log(1 + e^ | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1360 | The function used to calculate modified bessel function of order 0. Equation: .. math:: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1397 | The function used to calculate exponentially scaled modified Bessel function of order 0. Equation: .. | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1437 | Check if all :math:`x` and :math:`y` satisfy the condition: .. math:: \\left| x - y \right| \\leq atol | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1493 | Return whether every element of input tensor is finite number or not. Args: x (Tensor): The input tens | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1522 | Return whether every element of input tensor is `+/-INF` or not. Args: x (Tensor): The input tensor, i | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1551 | Return whether every element of input tensor is `NaN` or not. Args: x (Tensor): The input tensor, it's | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1583 | Roll the `x` tensor along the given axis(axes). With specific 'shifts', Elements that roll beyond the last posi | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1635 | Ceil Operator. Computes ceil of x element-wise. .. math:: out = \\left \\lceil x \\right \\rceil | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1677 | Computes the sum of tensor elements over the given dimension. This API has two signatures: 1. ``paddle.su | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1780 | Puts values from the tensor values into the tensor x using the indices specified in indices (which is a tuple of Te | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1847 | Computes the ``logical or`` of tensor elements over the given dimension, and return the result. Args: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1920 | Expand the input tensor ``x`` to the same shape as the input tensor ``y``. Both the number of dimensions of ` | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1967 | Sample input X by using bilinear interpolation or nearest interpolation based on flow field grid, which is usua | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2094 | This API implements pixel shuffle operation. See more details in :ref:`PixelShuffle <api_paddle_nn_PixelShuffle | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2128 | gelu activation. The activation function of Gelu is calculated element by element. More information refers to | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2194 | Sigmoid Activation. .. math:: out = \\frac{1}{1 + e^{-x}} Args: x (Tensor): Input of Sigmo | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2236 | Returns the truth value of :math:`x > y` elementwise, which is equivalent function to the overloaded operator `>`. | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2275 | Sine Activation Operator. .. math:: out = sin(x) Args: x (Tensor): Input of Sin operator, | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2314 | Returns sign of every element in `x`: For real numbers, 1 for positive, -1 for negative and 0 for zero. For complex | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2346 | Calculates the lgamma of the given input tensor, element-wise. This operator performs elementwise lgamma for i | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2385 | Calculates the natural log of the given input Tensor, element-wise. .. math:: Out = \ln(x) Args: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2424 | Rsqrt Activation Operator. Please make sure input is legal in case of numeric errors. .. math:: ou | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2465 | Cosine Operator. Computes cosine of x element-wise. Input range is `(-inf, inf)` and output range is `[-1,1]`. | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2506 | Cosh Activation Operator. Input range `(-inf, inf)`, output range `(1, inf)`. .. math:: out = \\fr | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2547 | Floor Activation Operator. Computes floor of x element-wise. .. math:: out = \\lfloor x \\rfloor | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2588 | Compare two tensors and returns a new tensor containing the element-wise maxima. The equation is: .. math:: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2655 | Compare two tensors and return a new tensor containing the element-wise minima. The equation is: .. math:: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2721 | Sqrt Activation Operator. .. math:: out=\\sqrt{x}=x^{1/2} Args: x (Tensor): Input of Sqrt | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2765 | Returns the lower triangular part of a matrix (2-D tensor) or batch of matrices :attr:`x`, the other elements o | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2834 | Return the upper triangular part of a matrix (2-D tensor) or batch of matrices :attr:`x`, the other elements of | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2904 | Applies batched matrix multiplication to two tensors. Both of the two input tensors must be three-dimensional | STRING |
| 1528 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 330 | def _convert_readme_relative_paths_for_pypi(readme: str) -> str: | CODE |
| LOW | setup.py | 929 | def write_parameter_server_version_py( | STRING |
| LOW | setup.py | 1163 | def get_paddle_extra_install_requirements(): | STRING |
| LOW | setup.py | 1509 | def extend_type_hints_package_data(packages, package_data, paddle_binary_dir): | STRING |
| LOW | setup.py | 1536 | def get_package_data_and_package_dir(): | STRING |
| LOW | setup.py | 2978 | def install_cpp_dist_and_build_test(install_dir, lib_test_dir, headers, libs): | CODE |
| LOW | setup.py | 3034 | def submodules_not_exists_or_empty(folder): | CODE |
| LOW | tools/gen_pybind11_stub.py | 363 | def check_remove_syntax_error(filename: str, limit: int = 10000): | CODE |
| LOW | tools/gen_pybind11_stub.py | 555 | def load_python_api_function_by_name(name: str) -> Any: | CODE |
| LOW | tools/gen_pybind11_stub.py | 890 | def _parse_dst_module_to_path( | CODE |
| LOW | tools/gen_tensor_stub.py | 72 | def create_builtin_annotation_renamer(): | CODE |
| LOW | tools/gen_tensor_stub.py | 86 | def rename_builtin_annotation(annotation): | CODE |
| LOW | tools/count_api_without_core_ops.py | 47 | def split_with_and_without_core_ops(member, cur_name): | CODE |
| LOW | tools/count_api_without_core_ops.py | 170 | def get_apis_with_and_without_core_ops(modules): | CODE |
| LOW | tools/CheckPRTemplate.py | 144 | def check_precision_change_approval(body, pr_number, pr_user): | CODE |
| LOW | tools/CheckPRTemplate.py | 280 | def pull_request_event_template(event, repo, *args, **kwargs): | CODE |
| LOW | tools/check_op_kernel_same_dtypes.py | 84 | def check_change_or_add_op_kernel_dtypes_valid(): | CODE |
| LOW | tools/gen_ut_cmakelists.py | 250 | def _init_dist_ut_ports_from_cmakefile(self, cmake_file_name): | CODE |
| LOW | tools/gen_ut_cmakelists.py | 289 | def parse_assigned_dist_ut_ports(self, current_work_dir, depth=0): | STRING |
| LOW | tools/type_checking.py | 326 | def codeblock_identifier_to_filename(codeblock_identifier: str) -> str: | CODE |
| LOW | tools/get_pr_ut.py | 169 | def __get_comment_by_filetype(self, content, filetype): | CODE |
| LOW | tools/check_op_desc.py | 407 | def print_version_error_message(error_message): | CODE |
| LOW⚡ | tools/check_aten_ops_signature.py | 851 | def torch_include_dirs_from_python() -> list[Path]: | CODE |
| LOW⚡ | tools/check_aten_ops_signature.py | 861 | def discover_torch_include_dir(torch_include_dir: str | None) -> Path: | CODE |
| LOW | tools/check_aten_ops_signature.py | 88 | def strip_comments_and_literals(text: str) -> str: | CODE |
| LOW | tools/check_aten_ops_signature.py | 456 | def strip_leading_signature_annotations(text: str) -> str: | CODE |
| LOW | tools/check_aten_ops_signature.py | 493 | def top_level_function_definitions( | CODE |
| LOW | tools/check_aten_ops_signature.py | 600 | def signature_without_templates(signature: CppSignature) -> CppSignature: | CODE |
| LOW | tools/check_aten_ops_signature.py | 691 | def tensor_class_declarations( | CODE |
| LOW | tools/check_aten_ops_signature.py | 708 | def class_section_declarations( | CODE |
| LOW | tools/check_aten_ops_signature.py | 817 | def parse_paddle_class_members( | CODE |
| LOW | tools/check_aten_ops_signature.py | 1023 | def check_tensor_body_members( | CODE |
| LOW | tools/check_aten_ops_signature.py | 1054 | def check_tensor_base_members( | CODE |
| LOW | tools/check_aten_ops_signature.py | 1085 | def is_paddle_internal_member(signature: CppSignature) -> bool: | CODE |
| LOW | tools/get_pr_title.py | 57 | def check_skip_distribute_test(title): | CODE |
| LOW | tools/check_code_block_format.py | 138 | def format_code_block_with_suggestions( | CODE |
| LOW | tools/check_code_block_format.py | 181 | def check_code_block_indentation( | CODE |
| LOW | tools/check_code_block_format.py | 202 | def check_code_block_follows_blank_line( | CODE |
| LOW | tools/check_code_block_format.py | 216 | def check_lines_starts_with_blank_line( | CODE |
| LOW | tools/check_abi_compatibility.py | 108 | def parse_readelf_dynamic_symbols(readelf_output: str) -> list[DynamicSymbol]: | CODE |
| LOW | tools/check_abi_compatibility.py | 184 | def is_protected_paddle_abi_symbol(symbol: DynamicSymbol) -> bool: | CODE |
| LOW | tools/check_abi_compatibility.py | 193 | def protected_symbols_by_name( | CODE |
| LOW | tools/check_abi_compatibility.py | 338 | def find_required_abi_approver( | CODE |
| LOW | tools/check_abi_compatibility.py | 398 | def check_abi_removal_approval( | CODE |
| LOW | tools/check_abi_compatibility.py | 439 | def check_abi_issues_approval( | CODE |
| LOW | tools/gpu_kernel_compare.py | 67 | def _create_config_signature_without_dtype( | CODE |
| LOW | tools/test_check_pr_approval.py | 113 | def test_check_with_required_reviewer_not_approved(self): | STRING |
| LOW | tools/check_only_change_python_files.py | 58 | def check_only_change_python_file(self): | CODE |
| LOW | tools/test_check_api_compatible.py | 62 | def test_args_places_exchanged(self): | CODE |
| LOW | tools/test_check_api_compatible.py | 116 | def test_args_places_exchanged(self): | CODE |
| LOW | tools/check_op_benchmark_result.py | 56 | def load_benchmark_result_from_logs_dir(logs_dir): | CODE |
| LOW | tools/sampcd_processor_utils.py | 406 | def get_full_api_from_pr_spec(): | CODE |
| LOW | tools/sampcd_processor_utils.py | 419 | def extract_code_blocks_from_docstr(docstr, google_style=True): | CODE |
| LOW | tools/remove_grad_op_and_kernel.py | 49 | def remove_grad_op_and_kernel(content, pattern1, pattern2): | CODE |
| LOW | tools/codestyle/clang-tidy.py | 77 | def find_compilation_database(path, result="./"): | CODE |
| LOW | tools/codestyle/clang-tidy.py | 205 | def check_clang_apply_replacements_binary(args): | CODE |
| LOW | test/tools/test_gpu_kernel_compare.py | 35 | def test_all_gpu_kernel_detection(self): | CODE |
| LOW⚡ | test/tools/test_check_aten_ops_signature.py | 1028 | def test_discover_torch_include_dir_argument(self): | CODE |
| LOW⚡ | test/tools/test_check_aten_ops_signature.py | 1034 | def test_discover_torch_include_dir_from_python_helper(self): | CODE |
| LOW⚡ | test/tools/test_check_aten_ops_signature.py | 1044 | def test_changed_aten_ops_headers_includes_modified_headers(self): | CODE |
| 6703 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 15 | CODE | |
| LOW | tools/gen_pybind11_stub.py | 15 | CODE | |
| LOW | tools/type_checking.py | 24 | CODE | |
| LOW | tools/sampcd_processor.py | 25 | CODE | |
| LOW | tools/check_aten_ops_signature.py | 15 | CODE | |
| LOW | tools/check_abi_compatibility.py | 21 | CODE | |
| LOW | tools/gpu_kernel_compare.py | 15 | CODE | |
| LOW | tools/print_signatures.py | 21 | CODE | |
| LOW | tools/sampcd_processor_utils.py | 15 | CODE | |
| LOW | tools/sampcd_processor_utils.py | 623 | CODE | |
| LOW | tools/sampcd_processor_utils.py | 624 | CODE | |
| LOW | tools/commitlist.py | 15 | CODE | |
| LOW | test/compat/test_torch_proxy_mixed.py | 78 | CODE | |
| LOW | test/compat/test_torch_proxy_mixed.py | 91 | CODE | |
| LOW | test/compat/fake_torch_modules/torch/__init__.py | 17 | CODE | |
| LOW | test/compat/fake_torch_modules/torch/__init__.py | 17 | CODE | |
| LOW | test/compat/fake_torch_modules/torch/nn/__init__.py | 15 | CODE | |
| LOW | test/ipu/op_test_ipu.py | 14 | CODE | |
| LOW | test/flex_checkpoint/test_macros.py | 15 | CODE | |
| LOW | test/ir/pir/cinn/llama_test_model.py | 15 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_28.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_79.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_69.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_38.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_0.py | 19 | CODE | |
| LOW | …st/ir/pir/cinn/sub_graphs/test_sub_graph_avg_pool2d.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_18.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_49.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_59.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_4.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_19.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_48.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_58.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_5.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_conv_nd.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_29.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_78.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_68.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_39.py | 18 | CODE | |
| LOW | …/pir/cinn/sub_graphs/test_sub_graph_bfloat162float8.py | 17 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_1.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_22.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_73.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_80.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_47.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_16.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_chunk.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_add_n.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_57.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_90.py | 15 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_63.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_32.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_12.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_43.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_77.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_26.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_84.py | 18 | CODE | |
| LOW | …/cinn/sub_graphs/test_sub_graph_adaptive_avg_pool2d.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_36.py | 18 | CODE | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_67.py | 18 | CODE | |
| 4729 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 421 | CODE | |
| LOW | setup.py | 995 | CODE | |
| LOW | setup.py | 1536 | CODE | |
| LOW | tools/gen_pybind11_stub.py | 580 | CODE | |
| LOW | tools/gen_pybind11_stub.py | 695 | CODE | |
| LOW | tools/gen_pybind11_stub.py | 777 | CODE | |
| LOW | tools/gen_tensor_stub.py | 427 | CODE | |
| LOW | tools/gen_tensor_stub.py | 599 | CODE | |
| LOW | tools/count_api_without_core_ops.py | 47 | CODE | |
| LOW | tools/count_api_without_core_ops.py | 95 | CODE | |
| LOW | tools/count_api_without_core_ops.py | 116 | CODE | |
| LOW | tools/count_api_without_core_ops.py | 136 | CODE | |
| LOW | tools/get_ut_mem_map.py | 20 | CODE | |
| LOW | tools/get_single_test_cov.py | 23 | CODE | |
| LOW | tools/get_single_test_cov.py | 68 | CODE | |
| LOW | tools/get_single_test_cov.py | 132 | CODE | |
| LOW | tools/CheckPRTemplate.py | 58 | CODE | |
| LOW | tools/CheckPRTemplate.py | 144 | CODE | |
| LOW | tools/CheckPRTemplate.py | 251 | CODE | |
| LOW | tools/check_op_kernel_same_dtypes.py | 84 | CODE | |
| LOW | tools/timeline.py | 142 | CODE | |
| LOW | tools/timeline.py | 215 | CODE | |
| LOW | tools/gen_ut_cmakelists.py | 250 | CODE | |
| LOW | tools/gen_ut_cmakelists.py | 289 | CODE | |
| LOW | tools/type_checking.py | 104 | CODE | |
| LOW | tools/get_pr_ut.py | 216 | CODE | |
| LOW | tools/get_pr_ut.py | 299 | CODE | |
| LOW | tools/reduce_lib_size_util.py | 23 | CODE | |
| LOW | tools/reduce_lib_size_util.py | 51 | CODE | |
| LOW | tools/analysisPyXml.py | 23 | CODE | |
| LOW | tools/check_op_desc.py | 65 | CODE | |
| LOW | tools/check_op_desc.py | 139 | CODE | |
| LOW | tools/check_op_desc.py | 210 | CODE | |
| LOW | tools/check_op_desc.py | 230 | CODE | |
| LOW | tools/prune_for_jetson.py | 36 | CODE | |
| LOW | tools/prune_for_jetson.py | 110 | CODE | |
| LOW | tools/check_aten_ops_signature.py | 149 | CODE | |
| LOW | tools/check_aten_ops_signature.py | 226 | CODE | |
| LOW | tools/check_aten_ops_signature.py | 241 | CODE | |
| LOW | tools/check_aten_ops_signature.py | 300 | CODE | |
| LOW | tools/check_aten_ops_signature.py | 493 | CODE | |
| LOW | tools/check_aten_ops_signature.py | 626 | CODE | |
| LOW | tools/check_aten_ops_signature.py | 708 | CODE | |
| LOW | tools/check_code_block_format.py | 153 | CODE | |
| LOW | tools/gpu_kernel_compare.py | 85 | CODE | |
| LOW | tools/print_signatures.py | 84 | CODE | |
| LOW | tools/print_signatures.py | 208 | CODE | |
| LOW | tools/check_op_benchmark_result.py | 35 | CODE | |
| LOW | tools/get_ut_file_map.py | 20 | CODE | |
| LOW | tools/get_ut_file_map.py | 57 | CODE | |
| LOW | tools/final_ut_parallel_rule.py | 20 | CODE | |
| LOW | tools/group_case_for_parallel.py | 19 | CODE | |
| LOW | tools/sampcd_processor_utils.py | 358 | CODE | |
| LOW | tools/sampcd_processor_utils.py | 419 | CODE | |
| LOW | tools/sampcd_processor_utils.py | 673 | CODE | |
| LOW | tools/analysis_build_time.py | 35 | CODE | |
| LOW | tools/CrossStackProfiler/DCGMFileReader.py | 105 | CODE | |
| LOW | tools/CrossStackProfiler/NetFileReader.py | 28 | CODE | |
| LOW | tools/CrossStackProfiler/ProfileFileReader.py | 56 | CODE | |
| LOW | tools/CrossStackProfiler/ProfileFileReader.py | 71 | CODE | |
| 2254 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/CheckPRTemplate.py | 42 | CODE | |
| LOW | tools/CheckPRTemplate.py | 248 | CODE | |
| LOW | tools/sampcd_processor.py | 361 | CODE | |
| LOW | test/standalone_executor/test_standalone_executor.py | 290 | CODE | |
| LOW | test/standalone_executor/test_standalone_controlflow.py | 109 | CODE | |
| LOW | test/ir/test_inference_datatype.py | 37 | CODE | |
| LOW | test/ir/test_inference_datatype_pir.py | 37 | CODE | |
| LOW | test/ir/pir/test_pir_to_static.py | 27 | CODE | |
| LOW | test/ir/pir/test_pir_to_static.py | 44 | CODE | |
| LOW | test/ir/pir/test_pir_to_static.py | 208 | CODE | |
| LOW | test/ir/pir/test_symbol_overload.py | 36 | CODE | |
| LOW | test/ir/pir/test_symbol_overload.py | 49 | CODE | |
| LOW | test/ir/pir/cinn/llama_test_model.py | 30 | CODE | |
| LOW | test/ir/pir/cinn/llama_test_model.py | 233 | CODE | |
| LOW | test/ir/pir/cinn/test_dynamic_shape.py | 97 | CODE | |
| LOW | test/ir/pir/cinn/test_dynamic_shape.py | 115 | CODE | |
| LOW | test/ir/pir/cinn/test_slice_cinn.py | 48 | CODE | |
| LOW | test/ir/pir/cinn/test_enable_cinn_kernel_cache_2.py | 55 | CODE | |
| LOW | test/ir/pir/cinn/test_enable_cinn_kernel_cache_2.py | 78 | CODE | |
| LOW | test/ir/pir/cinn/test_cinn_reduce_sum.py | 53 | CODE | |
| LOW | test/ir/pir/cinn/test_cinn_sub_graph.py | 52 | CODE | |
| LOW | test/ir/pir/cinn/test_cinn_sub_graph.py | 62 | CODE | |
| LOW | test/ir/pir/cinn/test_cinn_sub_graph.py | 72 | CODE | |
| LOW | test/ir/pir/cinn/test_cinn_sub_graph.py | 84 | CODE | |
| LOW | test/ir/pir/cinn/test_cinn_sub_graph.py | 107 | CODE | |
| LOW | test/ir/pir/cinn/test_cinn_sub_graph.py | 132 | CODE | |
| LOW | test/ir/pir/cinn/test_cinn_sub_graph.py | 142 | CODE | |
| LOW | test/ir/pir/cinn/test_cinn_sub_graph.py | 224 | CODE | |
| LOW | test/ir/pir/cinn/test_graph.py | 102 | CODE | |
| LOW | test/ir/pir/cinn/test_enable_cinn_kernel_cache.py | 55 | CODE | |
| LOW | test/ir/pir/cinn/test_enable_cinn_kernel_cache.py | 78 | CODE | |
| LOW | test/ir/pir/cinn/adt/test_cinn_sub_graph_map_expr.py | 40 | CODE | |
| LOW | test/ir/pir/cinn/inference/test_llama_forward.py | 87 | CODE | |
| LOW | test/ir/pir/cinn/inference/test_llama_while.py | 78 | CODE | |
| LOW | test/ir/pir/cinn/inference/test_llama_inference.py | 185 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_cinn_input_shape_symbolic.py | 108 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_single_op_fallback_to_phi.py | 38 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_single_op_fallback_to_phi.py | 65 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_single_op_fallback_to_phi.py | 86 | CODE | |
| LOW | …st/ir/pir/cinn/symbolic/test_llama_unsqueeze_expand.py | 43 | CODE | |
| LOW | test/ir/pir/cinn/symbolic/test_cinn_merge_expand.py | 37 | CODE | |
| LOW | test/ir/pir/cinn/symbolic/test_dyshape_mean.py | 35 | CODE | |
| LOW | …t/ir/pir/cinn/symbolic/test_llama_group_log_softmax.py | 65 | CODE | |
| LOW | test/ir/pir/cinn/symbolic/test_sub_graph_for_backend.py | 40 | CODE | |
| LOW | test/ir/pir/cinn/symbolic/test_reshape_zero_shape.py | 45 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py | 45 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py | 67 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py | 109 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py | 138 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py | 217 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py | 245 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py | 271 | CODE | |
| LOW | …ir/pir/cinn/symbolic/test_infer_sym_shape_binary_op.py | 320 | CODE | |
| LOW | test/ir/pir/cinn/symbolic/test_cinn_data_symbol_arg.py | 95 | CODE | |
| LOW | test/ir/pir/cinn/symbolic/test_cinn_cpu_kernel.py | 62 | CODE | |
| LOW | …t/ir/pir/cinn/symbolic/test_llama_transpose_reshape.py | 42 | CODE | |
| LOW | …t/ir/pir/cinn/symbolic/test_llama_transpose_reshape.py | 88 | CODE | |
| LOW | …r/pir/cinn/symbolic/test_infer_sym_shape_nullary_op.py | 67 | CODE | |
| LOW | …r/pir/cinn/symbolic/test_infer_sym_shape_nullary_op.py | 78 | CODE | |
| LOW | …r/pir/cinn/symbolic/test_infer_sym_shape_nullary_op.py | 104 | CODE | |
| 951 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/reduce_lib_size_util.py | 0 | this script simply removes grad ops and kernels. you should use this script when cmake on_infer=on, which can greatly re | STRING |
| HIGH | tools/prune_for_jetson.py | 0 | this script simply removes grad ops and kernels. you should use this script when cmake on_infer=on, which can greatly re | STRING |
| HIGH | tools/remove_grad_op_and_kernel.py | 0 | this script simply removes grad ops and kernels. you should use this script when cmake on_infer=on, which can greatly re | STRING |
| HIGH | test/ir/pir/cinn/llama_test_model.py | 0 | expands 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.py | 0 | expands 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.py | 0 | expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`. | STRING |
| HIGH | test/ir/inference/auto_scan_test.py | 0 | prepare tensorrt subgraph engine dynamic shape parameters. | STRING |
| HIGH | test/ir/inference/quant_dequant_test.py | 0 | prepare tensorrt subgraph engine dynamic shape parameters. | STRING |
| HIGH | test/ir/inference/inference_pass_test.py | 0 | prepare tensorrt subgraph engine dynamic shape parameters. | STRING |
| HIGH | test/collective/fleet/parallel_dygraph_transformer.py | 0 | generate the initial values for the sinusoid position encoding table. | STRING |
| HIGH | test/legacy_test/transformer_model.py | 0 | generate the initial values for the sinusoid position encoding table. | STRING |
| HIGH | …cy_test/test_imperative_transformer_sorted_gradient.py | 0 | generate the initial values for the sinusoid position encoding table. | STRING |
| HIGH | test/dygraph_to_static/transformer_dygraph_model.py | 0 | generate the initial values for the sinusoid position encoding table. | STRING |
| HIGH | test/xpu/test_generate_proposals_v2_op_xpu.py | 0 | apply intersection-over-union overlap between box_a and box_b | STRING |
| HIGH | test/legacy_test/test_generate_proposals_v2_op.py | 0 | apply intersection-over-union overlap between box_a and box_b | STRING |
| HIGH | test/legacy_test/test_multiclass_nms_op.py | 0 | apply intersection-over-union overlap between box_a and box_b | STRING |
| HIGH | test/legacy_test/test_nms_op.py | 0 | apply intersection-over-union overlap between box_a and box_b | STRING |
| HIGH | test/xpu/test_softmax_op_xpu.py | 0 | compute the softmax of vector x in a numerically stable way. | STRING |
| HIGH | …/xpu/test_collective_softmax_with_cross_entropy_xpu.py | 0 | compute the softmax of vector x in a numerically stable way. | STRING |
| HIGH | test/legacy_test/test_fused_multihead_matmul_op.py | 0 | compute the softmax of vector x in a numerically stable way. | STRING |
| HIGH | test/legacy_test/test_softmax_op.py | 0 | compute the softmax of vector x in a numerically stable way. | STRING |
| HIGH | …cy_test/c_softmax_with_multi_label_cross_entropy_op.py | 0 | compute the softmax of vector x in a numerically stable way. | STRING |
| HIGH | test/legacy_test/c_softmax_with_cross_entropy_op.py | 0 | compute the softmax of vector x in a numerically stable way. | STRING |
| HIGH | test/onednn/test_softmax_bf16_onednn_op.py | 0 | compute the softmax of vector x in a numerically stable way. | STRING |
| HIGH | test/xpu/test_lamb_op_xpu.py | 0 | simulate one step of the adam optimizer :param inputs: dict of inputs :param attributes: dict of attributes :return tupl | STRING |
| HIGH | test/legacy_test/test_lamb_op.py | 0 | simulate one step of the adam optimizer :param inputs: dict of inputs :param attributes: dict of attributes :return tupl | STRING |
| HIGH | test/xpu/test_adam_op_xpu.py | 0 | simulate one step of the adam optimizer :param inputs: dict of inputs :param attributes: dict of attributes :return tupl | STRING |
| HIGH | test/legacy_test/test_adam_op.py | 0 | simulate one step of the adam optimizer :param inputs: dict of inputs :param attributes: dict of attributes :return tupl | STRING |
| HIGH | test/xpu/test_fill_diagonal_tensor_op_xpu.py | 0 | fill value into the diagonal of x that offset is ${offset} and the coordinate system is (dim1, dim2). | STRING |
| HIGH | test/legacy_test/test_fill_diagonal_tensor_op.py | 0 | fill value into the diagonal of x that offset is ${offset} and the coordinate system is (dim1, dim2). | STRING |
| HIGH | test/legacy_test/test_diagonal_scatter.py | 0 | fill value into the diagonal of x that offset is ${offset} and the coordinate system is (dim1, dim2). | STRING |
| HIGH | test/xpu/test_bilinear_interp_v2_op_xpu.py | 0 | bilinear interpolation implement in shape [n, c, h, w] | STRING |
| HIGH | test/legacy_test/test_bilinear_interp_v2_op.py | 0 | bilinear interpolation implement in shape [n, c, h, w] | STRING |
| HIGH | test/legacy_test/test_interp_recompute_scale_factor.py | 0 | bilinear interpolation implement in shape [n, c, h, w] | STRING |
| HIGH | test/onednn/test_bilinear_interp_v2_onednn_op.py | 0 | bilinear interpolation implement in shape [n, c, h, w] | STRING |
| HIGH | test/xpu/test_nearest_interp_v2_op_xpu.py | 0 | nearest neighbor interpolation implement in shape [n, c, h, w] | STRING |
| HIGH | test/legacy_test/test_nearest_interp_v2_op.py | 0 | nearest neighbor interpolation implement in shape [n, c, h, w] | STRING |
| HIGH | test/legacy_test/test_interp_recompute_scale_factor.py | 0 | nearest neighbor interpolation implement in shape [n, c, h, w] | STRING |
| HIGH | test/onednn/test_nearest_interp_v2_onednn_op.py | 0 | nearest neighbor interpolation implement in shape [n, c, h, w] | STRING |
| HIGH | …st/legacy_test/test_dist_fleet_sparse_embedding_ctr.py | 0 | network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training retur | STRING |
| HIGH | test/legacy_test/fleet_heter_ps_training.py | 0 | network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training retur | STRING |
| HIGH | test/legacy_test/dist_fleet_sparse_embedding_ctr.py | 0 | network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training retur | STRING |
| HIGH | test/legacy_test/dist_fleet_heter_pipeline_ctr.py | 0 | network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training retur | STRING |
| HIGH | test/legacy_test/dist_fleet_ctr.py | 0 | network definition args: batch_size(int): the size of mini-batch for training lr(float): learning rate of training retur | STRING |
| HIGH | test/legacy_test/test_compat_unfold.py | 0 | test whether there will be correct exception when users pass paddle.split kwargs in paddle.compat.split, vice versa. | STRING |
| HIGH | test/legacy_test/test_compat_split_static.py | 0 | test whether there will be correct exception when users pass paddle.split kwargs in paddle.compat.split, vice versa. | STRING |
| HIGH | test/legacy_test/test_compat_split.py | 0 | test whether there will be correct exception when users pass paddle.split kwargs in paddle.compat.split, vice versa. | STRING |
| HIGH | test/legacy_test/dist_fleet_sparse_embedding_ctr.py | 0 | do training using dataset, using fetch handler to catch variable args: fleet(fleet api): the fleet object of parameter s | STRING |
| HIGH | test/legacy_test/dist_fleet_ctr.py | 0 | do training using dataset, using fetch handler to catch variable args: fleet(fleet api): the fleet object of parameter s | STRING |
| HIGH | test/legacy_test/dist_fleet_simnet_bow.py | 0 | do training using dataset, using fetch handler to catch variable args: fleet(fleet api): the fleet object of parameter s | STRING |
| HIGH | test/legacy_test/dist_fleet_ctr_ps_gpu.py | 0 | do training using dataset, using fetch handler to catch variable args: fleet(fleet api): the fleet object of parameter s | STRING |
| HIGH | test/dygraph_to_static/test_resnet.py | 0 | tests model decorated by `dygraph_to_static_output` in static graph mode. for users, the model is defined in dygraph mod | STRING |
| HIGH | test/dygraph_to_static/test_resnet_amp.py | 0 | tests model decorated by `dygraph_to_static_output` in static graph mode. for users, the model is defined in dygraph mod | STRING |
| HIGH | test/dygraph_to_static/test_resnet_pure_fp16.py | 0 | tests model decorated by `dygraph_to_static_output` in static graph mode. for users, the model is defined in dygraph mod | STRING |
| HIGH | test/dygraph_to_static/test_pylayer.py | 0 | tests model decorated by `dygraph_to_static_output` in static graph mode. for users, the model is defined in dygraph mod | STRING |
| HIGH | python/paddle/pir/math_op_patch.py | 0 | whether this tensor requires gradient computation. this is a convenience property that returns the opposite of stop_grad | STRING |
| HIGH | python/paddle/base/layers/math_op_patch.py | 0 | whether this tensor requires gradient computation. this is a convenience property that returns the opposite of stop_grad | STRING |
| HIGH | python/paddle/base/dygraph/math_op_patch.py | 0 | whether this tensor requires gradient computation. this is a convenience property that returns the opposite of stop_grad | STRING |
| HIGH | python/paddle/pir/math_op_patch.py | 0 | set whether this tensor requires gradient computation. args: requires_grad (bool): true to enable gradient computation, | STRING |
| HIGH | python/paddle/base/layers/math_op_patch.py | 0 | set whether this tensor requires gradient computation. args: requires_grad (bool): true to enable gradient computation, | STRING |
| 108 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | .cmake-format.py | 15 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | .cmake-format.py | 17 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | .cmake-format.py | 22 | # ------------------------------------------------ | COMMENT |
| MEDIUM⚡ | .cmake-format.py | 24 | # ------------------------------------------------ | COMMENT |
| MEDIUM⚡ | .cmake-format.py | 34 | # ---------------------------------- | COMMENT |
| MEDIUM⚡ | .cmake-format.py | 36 | # ---------------------------------- | COMMENT |
| MEDIUM | tools/enforce/count_all_enforce.sh | 35 | # ---------------------------- | COMMENT |
| MEDIUM | tools/enforce/count_all_enforce.sh | 37 | # ---------------------------- | COMMENT |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 28 | # ============================================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 31 | # ============================================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 132 | # ============================================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 134 | # ============================================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 240 | # ============================================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 242 | # ============================================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 81 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 104 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 127 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 235 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 258 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 281 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 375 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 425 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 529 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 622 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 26 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 49 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 70 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 81 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 90 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 101 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 133 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 165 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 257 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 259 | # ====================================================== | COMMENT |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 310 | # ====================================================== | COMMENT |
| MEDIUM | test/ir/inference/test_use_optimized_model_api.py | 36 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 75 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 77 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 529 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 531 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 561 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 563 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/legacy_test/test_elementwise_heaviside_op.py | 589 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/legacy_test/test_elementwise_heaviside_op.py | 591 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/legacy_test/test_elementwise_heaviside_op.py | 597 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/legacy_test/test_elementwise_heaviside_op.py | 599 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM | test/legacy_test/test_slow_conv_op.py | 115 | # ================================================================= | COMMENT |
| MEDIUM | test/legacy_test/test_slow_conv_op.py | 117 | # ================================================================= | COMMENT |
| MEDIUM | test/legacy_test/test_slow_conv_op.py | 216 | # ================================================================= | COMMENT |
| MEDIUM | test/legacy_test/test_slow_conv_op.py | 218 | # ================================================================= | COMMENT |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 111 | # ── dtype coverage ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 168 | # ── shape coverage ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 190 | # ── stream ordering ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 435 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 437 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 731 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 734 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/legacy_test/test_pylayer_clear_dataptr.py | 236 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | test/legacy_test/test_pylayer_clear_dataptr.py | 238 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | test/legacy_test/test_pylayer_clear_dataptr.py | 277 | # ------------------------------------------------------------------ | COMMENT |
| 149 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/pyCov_multithreading.py | 53 | os.system(f'cd {path} && pwd && coverage xml -i -o python-coverage.xml') | CODE |
| HIGH | tools/get_pr_ut.py | 271 | f"cd {PADDLE_ROOT}build && ctest -N", | CODE |
| HIGH | tools/prune_for_jetson.py | 105 | " && git apply tools/infer_prune_patches/*.patch && cd -" | CODE |
| HIGH | tools/get_ut_file_map.py | 37 | rf'cd {rootPath}/build && ctest -N -V | grep -Ei "Test[ \t]+#" | grep -oEi "\w+$" > {all_uts_paddle}' | CODE |
| HIGH | tools/group_case_for_parallel.py | 35 | f'cd {rootPath}/tools && wget --no-proxy https://paddle-windows.bj.bcebos.com/pre_test_bak_20230908/{fil | CODE |
| HIGH | tools/group_case_for_parallel.py | 39 | f'cd {rootPath}/tools && wget --no-proxy https://paddle-docker-tar.bj.bcebos.com/pre_test_bak_20230908/{ | CODE |
| HIGH | tools/continuous_integration/bisect.py | 99 | f'git checkout {args.bisect_branch} && git clean -fd && git checkout .' | CODE |
| HIGH | …t/custom_runtime/test_collective_process_group_xccl.py | 49 | os.system("rm -rf log && mkdir -p log") | CODE |
| HIGH | …t/custom_runtime/test_collective_process_group_xccl.py | 159 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format( | CODE |
| HIGH | test/custom_runtime/test_custom_op_setup.py | 119 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8 \ | CODE |
| HIGH | test/custom_runtime/test_custom_cpu_to_static.py | 110 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format( | CODE |
| HIGH | test/custom_runtime/test_custom_cpu_profiler_plugin.py | 32 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format( | CODE |
| HIGH | test/custom_runtime/test_custom_cpu_plugin.py | 34 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format( | CODE |
| HIGH | test/distribution/test_distribution_bernoulli.py | 118 | KL[a || b] = Pa * Log[Pa / Pb] + (1 - Pa) * Log[(1 - Pa) / (1 - Pb)] | STRING |
| HIGH | test/legacy_test/test_elementwise_heaviside_op.py | 481 | Fix: add early-return guards in ElemwiseGradBroadcast1CUDA (h==0 || w==0) | STRING |
| HIGH | test/legacy_test/test_elementwise_heaviside_op.py | 482 | and ElemwiseGradBroadcast2CUDA (pre==0 || n==0 || post==0). | STRING |
| HIGH | …ization/quant2_int8_image_classification_comparison.py | 335 | f'Accepted top1 accuracy drop threshold: {threshold}. (condition: (Quant_top1_acc - IN8_top1_acc) <= thresho | CODE |
| HIGH | test/custom_op/test_check_abi.py | 59 | # Mac: clang has no version limitation, always return true | COMMENT |
| HIGH | test/sot/test_stack.py | 44 | stack.push(1) | CODE |
| HIGH | test/sot/test_stack.py | 45 | stack.push(2) | CODE |
| HIGH | python/paddle/_paddle_docs.py | 754 | &\text{undefined} & x=0, y = 0 | CODE |
| HIGH | python/paddle/_paddle_docs.py | 3003 | out = x || y | CODE |
| HIGH | python/paddle/_paddle_docs.py | 3094 | out = (x || y) \&\& !(x \&\& y) | CODE |
| HIGH | python/paddle/nn/initializer/kaiming.py | 184 | # var.place._type() means undefined, happens when initializer is specified in ParamAttr | COMMENT |
| HIGH | python/paddle/nn/layer/common.py | 306 | if align_corners = True && out_size > 1 : | CODE |
| HIGH | python/paddle/nn/functional/common.py | 327 | if align_corners = True && out_size > 1 : | CODE |
| HIGH | python/paddle/nn/functional/common.py | 1034 | if align_corners = True && out_size > 1 : | CODE |
| HIGH | python/paddle/io/dataloader/dataloader_iter.py | 285 | self._blocking_queue.push(array) | CODE |
| HIGH | python/paddle/io/dataloader/dataloader_iter.py | 658 | if not self._blocking_queue.push(array): | CODE |
| HIGH | python/paddle/distribution/laplace.py | 387 | r"""Calculate the KL divergence KL(self || other) with two Laplace instances. | STRING |
| HIGH | python/paddle/distribution/geometric.py | 326 | r"""Calculate the KL divergence KL(self || other) with two Geometric instances. | STRING |
| HIGH | python/paddle/distribution/bernoulli.py | 459 | KL(a || b) = p_a \log(p_a / p_b) + (1 - p_a) \log((1 - p_a) / (1 - p_b)) | CODE |
| HIGH | python/paddle/vision/ops.py | 1986 | Their relation should be ``0 <= x1 < x2 && 0 <= y1 < y2``. | CODE |
| HIGH | python/paddle/jit/dy2static/transformers/utils.py | 425 | a.push(0) don't modify the variable a, but the content | CODE |
| HIGH | python/paddle/jit/dy2static/transformers/utils.py | 440 | b.push(1) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 767 | self.stack.push( | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 770 | self.stack.push(old_exception) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 771 | self.stack.push( | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 780 | self.stack.push( | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 785 | self.stack.push(ConstantVariable.wrap_literal(None, self._graph)) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 786 | self.stack.push(exception_var) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 787 | self.stack.push( | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 825 | self.stack.push(self.stack.peek[instr.arg]) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 828 | self.stack.push(self.stack.top) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 832 | self.stack.push(ref) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 990 | self.stack.push( | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 998 | self.stack.push(var) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1003 | self.stack.push(const_var) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1014 | self.stack.push(self.vframe.cells[name]) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1018 | self.stack.push(self.vframe.locals[instr.argval].cell_content()) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1022 | self.stack.push(self.vframe.cells[name].cell_content()) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1031 | self.stack.push(var) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1039 | self.stack.push(int_var) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1057 | self.stack.push(NullVariable()) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1065 | self.stack.push(value) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1067 | self.stack.push(NullVariable()) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1086 | self.stack.push(method.fn) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1087 | self.stack.push(obj) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1091 | self.stack.push(NullVariable()) | CODE |
| HIGH⚡ | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1092 | self.stack.push(method) | CODE |
| 78 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 583 | __all__ = ['cuda', 'cudnn', 'nccl', 'show', 'xpu', 'xpu_xre', 'xpu_xccl', 'xpu_xhpc', 'tensorrt', 'cuda_archs', 'hip'] | CODE |
| LOW | tools/count_api_without_core_ops.py | 21 | __all__ = [ | CODE |
| LOW | tools/type_checking.py | 55 | def set_debug(self, debug: bool) -> None: | CODE |
| LOW | tools/sampcd_processor_utils.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/commitlist.py | 294 | def update_many(self, records: Iterable[PullRequestRecord]) -> None: | CODE |
| LOW | test/ir/inference/program_config.py | 294 | def set_input_type(self, _type: np.dtype) -> None: | CODE |
| LOW | test/dataset/cifar_test.py | 19 | __all__ = [] | CODE |
| LOW | test/dataset/flowers_test.py | 19 | __all__ = [] | CODE |
| LOW | test/dataset/test_image.py | 28 | __all__ = [] | CODE |
| LOW | test/dataset/voc2012_test.py | 19 | __all__ = [] | CODE |
| LOW | test/dataset/imdb_test.py | 20 | __all__ = [] | CODE |
| LOW | test/dataset/wmt16_test.py | 19 | __all__ = [] | CODE |
| LOW | test/dataset/imikolov_test.py | 21 | __all__ = [] | CODE |
| LOW | test/dataset/mnist_test.py | 19 | __all__ = [] | CODE |
| LOW | …est_incubate_build_src_rank_and_local_expert_id_xpu.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/legacy_test/test_incubate_fused_loss.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/legacy_test/test_sparse_conv_op.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/legacy_test/decorator_helper.py | 17 | __all__ = ['many_times', 'prog_scope'] | CODE |
| LOW | …st/test_incubate_build_src_rank_and_local_expert_id.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/legacy_test/test_dist_fleet_heter_base.py | 33 | __all__ = ['FleetDistHeterRunnerBase', 'TestFleetHeterBase', 'runtime_main'] | CODE |
| LOW | test/legacy_test/utils.py | 34 | __all__ = ['DyGraphProgramDescTracerTestHelper', 'is_equal_program'] | CODE |
| LOW | test/legacy_test/autodiff_checker_helper.py | 28 | __all__ = ['check_vjp'] | CODE |
| LOW | test/legacy_test/test_sparse_conv_igemm_op.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/legacy_test/test_dist_fleet_base.py | 40 | __all__ = ['FleetDistRunnerBase', 'TestFleetBase', 'runtime_main'] | CODE |
| LOW | test/legacy_test/test_decorator.py | 22 | __all__ = [] | CODE |
| LOW | test/legacy_test/ernie_utils/top2_gate.py | 55 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/legacy_test/ernie_utils/moe_all_gather_layer.py | 57 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/legacy_test/ernie_utils/moe_layer.py | 60 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/legacy_test/ernie_utils/moe_layer_uneven.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/distributed_passes/model_zoo.py | 24 | __all__ = [ | CODE |
| LOW | test/auto_parallel/PipelineStage_demo.py | 51 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/dygraph_to_static/tsm_config_utils.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | …prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py | 45 | def set_dtype(self, dtype) -> None: | CODE |
| LOW⚡ | …prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py | 48 | def set_shape(self, shape) -> None: | CODE |
| LOW⚡ | …prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py | 51 | def set_training(self, training) -> None: | CODE |
| LOW⚡ | …prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py | 54 | def set_momentum(self, momentum) -> None: | CODE |
| LOW⚡ | …prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py | 57 | def set_epsilon(self, epsilon) -> None: | CODE |
| LOW⚡ | …prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py | 60 | def set_data_format(self, data_format) -> None: | CODE |
| LOW⚡ | …prim/prim/vjp/eager/test_comp_eager_batch_norm_grad.py | 63 | def set_use_global_stats(self, use_global_stats) -> None: | CODE |
| LOW | test/ps/static_gpubox_trainer.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/ps/dataset_generator_criteo.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/paddle/signal.py | 36 | __all__ = [ | CODE |
| LOW | python/paddle/batch.py | 23 | __all__ = [] | CODE |
| LOW | python/paddle/__init__.py | 1092 | __all__ = [ | CODE |
| LOW | python/paddle/random.py | 20 | __all__ = ["initial_seed"] | CODE |
| LOW | python/paddle/hub.py | 17 | __all__ = ['list', 'help', 'load', 'load_state_dict_from_url'] | CODE |
| LOW | python/paddle/paddle_version.py | 24 | __all__ = ["PaddleVersion"] | CODE |
| LOW | python/paddle/functional.py | 26 | __all__ = [ | CODE |
| LOW | python/paddle/linalg.py | 64 | __all__ = [ | CODE |
| LOW | python/paddle/callbacks.py | 26 | __all__ = [ | CODE |
| LOW | python/paddle/_legacy_C_ops.py | 18 | __all__ = [] | CODE |
| LOW | python/paddle/regularizer.py | 23 | __all__ = ['L1Decay', 'L2Decay'] | CODE |
| LOW | python/paddle/fft.py | 41 | __all__ = [ | CODE |
| LOW | python/paddle/_C_ops.py | 17 | __all__ = [] | CODE |
| LOW | python/paddle/sysconfig.py | 19 | __all__ = ['get_include', 'get_lib'] | CODE |
| LOW | python/paddle/_pir_ops.py | 17 | __all__ = [] | CODE |
| LOW | python/paddle/special.py | 30 | __all__ = [ | CODE |
| LOW | python/paddle/reader/decorator.py | 47 | __all__ = [] | CODE |
| LOW | python/paddle/reader/__init__.py | 81 | __all__ = [] | STRING |
| LOW | python/paddle/pir/__init__.py | 69 | __all__ = [] | CODE |
| 508 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 547 | except Exception as e: | CODE |
| MEDIUM | setup.py | 548 | print(f"Error while getting TensorRT version: {e}") | CODE |
| LOW | setup.py | 1366 | except Exception as e: | STRING |
| LOW | setup.py | 2937 | except Exception as e: | CODE |
| LOW | setup.py | 3053 | except Exception: | CODE |
| MEDIUM | setup.py | 296 | def git_commit() -> str: | CODE |
| LOW | tools/CheckPRTemplate.py | 237 | except Exception as e: | CODE |
| MEDIUM | tools/CheckPRTemplate.py | 50 | def check_link_accessible(url): | CODE |
| MEDIUM | tools/op_benchmark_count.py | 117 | print(f"Error Lines Percentage: {error_percentage:.2f}%") | CODE |
| LOW | tools/gen_ut_cmakelists.py | 489 | except Exception as e: | STRING |
| LOW | tools/gen_ut_cmakelists.py | 560 | except Exception as e: | CODE |
| LOW | tools/get_quick_disable_lt.py | 116 | except Exception as e: | CODE |
| LOW | tools/get_pr_ut.py | 69 | except Exception as e: | CODE |
| LOW | tools/get_pr_ut.py | 117 | except Exception as e: | CODE |
| MEDIUM | tools/check_aten_ops_signature.py | 851 | def torch_include_dirs_from_python() -> list[Path]: | CODE |
| LOW⚡ | tools/check_aten_ops_signature.py | 856 | except Exception: | CODE |
| LOW | tools/check_aten_ops_signature.py | 1218 | except Exception as exc: | CODE |
| LOW | tools/print_signatures.py | 180 | except Exception as e: | CODE |
| MEDIUM | tools/print_signatures.py | 64 | def md5(doc): | CODE |
| LOW | tools/CrossStackProfiler/NetFileReader.py | 63 | except Exception: | CODE |
| LOW | tools/CrossStackProfiler/CspFileReader.py | 301 | except Exception: | CODE |
| LOW | tools/CrossStackProfiler/CspFileReader.py | 366 | except Exception as e: | CODE |
| MEDIUM | tools/CrossStackProfiler/CspFileReader.py | 363 | def test_FileReader(args): | CODE |
| MEDIUM | tools/codestyle/clang-tidy.py | 452 | print('Error exporting fixes.\n', file=sys.stderr) | CODE |
| MEDIUM | tools/codestyle/clang-tidy.py | 461 | print('Error applying fixes.\n', file=sys.stderr) | CODE |
| LOW⚡ | test/compat/test_event_stream_apis.py | 63 | except Exception: | CODE |
| LOW | test/compat/test_event_stream_apis.py | 262 | except Exception: | CODE |
| LOW | test/compat/test_event_stream_apis.py | 299 | except Exception: | CODE |
| LOW⚡ | test/compat/test_paddle_cuda_apis.py | 42 | except Exception: | CODE |
| LOW⚡ | test/compat/test_paddle_cuda_apis.py | 115 | except Exception as e: | CODE |
| LOW⚡ | test/compat/test_paddle_cuda_apis.py | 163 | except Exception as e: | CODE |
| LOW⚡ | test/compat/test_paddle_cuda_apis.py | 243 | except Exception as e: | CODE |
| LOW⚡ | test/compat/test_paddle_cuda_apis.py | 291 | except Exception as e: | CODE |
| LOW⚡ | test/compat/test_paddle_cuda_apis.py | 318 | except Exception as e: | CODE |
| LOW⚡ | test/compat/test_paddle_cuda_apis.py | 403 | except Exception as e: | CODE |
| LOW | test/compat/test_paddle_cuda_apis.py | 187 | except Exception: | CODE |
| LOW | test/compat/test_paddle_cuda_apis.py | 332 | except Exception as e: | CODE |
| LOW | test/compat/test_paddle_cuda_apis.py | 353 | except Exception as e: | CODE |
| LOW | test/compat/test_paddle_cuda_apis.py | 384 | except Exception as e: | CODE |
| LOW | test/ir/inference/auto_scan_test.py | 373 | except Exception as e: | CODE |
| LOW | test/ir/inference/auto_scan_test.py | 618 | except Exception as e: | CODE |
| LOW | test/ir/inference/auto_scan_test.py | 1131 | except Exception as e: | CODE |
| LOW | test/ir/inference/auto_scan_test.py | 1230 | except Exception as e: | CODE |
| LOW | test/collective/test_gen_nccl_id_op.py | 77 | except Exception as e: | CODE |
| MEDIUM | test/collective/test_gen_nccl_id_op.py | 74 | def setUp(self): | CODE |
| LOW | …ollective/multinode/mn_dygraph_group_sharded_stage3.py | 318 | except Exception as e: | CODE |
| LOW | test/collective/fleet/test_auto_checkpoint.py | 268 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 524 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 539 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 554 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 569 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 585 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 671 | except Exception as e: | CODE |
| LOW | …llective/fleet/dygraph_group_sharded_stage2_offload.py | 125 | except Exception as e: | CODE |
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 125 | except Exception: | CODE |
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 138 | except Exception: | CODE |
| LOW⚡ | test/ai_edited_test/test_ai_layer_gen.py | 151 | except Exception: | CODE |
| LOW⚡ | test/ai_edited_test/test_ai_layer_gen.py | 162 | except Exception: | CODE |
| LOW⚡ | test/ai_edited_test/test_ai_layer_gen.py | 171 | except Exception: | CODE |
| LOW | test/ai_edited_test/test_ai_amp_ops.py | 61 | except Exception: | CODE |
| 356 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …lective/fleet/test_fleet_tensor_parallel_extra_sync.py | 144 | paddle.distributed.fleet.utils.tensor_parallel_utils.add_extra_synchronization( | CODE |
| CRITICAL | test/collective/fleet/test_zero_bubble_utils.py | 129 | paddle.base.framework.core.eager.Tensor( | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 57 | \tat org.apache.hadoop.util.FileSystemUtil.throwException(FileSystemUtil.java:164) | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 58 | \tat org.apache.hadoop.util.FileSystemUtil.dealWithResponse(FileSystemUtil.java:118) | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 59 | \tat org.apache.hadoop.lite.client.LiteClientImpl.getFileStatus(LiteClientImpl.java:696) | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 60 | \tat org.apache.hadoop.fs.LibDFileSystemImpl.getFileStatus(LibDFileSystemImpl.java:297) | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 61 | \tat org.apache.hadoop.fs.LiteFileSystem.getFileStatus(LiteFileSystem.java:514) | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 62 | \tat org.apache.hadoop.fs.FsShell.test(FsShell.java:1092) | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 63 | \tat org.apache.hadoop.fs.FsShell.run(FsShell.java:2285) | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 64 | \tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 65 | \tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) | CODE |
| CRITICAL⚡ | test/collective/fleet/test_hdfs1.py | 66 | \tat org.apache.hadoop.fs.FsShell.main(FsShell.java:2353) | CODE |
| CRITICAL | test/legacy_test/test_fleet_runtime.py | 24 | base = paddle.distributed.fleet.runtime.runtime_base.RuntimeBase() | CODE |
| CRITICAL | test/legacy_test/test_dist_base.py | 103 | role = paddle.distributed.fleet.base.role_maker.PaddleCloudRoleMaker( | CODE |
| CRITICAL | python/paddle/nn/layer/conv.py | 887 | return paddle.distributed.auto_parallel.ring_conv.RingConv2d.apply( | STRING |
| CRITICAL | python/paddle/nn/functional/sdpa.py | 551 | out = paddle.distributed.auto_parallel.ring_attention.RingFlashAttention.apply( | STRING |
| CRITICAL | python/paddle/distributed/auto_parallel/moe_utils.py | 118 | dims_mapping = paddle.distributed.auto_parallel.static.utils.convert_to_dims_mapping( | CODE |
| CRITICAL | python/paddle/distributed/ps/the_one_ps.py | 986 | table_proto = self.ps_desc.worker_param.downpour_worker_param.downpour_table_param.add() | CODE |
| CRITICAL | python/paddle/distributed/ps/the_one_ps.py | 988 | table_proto = self.ps_desc.server_param.downpour_server_param.downpour_table_param.add() | CODE |
| CRITICAL | python/paddle/distributed/ps/the_one_ps.py | 1001 | table_proto = self.ps_desc.server_param.downpour_server_param.downpour_table_param.add() | CODE |
| CRITICAL | …e/distributed/fleet/meta_parallel/zero_bubble_utils.py | 85 | weight.main_grad = paddle.base.framework.core.eager.Tensor( | CODE |
| CRITICAL | …thon/paddle/incubate/distributed/utils/io/dist_load.py | 61 | model_state_dict = paddle.incubate.distributed.utils.io.load(path="path/to/load.pdparams") | STRING |
| CRITICAL | …thon/paddle/incubate/distributed/utils/io/dist_load.py | 65 | optimizer_state_dict = paddle.incubate.distributed.utils.io.load(path="path/to/load.pdopt") | STRING |
| CRITICAL⚡ | …thon/paddle/incubate/distributed/utils/io/dist_save.py | 113 | >>> paddle.incubate.distributed.utils.io.save( | STRING |
| CRITICAL⚡ | …thon/paddle/incubate/distributed/utils/io/dist_save.py | 118 | >>> paddle.incubate.distributed.utils.io.save( | STRING |
| CRITICAL⚡ | …thon/paddle/incubate/distributed/utils/io/dist_save.py | 123 | >>> paddle.incubate.distributed.utils.io.save(optimizer.state_dict(), path="path/to/save.pdopt", gather=0, s | STRING |
| CRITICAL | …le/incubate/distributed/models/moe/gate/gshard_gate.py | 81 | topk_idx = paddle.distributed.models.moe.utils._random_routing( | CODE |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 279 | table.accessor.sparse_commonsgd_param.naive.weight_bounds.extend( | CODE |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 283 | table.accessor.sparse_commonsgd_param.naive.weight_bounds.extend( | CODE |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 297 | table.accessor.sparse_commonsgd_param.adagrad.weight_bounds.extend( | CODE |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 301 | table.accessor.sparse_commonsgd_param.adagrad.weight_bounds.extend( | CODE |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 321 | table.accessor.sparse_commonsgd_param.adam.weight_bounds.extend( | CODE |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 325 | table.accessor.sparse_commonsgd_param.adam.weight_bounds.extend( | CODE |
| CRITICAL | python/paddle/jit/dy2static/program_translator.py | 1792 | >>> paddle.jit.dy2static.program_translator.ProgramTranslator.get_instance() | STRING |
| CRITICAL⚡ | python/paddle/jit/dy2static/pir_partial_program.py | 383 | paddle.distributed.auto_parallel.static.mix_to_dist_pass.apply_mix2dist_pass( | CODE |
| CRITICAL⚡ | python/paddle/jit/dy2static/pir_partial_program.py | 389 | paddle.distributed.auto_parallel.static.mix_to_dist_pass.apply_mix2dist_pass( | CODE |
| CRITICAL⚡ | python/paddle/jit/dy2static/pir_partial_program.py | 392 | paddle.distributed.auto_parallel.static.pir_pass.apply_partition_pass( | CODE |
| CRITICAL⚡ | python/paddle/jit/dy2static/pir_partial_program.py | 395 | paddle.distributed.auto_parallel.static.pir_pass.ReshardPasses.apply_reshard_pass( | CODE |
| CRITICAL⚡ | python/paddle/jit/dy2static/pir_partial_program.py | 399 | paddle.distributed.auto_parallel.static.pir_pass.remove_unuseful_comm_op_pass( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/gen_tensor_stub.py | 264 | '# This file is auto generated by `tools/gen_tensor_stub.py`.\n\n' | CODE |
| MEDIUM | tools/gen_ut_cmakelists.py | 550 | cmds = """# This file is generated by ${PADDLE_ROOT}/tools/gen_ut_cmakelists.py. | CODE |
| MEDIUM | test/compat/test_event_stream_apis.py | 168 | # Create a tensor to ensure some work is done | COMMENT |
| MEDIUM | test/compat/test_event_stream_apis.py | 320 | # Create a stream for work execution | COMMENT |
| MEDIUM | test/ir/inference/test_trt_explicit_quantization.py | 82 | # Define the inference program | COMMENT |
| MEDIUM | test/ir/inference/test_trt_explicit_quantization.py | 147 | # Define the inference program | COMMENT |
| MEDIUM | test/collective/fleet/hybrid_parallel_pp_layers.py | 332 | # Create a generator that yields (input, label) pairs | COMMENT |
| MEDIUM | test/ai_edited_test/test_ai_embedding_onehot.py | 120 | # Create a weight matrix where some rows have norm > max_norm | COMMENT |
| MEDIUM⚡ | test/ai_edited_test/test_ai_nn_utils.py | 106 | # Create a new vector of the right size | COMMENT |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_performance.py | 52 | # Create a fixed compute tensor for matmul. | COMMENT |
| MEDIUM⚡ | test/xpu/test_xpu_async_offload_reload_performance.py | 91 | # Create a fixed tensor with known values using linspace. | COMMENT |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_performance.py | 110 | # Create a fixed source tensor with all elements equal to 3.14. | COMMENT |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_performance.py | 114 | # Create a destination tensor on CPU (pinned memory) initialized to zeros. | COMMENT |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_performance.py | 148 | # Create a large tensor (~100MB) on XPU. | COMMENT |
| MEDIUM⚡ | test/xpu/test_xpu_async_offload_reload_loadtest.py | 50 | # Create a large tensor on XPU. | COMMENT |
| MEDIUM | test/xpu/test_xpu_async_offload_reload.py | 50 | # Create a fixed compute tensor for matmul | COMMENT |
| MEDIUM⚡ | test/xpu/test_xpu_async_offload_reload.py | 89 | # Create a fixed tensor with known values using linspace. | COMMENT |
| MEDIUM | test/xpu/test_xpu_async_offload_reload.py | 108 | # Create a fixed source tensor with all elements equal to 3.14. | COMMENT |
| MEDIUM | test/xpu/test_xpu_async_offload_reload.py | 114 | # Create a destination tensor on CPU (pinned memory) initialized to zeros. | COMMENT |
| MEDIUM⚡ | test/xpu/test_xpu_pinned_memory.py | 37 | # Create a sample numpy array. | COMMENT |
| MEDIUM⚡ | test/xpu/test_xpu_pinned_memory.py | 40 | # Create an XPU pinned memory place using the same interface as GPU pinned memory. | COMMENT |
| MEDIUM⚡ | test/xpu/test_xpu_pinned_memory.py | 43 | # Create a tensor in XPU pinned memory. | COMMENT |
| MEDIUM⚡ | test/xpu/test_xpu_pinned_memory.py | 60 | # Create a sample numpy array. | COMMENT |
| MEDIUM⚡ | test/xpu/test_xpu_pinned_memory.py | 63 | # Create a tensor on an XPU device. | COMMENT |
| MEDIUM | test/xpu/test_xpu_share_memory.py | 94 | # Create a Queue to send the IPC metadata. | COMMENT |
| MEDIUM | test/legacy_test/test_tensor_requires_grad.py | 82 | # Create a parameter - Parameters have stop_gradient=False by default (trainable) | COMMENT |
| MEDIUM | test/legacy_test/test_tensor_requires_grad.py | 282 | # Create a parameter - Parameters have stop_gradient=False by default (trainable) | COMMENT |
| MEDIUM | test/legacy_test/test_sdpa_kernel.py | 135 | # Create a mask | COMMENT |
| MEDIUM | test/legacy_test/test_api_compatibility_part5.py | 195 | # Create a sparse CSR tensor | COMMENT |
| MEDIUM | test/legacy_test/test_api_compatibility_part5.py | 217 | # Create a sparse CSR tensor | COMMENT |
| MEDIUM | test/legacy_test/test_api_compatibility_part5.py | 1055 | # Create a simple layer | COMMENT |
| MEDIUM | test/legacy_test/test_interp_recompute_scale_factor.py | 491 | # Create a scalar tensor with empty shape [] | COMMENT |
| MEDIUM | test/legacy_test/test_cuda_graph.py | 210 | # Create a new input buffer and replace the pointer | COMMENT |
| MEDIUM | test/legacy_test/ernie_utils/top2_gate.py | 666 | # Create a mask for 1st's expert per token | COMMENT |
| MEDIUM | test/legacy_test/ernie_utils/top2_gate.py | 680 | # Create a mask for 2nd's expert per token using Gumbel-max trick | COMMENT |
| MEDIUM | test/auto_parallel/test_dist_tensor.py | 69 | # Create a dist_attr | COMMENT |
| MEDIUM | test/prim/pir_prim/test_auto_recompute.py | 165 | # The following code is related to coverage, although backward_ops,define_op,all_used_ops is not used, it ne | COMMENT |
| MEDIUM | test/tensorrt/test_converter_model_bert.py | 46 | # Create a TensorRTConfig with inputs as a required field. | COMMENT |
| MEDIUM | test/tensorrt/test_converter_model_dummy.py | 45 | # Create a TensorRTConfig with inputs as a required field. | COMMENT |
| MEDIUM | test/tensorrt/test_converter_model_dummy.py | 86 | # Create a TensorRTConfig with inputs as a required field. | COMMENT |
| MEDIUM | test/tensorrt/test_converter_model_resnet50_move.py | 67 | # Create a TensorRTConfig with inputs as a required field. | COMMENT |
| MEDIUM | test/tensorrt/test_converter_model_resnet50.py | 72 | # Create a TensorRTConfig with inputs as a required field. | COMMENT |
| MEDIUM | test/tensorrt/test_converter_model_resnet50.py | 119 | # Create a TensorRTConfig with inputs as a required field. | COMMENT |
| MEDIUM | test/tensorrt/test_converter_model_resnet50.py | 175 | # Create a TensorRTConfig with inputs as a required field. | COMMENT |
| MEDIUM | test/tensorrt/test_converter_model_resnet50.py | 269 | # Create a TensorRTConfig with inputs as a required field. | COMMENT |
| MEDIUM | test/tensorrt/test_export.py | 151 | # Create a TensorRTConfig with inputs as a required field. | COMMENT |
| MEDIUM | test/tensorrt/test_export.py | 162 | # Create a config for inference. | COMMENT |
| MEDIUM | test/sot/test_24_exceptions.py | 42 | # This function is designed to test scenarios involving only the `raise` statement. | COMMENT |
| MEDIUM | python/paddle/reader/decorator.py | 392 | >>> # Create a buffered reader, and the buffer size is 2. | STRING |
| MEDIUM | python/paddle/compat/proxy.py | 366 | # Create a new module object that will act as the "torch..." module. | COMMENT |
| MEDIUM | python/paddle/compat/nn/__init__.py | 600 | >>> # Define the linear layer. | CODE |
| MEDIUM | python/paddle/nn/layer/common.py | 173 | >>> # Define the linear layer. | CODE |
| MEDIUM | python/paddle/optimizer/adagrad.py | 245 | # Create the adagrad optimizer op | STRING |
| MEDIUM | python/paddle/optimizer/adadelta.py | 234 | # Create the adadelta optimizer op | STRING |
| MEDIUM | python/paddle/framework/io_utils.py | 36 | # 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.py | 1350 | # Create a union-find data structure from optimize ops, | STRING |
| MEDIUM | …paddle/distributed/transpiler/distribute_transpiler.py | 2784 | # Create a unit find data struct by optimize ops | STRING |
| MEDIUM⚡ | …paddle/distributed/flex_checkpoint/dcp/reshard_comm.py | 102 | # Create a new ReadItem with combined dst_ranks | COMMENT |
| MEDIUM | python/paddle/distributed/auto_parallel/api.py | 819 | >>> # Create a distributed attribute | STRING |
| MEDIUM | python/paddle/distributed/fleet/layers/mpu/random.py | 30 | # This file is inspired by Megatron to control random states for MP: | COMMENT |
| 36 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 82 | CODE | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 84 | CODE | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 86 | CODE | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 88 | CODE | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 89 | CODE | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 100 | CODE | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 101 | CODE | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 105 | CODE | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 106 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 112 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 113 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 114 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 135 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 136 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 157 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 158 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 159 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 180 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 181 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 222 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 223 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_sub_graph.py | 129 | CODE | |
| MEDIUM | test/ir/pir/cinn/test_cinn_sub_graph.py | 132 | CODE | |
| MEDIUM | …t/ir/pir/cinn/symbolic/test_sub_graph_chatglm2_5_st.py | 114 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 130 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 131 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 132 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 133 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 134 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 135 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 136 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 137 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 138 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 147 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 148 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 153 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 157 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 158 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 159 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 160 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 161 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 162 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 163 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 164 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 165 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 168 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 169 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 178 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 181 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 186 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 190 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 191 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 192 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 193 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 194 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 195 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 206 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 210 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 211 | CODE | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 212 | CODE | |
| 34 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 18 | # NOTE: This module provides code generation utilities for Paddle layer functions. | COMMENT |
| LOW⚡ | …st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py | 136 | # Step 1: Pad L/R (pad_left=1, pad_right=0) | COMMENT |
| LOW⚡ | …st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py | 140 | # 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.py | 178 | # Step 1: Pad L/R (pad_left=1, pad_right=0) on W-dim | COMMENT |
| LOW⚡ | …st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py | 182 | # 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.py | 213 | # Step 1: Pad L/R (pad_left=1, pad_right=1) | COMMENT |
| LOW⚡ | …st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py | 217 | # Step 2: Pad T/B (pad_top=1, pad_bottom=1) on [Row A', Row B'] | COMMENT |
| LOW | python/paddle/optimizer/muon.py | 551 | # Step 1: Momentum update | COMMENT |
| LOW | python/paddle/optimizer/muon.py | 562 | # Step 2: Reshape update buffer to 2D matrix. | COMMENT |
| LOW | python/paddle/optimizer/muon.py | 581 | # Step 3: Newton-Schulz orthogonalisation | COMMENT |
| LOW⚡ | …paddle/distributed/flex_checkpoint/dcp/reshard_comm.py | 70 | # Step 1: Group by tensor_name | COMMENT |
| LOW⚡ | …paddle/distributed/flex_checkpoint/dcp/reshard_comm.py | 77 | # Step 2: For each tensor_name group, further group by all attributes except dst_rank | COMMENT |
| LOW⚡ | …paddle/distributed/flex_checkpoint/dcp/reshard_comm.py | 93 | # Step 3: Combine items with the same key into a single ReadItem with all dst_ranks | COMMENT |
| LOW | python/paddle/distributed/auto_parallel/ring_conv.py | 629 | # Step 1: Reconstruct `in_tensor_augmented` (original input to local conv in forward) | COMMENT |
| LOW | python/paddle/distributed/auto_parallel/ring_conv.py | 641 | # Step 2: Pad `grad_out` to match the output shape of conv on augmented input | COMMENT |
| LOW⚡ | python/paddle/distributed/auto_parallel/ring_conv.py | 666 | # Step 3: Local backward computation using augmented/padded tensors | COMMENT |
| LOW⚡ | python/paddle/distributed/auto_parallel/ring_conv.py | 672 | # Step 4: Aggregate "halo" regions for grad_input | COMMENT |
| LOW⚡ | …/paddle/distributed/auto_parallel/static/completion.py | 969 | # Step 3: adjust the process meshes for special ops | COMMENT |
| LOW⚡ | …/paddle/distributed/auto_parallel/static/completion.py | 972 | # Step 4: adjust the process meshes between graphs | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 722 | # Step 1: set the process mesh of while_op to the merged process mesh of its subblock | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 735 | # Step 2: set the related nodes of while_op to the process mesh of while_op | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 788 | # Step 3: set the process meshes of the inputs in while_op to the process meshes of the outside input nodes | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 816 | # Step 4: set the process meshes of the outputs in while_op to the process meshes of the outside output node | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 899 | # Step 1: Set the annotated process meshes from tensors to the first ops using them | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 936 | # Step 2: set the process meshes of ops with the nearest op before them | COMMENT |
| LOW⚡ | …thon/paddle/distributed/auto_parallel/static/engine.py | 516 | # Step 1: find the reader ops | COMMENT |
| LOW⚡ | …thon/paddle/distributed/auto_parallel/static/engine.py | 521 | # Step 2: insert the new reader ops to cpp | COMMENT |
| LOW⚡ | …thon/paddle/distributed/auto_parallel/static/engine.py | 535 | # Step 3: insert the new reader ops to python | COMMENT |
| LOW⚡ | …thon/paddle/distributed/auto_parallel/static/engine.py | 540 | # Step 4: remove the old reader ops from python and cpp | COMMENT |
| LOW | …dle/distributed/auto_parallel/static/cost/base_cost.py | 314 | # NOTE: The input_name of comm ops used usually is X. | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 712 | # Step 1: nF0 | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 717 | # Step 2: nF0F1 | COMMENT |
| LOW | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 730 | # Step 3: nB1W1F1 (Use zero bubble) | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 797 | # Step 5: nB1F1B0 | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 803 | # Step 6: nB1B0 (The second half of the passes use zero bubble) | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 814 | # Step 7: nWB0 (Use zero bubble) | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 820 | # Step 8: nW | COMMENT |
| LOW | …imizers/dygraph_optimizer/hybrid_parallel_optimizer.py | 777 | # Step 4: Reduce norm_tensor for each group | COMMENT |
| LOW | paddle/fluid/imperative/layout_transformer.h | 185 | // Step 1: Adjust the data_layout attr to the desired layout | COMMENT |
| LOW | paddle/fluid/imperative/layout_transformer.h | 205 | // Step 2: Transpose the specified input for Op and set the transposed var's | COMMENT |
| LOW | paddle/fluid/imperative/layout_transformer.h | 219 | // Step 3: Set the Op's layout sensitive outs var. | COMMENT |
| LOW⚡ | paddle/phi/kernels/impl/slice_kernel_impl.h | 36 | // Step 1: Get the accurate attribute value of starts and ends | COMMENT |
| LOW⚡ | paddle/phi/kernels/impl/slice_kernel_impl.h | 39 | // Step 2: Compute output | COMMENT |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 107 | // Step 1: Set the value of out at `_index` to zero | COMMENT |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 133 | // Step 2: Set a tensor with the same shape as out tensor. And its data at | COMMENT |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 172 | // Step 3: Set out tensor with value_tensor | COMMENT |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 275 | // Step 2: Compute output | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2179 | // Step 1: Convert var -> rstd | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2200 | // Step 2: Compute dX using vectorized or non-vectorized kernel | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2257 | // Step 3: Compute dgamma and dbeta | COMMENT |
| LOW⚡ | paddle/phi/kernels/gpu/elementwise_grad.h | 459 | // Step 1: tmp_dy = -dout (elementwise negation via broadcast). | COMMENT |
| LOW⚡ | paddle/phi/kernels/gpu/elementwise_grad.h | 465 | // Step 2: dy = sum_to(tmp_dy) (reduce over broadcast dims via SumKernel). | COMMENT |
| LOW | paddle/phi/kernels/funcs/layer_norm_impl.cu.h | 243 | // Step 1: Reduce to calculate mean and var | COMMENT |
| LOW | paddle/phi/kernels/funcs/layer_norm_impl.cu.h | 269 | // Step 2: Calculate y | COMMENT |
| LOW | paddle/phi/backends/gpu/cuda/cuda_graph.h | 118 | // NOTE: This class use a singleton design pattern ensures there's only a | COMMENT |
| LOW | paddle/phi/backends/gpu/rocm/hip_graph.h | 120 | // NOTE: This class use a singleton design pattern ensures there's only a | COMMENT |
| LOW | paddle/phi/backends/custom/cuda_graph.h | 122 | // NOTE: This class use a singleton design pattern ensures there's only a | COMMENT |
| LOW | …s/skills/paddle-design-compiler/references/executor.md | 31 | #### Step 1: BuildInstruction — 构建 Instruction 列表 | COMMENT |
| LOW | …s/skills/paddle-design-compiler/references/executor.md | 52 | #### Step 2: BuildInstructionDependences — 构建依赖 DAG | COMMENT |
| LOW | …s/skills/paddle-design-compiler/references/executor.md | 62 | #### Step 3: Stream 调度分析 | COMMENT |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py | 136 | # Step 1: Pad L/R (pad_left=1, pad_right=0) | COMMENT |
| LOW⚡ | …st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py | 140 | # 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.py | 178 | # Step 1: Pad L/R (pad_left=1, pad_right=0) on W-dim | COMMENT |
| LOW⚡ | …st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py | 182 | # 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.py | 213 | # Step 1: Pad L/R (pad_left=1, pad_right=1) | COMMENT |
| LOW⚡ | …st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py | 217 | # Step 2: Pad T/B (pad_top=1, pad_bottom=1) on [Row A', Row B'] | COMMENT |
| LOW | python/paddle/optimizer/muon.py | 551 | # Step 1: Momentum update | COMMENT |
| LOW | python/paddle/optimizer/muon.py | 562 | # Step 2: Reshape update buffer to 2D matrix. | COMMENT |
| LOW | python/paddle/optimizer/muon.py | 581 | # Step 3: Newton-Schulz orthogonalisation | COMMENT |
| LOW⚡ | …paddle/distributed/flex_checkpoint/dcp/reshard_comm.py | 70 | # Step 1: Group by tensor_name | COMMENT |
| LOW⚡ | …paddle/distributed/flex_checkpoint/dcp/reshard_comm.py | 77 | # Step 2: For each tensor_name group, further group by all attributes except dst_rank | COMMENT |
| LOW⚡ | …paddle/distributed/flex_checkpoint/dcp/reshard_comm.py | 93 | # Step 3: Combine items with the same key into a single ReadItem with all dst_ranks | COMMENT |
| LOW | python/paddle/distributed/auto_parallel/ring_conv.py | 629 | # Step 1: Reconstruct `in_tensor_augmented` (original input to local conv in forward) | COMMENT |
| LOW | python/paddle/distributed/auto_parallel/ring_conv.py | 641 | # Step 2: Pad `grad_out` to match the output shape of conv on augmented input | COMMENT |
| LOW⚡ | python/paddle/distributed/auto_parallel/ring_conv.py | 666 | # Step 3: Local backward computation using augmented/padded tensors | COMMENT |
| LOW⚡ | python/paddle/distributed/auto_parallel/ring_conv.py | 672 | # Step 4: Aggregate "halo" regions for grad_input | COMMENT |
| LOW⚡ | …/paddle/distributed/auto_parallel/static/completion.py | 969 | # Step 3: adjust the process meshes for special ops | COMMENT |
| LOW⚡ | …/paddle/distributed/auto_parallel/static/completion.py | 972 | # Step 4: adjust the process meshes between graphs | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 722 | # Step 1: set the process mesh of while_op to the merged process mesh of its subblock | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 735 | # Step 2: set the related nodes of while_op to the process mesh of while_op | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 788 | # Step 3: set the process meshes of the inputs in while_op to the process meshes of the outside input nodes | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 816 | # Step 4: set the process meshes of the outputs in while_op to the process meshes of the outside output node | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 899 | # Step 1: Set the annotated process meshes from tensors to the first ops using them | COMMENT |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 936 | # Step 2: set the process meshes of ops with the nearest op before them | COMMENT |
| LOW⚡ | …thon/paddle/distributed/auto_parallel/static/engine.py | 516 | # Step 1: find the reader ops | COMMENT |
| LOW⚡ | …thon/paddle/distributed/auto_parallel/static/engine.py | 521 | # Step 2: insert the new reader ops to cpp | COMMENT |
| LOW⚡ | …thon/paddle/distributed/auto_parallel/static/engine.py | 535 | # Step 3: insert the new reader ops to python | COMMENT |
| LOW⚡ | …thon/paddle/distributed/auto_parallel/static/engine.py | 540 | # Step 4: remove the old reader ops from python and cpp | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 712 | # Step 1: nF0 | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 717 | # Step 2: nF0F1 | COMMENT |
| LOW | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 730 | # Step 3: nB1W1F1 (Use zero bubble) | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 797 | # Step 5: nB1F1B0 | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 803 | # Step 6: nB1B0 (The second half of the passes use zero bubble) | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 814 | # Step 7: nWB0 (Use zero bubble) | COMMENT |
| LOW⚡ | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 820 | # Step 8: nW | COMMENT |
| LOW | …imizers/dygraph_optimizer/hybrid_parallel_optimizer.py | 777 | # Step 4: Reduce norm_tensor for each group | COMMENT |
| LOW | paddle/fluid/imperative/layout_transformer.h | 185 | // Step 1: Adjust the data_layout attr to the desired layout | COMMENT |
| LOW | paddle/fluid/imperative/layout_transformer.h | 205 | // Step 2: Transpose the specified input for Op and set the transposed var's | COMMENT |
| LOW | paddle/fluid/imperative/layout_transformer.h | 219 | // Step 3: Set the Op's layout sensitive outs var. | COMMENT |
| LOW⚡ | paddle/phi/kernels/impl/slice_kernel_impl.h | 36 | // Step 1: Get the accurate attribute value of starts and ends | COMMENT |
| LOW⚡ | paddle/phi/kernels/impl/slice_kernel_impl.h | 39 | // Step 2: Compute output | COMMENT |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 107 | // Step 1: Set the value of out at `_index` to zero | COMMENT |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 133 | // Step 2: Set a tensor with the same shape as out tensor. And its data at | COMMENT |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 172 | // Step 3: Set out tensor with value_tensor | COMMENT |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 275 | // Step 2: Compute output | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2179 | // Step 1: Convert var -> rstd | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2200 | // Step 2: Compute dX using vectorized or non-vectorized kernel | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2257 | // Step 3: Compute dgamma and dbeta | COMMENT |
| LOW⚡ | paddle/phi/kernels/gpu/elementwise_grad.h | 459 | // Step 1: tmp_dy = -dout (elementwise negation via broadcast). | COMMENT |
| LOW⚡ | paddle/phi/kernels/gpu/elementwise_grad.h | 465 | // Step 2: dy = sum_to(tmp_dy) (reduce over broadcast dims via SumKernel). | COMMENT |
| LOW | paddle/phi/kernels/funcs/layer_norm_impl.cu.h | 243 | // Step 1: Reduce to calculate mean and var | COMMENT |
| LOW | paddle/phi/kernels/funcs/layer_norm_impl.cu.h | 269 | // Step 2: Calculate y | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/dockerfile/build_scripts/build.sh | 91 | # So let's just use the same one pip and everyone uses | COMMENT |
| LOW | test/ir/inference/test_onednn_prelu_op.py | 44 | # not valid case, just return 0 | COMMENT |
| LOW | test/ir/inference/test_onednn_prelu_op.py | 56 | # not valid case, just return 0 | COMMENT |
| LOW | test/xpu/process_group_bkcl.py | 83 | # XPU don't support event query by now, so just use sync op here | COMMENT |
| MEDIUM | test/legacy_test/test_cos.py | 136 | """Test float32 cos with large shape for comprehensive coverage. | STRING |
| MEDIUM | test/legacy_test/test_cos.py | 149 | """Test float64 cos with large shape for comprehensive coverage. | STRING |
| LOW | test/legacy_test/test_eager_tensor.py | 2154 | # just return self | COMMENT |
| LOW | test/legacy_test/prim_op_test.py | 150 | # if this is a list (test_unsqueeze2_op): we just pass it into the python api. | COMMENT |
| MEDIUM | test/legacy_test/test_einsum_v2.py | 235 | # self.sample = {"paradigm": "i->iii", "data": ["x"]} | COMMENT |
| MEDIUM | test/legacy_test/test_einsum_v2.py | 239 | # self.sample = {"paradigm": "i...->i...i", "data": ["S"]} | COMMENT |
| MEDIUM | test/legacy_test/test_pow.py | 501 | """Test float32 pow with large shape on CPU for comprehensive coverage.""" | STRING |
| MEDIUM | test/legacy_test/test_pow.py | 513 | """Test float64 pow with large shape on CPU for comprehensive coverage.""" | STRING |
| MEDIUM | test/legacy_test/test_exp.py | 137 | """Test float32 exp with large shape for comprehensive coverage. | STRING |
| MEDIUM | test/legacy_test/test_exp.py | 149 | """Test float64 exp with large shape for comprehensive coverage. | STRING |
| MEDIUM | test/legacy_test/test_pylayer_clear_dataptr.py | 361 | # confirming the erase path is robust against missing entries. | COMMENT |
| MEDIUM | test/legacy_test/test_sin.py | 136 | """Test float32 sin with large shape for comprehensive coverage. | STRING |
| MEDIUM | test/legacy_test/test_sin.py | 149 | """Test float64 sin with large shape for comprehensive coverage. | STRING |
| LOW | python/paddle/distributed/parallel.py | 1116 | # here just set correctly place to users | COMMENT |
| LOW | python/paddle/distributed/auto_parallel/moe_utils.py | 83 | # assume the each rank has the same tensor shape for now, just use the local shape to calculate the global shape | COMMENT |
| LOW | python/paddle/distributed/auto_parallel/api.py | 348 | # None calc rank, just return no init. | COMMENT |
| LOW | python/paddle/distributed/auto_parallel/api.py | 514 | # just use the local shape to calculate the global shape | COMMENT |
| MEDIUM | …n/paddle/distributed/auto_parallel/pipelining/stage.py | 956 | # A more robust interface implementation is desired in the future. | COMMENT |
| LOW | …addle/distributed/auto_parallel/static/dist_context.py | 916 | # here we just set there process_mesh to the first one. | COMMENT |
| LOW | …thon/paddle/distributed/auto_parallel/static/engine.py | 1170 | # so, just return here and need to reimplement the logics below | COMMENT |
| LOW | …e/distributed/auto_parallel/static/operators/common.py | 311 | # For now, just return the first compatible impl | COMMENT |
| MEDIUM | …e/distributed/auto_parallel/static/operators/common.py | 479 | # TODO utilize the batch_dim attr instead of "0" in future | COMMENT |
| LOW | …e/distributed/fleet/meta_parallel/pipeline_parallel.py | 3371 | # else just return logits without loss func calc | COMMENT |
| LOW | …e/distributed/fleet/meta_parallel/pipeline_parallel.py | 3721 | # else just return logits without loss func calc | COMMENT |
| LOW | …e/distributed/fleet/meta_parallel/pipeline_parallel.py | 4178 | # else just return logits without loss func calc | COMMENT |
| MEDIUM | …buted/fleet/meta_parallel/parallel_layers/pp_layers.py | 725 | # Set color for shared parameters to facilitate synchronization of parameters | COMMENT |
| LOW | …buted/fleet/meta_parallel/parallel_layers/pp_layers.py | 1033 | # For 1f1b scheduler, just use run_function list | COMMENT |
| LOW | python/paddle/io/dataloader/flat.py | 140 | # simply return structure | COMMENT |
| LOW | python/paddle/utils/dlpack.py | 265 | # Old versions just call the converter | COMMENT |
| LOW | python/paddle/incubate/jit/inference_decorator.py | 621 | # if function has already been decorated by @paddle.incubate.jit.inference(), then we just return it. | COMMENT |
| LOW | python/paddle/jit/dy2static/convert_operators.py | 478 | # IfExpr will return a non-None return value, so we just return ret. | COMMENT |
| LOW | python/paddle/jit/dy2static/partial_program.py | 1132 | # can't just create a new program, we need copy the vardesc. | COMMENT |
| MEDIUM | python/paddle/jit/sot/utils/envs.py | 168 | # Enable information collection flags to facilitate debugging and analysis | COMMENT |
| LOW | …e/jit/sot/opcode_translator/executor/function_graph.py | 902 | # 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.py | 270 | # do nothing. just return None. | COMMENT |
| MEDIUM | paddle/cinn/ir/ir.h | 1009 | // TODO(liujinnan): Essentially IterExpr is not IndexExpr, so it does not | COMMENT |
| MEDIUM | paddle/cinn/hlir/framework/pir/broadcast_with_cf.h | 26 | // eliminated, and we utilize broadcast shape conditions to determine which | COMMENT |
| MEDIUM | paddle/fluid/pybind/slice_utils.h | 290 | // _PySlice_GetIndices. Try to use _PySlice_Unpack which is more robust than | COMMENT |
| MEDIUM | paddle/phi/backends/gpu/cuda/cuda_graph.h | 109 | // utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup. | COMMENT |
| MEDIUM | paddle/phi/backends/gpu/rocm/hip_graph.h | 111 | // utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup. | COMMENT |
| MEDIUM | paddle/phi/backends/onednn/onednn_reuse.h | 1041 | // rare shapes. By extending the shape to utilize oneDNN optimized binary | COMMENT |
| MEDIUM | paddle/phi/backends/custom/cuda_graph.h | 113 | // utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup. | COMMENT |
| LOW | paddle/phi/api/generator/dist_api_gen.py | 2024 | # InferSPMD rules, just set replicated dist_attr for them. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/legacy_test/test_retain_graph.py | 54 | fake_data, | CODE |
| LOW | test/legacy_test/test_retain_graph.py | 64 | interpolatesv = fake_data | CODE |
| LOW | test/legacy_test/test_retain_graph.py | 75 | interpolatesv = alpha * real_data + ((1 - alpha) * fake_data) | CODE |
| LOW | test/legacy_test/test_audio_backend.py | 147 | fake_data = np.array([0, 1, 2, 3, 4, 6], np.float32) | CODE |
| LOW | test/legacy_test/test_audio_backend.py | 148 | soundfile.write(wave_wav_path, fake_data, 1, subtype="DOUBLE") | CODE |
| LOW⚡ | test/legacy_test/test_paddle_save_load.py | 292 | fake_data = np.zeros([3, 2, 1, 2, 3]) | CODE |
| LOW⚡ | test/legacy_test/test_paddle_save_load.py | 294 | set_value(x, fake_data, '1') | CODE |
| LOW⚡ | test/legacy_test/test_paddle_save_load.py | 296 | set_value(x, fake_data) | CODE |
| LOW⚡ | test/legacy_test/test_paddle_save_load.py | 298 | set_value(var, fake_data) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 392 | # self.fake_data["row_nan_int64"] = row_data.astype(np.int64) | COMMENT |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 393 | # self.fake_data["row_nan_int32"] = row_data.astype(np.int32) | COMMENT |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 130 | single_partial_nan = self.fake_data["single_axis_normal"].copy() | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 132 | multi_partial_nan = self.fake_data["multi_axis_normal"].copy() | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 134 | self.fake_data["single_axis_partial_nan"] = single_partial_nan | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 135 | self.fake_data["multi_axis_partial_nan"] = multi_partial_nan | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 141 | self.fake_data["row_nan_even"] = row_data.astype(np.float32) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 142 | self.fake_data["row_nan_float64"] = row_data.astype(np.float64) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 148 | self.fake_data["col_nan_odd"] = col_data.astype(np.float32) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 232 | for name, data in self.fake_data.items(): | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 236 | test_axis_case(self.fake_data["row_nan_even"], axis) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 237 | test_axis_case(self.fake_data["col_nan_odd"], axis) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 379 | single_partial_nan = self.fake_data["single_axis_normal"].copy() | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 381 | multi_partial_nan = self.fake_data["multi_axis_normal"].copy() | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 383 | self.fake_data["single_axis_partial_nan"] = single_partial_nan | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 384 | self.fake_data["multi_axis_partial_nan"] = multi_partial_nan | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 390 | self.fake_data["row_nan_even"] = row_data.astype(np.float32) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 391 | self.fake_data["row_nan_float64"] = row_data.astype(np.float64) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 399 | self.fake_data["col_nan_odd"] = col_data.astype(np.float32) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 477 | for name, data in self.fake_data.items(): | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 481 | test_axis_case(self.fake_data["row_nan_even"], axis) | CODE |
| LOW⚡ | test/legacy_test/test_nanmedian.py | 482 | test_axis_case(self.fake_data["col_nan_odd"], axis) | CODE |
| LOW | test/legacy_test/test_nanmedian.py | 119 | self.fake_data = { | CODE |
| LOW | test/legacy_test/test_nanmedian.py | 165 | data = self.fake_data["col_nan_odd"] | CODE |
| LOW | test/legacy_test/test_nanmedian.py | 267 | data = self.fake_data["col_nan_odd"] | CODE |
| LOW | test/legacy_test/test_nanmedian.py | 368 | self.fake_data = { | CODE |
| LOW | test/legacy_test/test_nanmedian.py | 416 | data = self.fake_data["col_nan_odd"] | CODE |
| LOW | test/legacy_test/test_nanmedian.py | 516 | data = self.fake_data["col_nan_odd"] | CODE |
| LOW | test/dygraph_to_static/test_partial_program.py | 52 | def fake_data(shape): | CODE |
| LOW⚡ | test/dygraph_to_static/test_partial_program.py | 63 | self.x = fake_data([10, 16]) | CODE |
| LOW⚡ | test/dygraph_to_static/test_partial_program.py | 65 | fake_data([10, 16]), | CODE |
| LOW⚡ | test/dygraph_to_static/test_partial_program.py | 69 | 'z': [fake_data([10, 12]), fake_data([10, 12])], | CODE |
| LOW⚡ | test/dygraph_to_static/test_partial_program.py | 70 | 'c': fake_data([10, 10]), | CODE |
| LOW⚡ | test/dygraph_to_static/test_partial_program.py | 71 | 'd': {'da': 12, 'dc': fake_data([10, 10])}, | CODE |
| LOW | test/dygraph_to_static/test_partial_program.py | 101 | self.x = fake_data([10, 16]) | CODE |
| LOW | test/dygraph_to_static/test_partial_program.py | 102 | self.y = fake_data([10, 16]) | CODE |
| LOW | python/paddle/quantization/quantize.py | 67 | >>> dummy_data = paddle.rand([1, 1, 32, 32], dtype="float32") | CODE |
| LOW | python/paddle/quantization/quantize.py | 68 | >>> paddle.jit.save(converted_model, "./quant_deploy", [dummy_data]) | CODE |
| LOW | python/paddle/base/framework.py | 7809 | >>> rlt = paddle.static.data("fake_data", shape=[-1, 1, 1], dtype='float32') | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 84 | for (auto fake_name : attr_names) { | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 85 | size_t pos = fake_name.find(suffix); | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 87 | std::string name = fake_name.substr(0, pos); | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 89 | PADDLE_GET_CONST(std::vector<float>, op_desc->GetAttr(fake_name)); | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 91 | op_desc->RemoveAttr(fake_name); | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 116 | for (auto fake_name : attr_names) { | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 118 | size_t pos = fake_name.find(suffix_is_unsigned); | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 121 | std::string unsigned_var_name = fake_name; | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 125 | std::string var_name = fake_name.substr(0, pos); | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 126 | size_t unsigned_pos = fake_name.find(unsigned_flag); | CODE |
| LOW⚡ | paddle/fluid/framework/ir/onednn/onednn_pass_util.h | 128 | fake_name.erase(unsigned_pos, unsigned_flag.length()); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/CheckPRTemplate.py | 150 | # Check if involves precision change | COMMENT |
| LOW | tools/CheckPRTemplate.py | 210 | # Check if all required approvers have approved | COMMENT |
| LOW | test/compat/test_device_apis.py | 192 | # Set device to GPU | COMMENT |
| LOW | test/compat/test_device_apis.py | 373 | # Set device to custom device | COMMENT |
| LOW | test/compat/test_device_apis.py | 559 | # Set device to GPU | COMMENT |
| LOW | test/compat/test_device_apis.py | 631 | # Set device to custom device | COMMENT |
| LOW⚡ | test/compat/test_paddle_cuda_apis.py | 49 | # Check if we should skip all tests | COMMENT |
| LOW | test/ipu/op_test_ipu.py | 76 | # Check if ipumodel mode is enabled | COMMENT |
| LOW | test/ir/pir/fused_pass/test_pir_horizontal_fuse_pass.py | 219 | # Assign results to the program | COMMENT |
| LOW | test/ai_edited_test/test_ai_moe_permute.py | 196 | # Assign tokens to experts | COMMENT |
| LOW | test/ai_edited_test/test_ai_random_state.py | 59 | # Set device to CPU to ensure random numbers are generated on CPU | COMMENT |
| LOW | test/legacy_test/test_tensor_fill_diagonal_.py | 296 | # Check if diagonal elements are updated correctly | COMMENT |
| LOW | test/legacy_test/test_tensor_fill_diagonal_.py | 299 | # Check if off-diagonal elements remain 0 | COMMENT |
| LOW | test/legacy_test/test_eager_tensor.py | 569 | False # Set stop_gradient to be False, supported auto-grad | CODE |
| LOW | test/legacy_test/test_sequential.py | 52 | # Check if layer names are preserved in order | COMMENT |
| LOW | test/legacy_test/test_sequential.py | 57 | # Check if layers can be accessed by name | COMMENT |
| LOW | test/legacy_test/test_mean_op_v1.py | 28 | # Check if we're using XPU | COMMENT |
| LOW | test/legacy_test/test_mean_op_v1.py | 33 | # Check if we're using OneDNN | COMMENT |
| LOW | test/legacy_test/test_fused_act_dequant_op.py | 201 | # Check if s needs to be expanded to match x shape | COMMENT |
| LOW | test/legacy_test/test_compat_nn_linear.py | 442 | # Check if weights are the same | COMMENT |
| LOW | test/legacy_test/test_executor_and_use_program_cache.py | 44 | # Set parallel to False to use the default executor. | COMMENT |
| LOW | test/legacy_test/test_narrow.py | 60 | # Check if they both changed to test_val (alias) | COMMENT |
| LOW | test/legacy_test/test_tensor_type_convert_api.py | 139 | # Check if conversion method exists | COMMENT |
| LOW | test/legacy_test/test_tensor_type_convert_api.py | 220 | # Check if the method exists | COMMENT |
| LOW | test/legacy_test/test_nn_functional_interpolate.py | 248 | # Check if grad is not all zeros (it shouldn't be) | COMMENT |
| LOW | test/dygraph_to_static/check_approval.py | 135 | # Check if the test class inherits from unittest.TestCase | COMMENT |
| LOW | python/paddle/nn/functional/pooling.py | 655 | # Check if dilation is non-trivial (not all ones) | COMMENT |
| LOW | python/paddle/nn/functional/pooling.py | 1267 | # Check if dilation is non-trivial (not all ones) | STRING |
| LOW | python/paddle/nn/functional/pooling.py | 1457 | # Check if dilation is non-trivial (not all ones) | STRING |
| LOW | python/paddle/framework/restricted_unpickler.py | 134 | # Check if class has __dict__ (user-defined classes do) | COMMENT |
| LOW | python/paddle/framework/restricted_unpickler.py | 155 | # Check if this base class defines the dangerous method | COMMENT |
| LOW | python/paddle/distributed/parallel.py | 733 | # Print result in process 1: | STRING |
| LOW | python/paddle/distributed/parallel.py | 737 | # Print result in process 2: | STRING |
| LOW | …uted/fleet/meta_parallel/parallel_layers/spec_utils.py | 94 | # Check if a layer class is provided as a spec or if the layer path | COMMENT |
| LOW | …/paddle/distributed/fleet/base/distributed_strategy.py | 346 | # Check if attribute exists in self or in the protobuf strategy object | COMMENT |
| LOW | python/paddle/autograd/backward_utils.py | 721 | # Check if operands_source sizes match | COMMENT |
| LOW | python/paddle/autograd/backward_utils.py | 727 | # Check if op_results size matches operands_source | COMMENT |
| LOW⚡ | python/paddle/autograd/backward_utils.py | 751 | # Check if yield_op is indeed a yield operation | COMMENT |
| LOW⚡ | python/paddle/autograd/backward_utils.py | 755 | # Check if operands_source size of yield_op matches op_results size of while_op | COMMENT |
| LOW | python/paddle/cuda/__init__.py | 594 | # Check if any device type has been compiled/initialized | STRING |
| LOW | python/paddle/cuda/__init__.py | 603 | # Check if any custom device type is compiled/initialized | STRING |
| LOW | python/paddle/utils/decorator_utils.py | 1351 | # Check if Paddle style (axes is list) or PyTorch style (dim is int) | COMMENT |
| LOW | python/paddle/utils/decorator_utils.py | 1395 | # Check if all sizes are integers (variable args mode) | COMMENT |
| LOW | python/paddle/utils/cpp_extension/cpp_extension.py | 1460 | # Check if dist-info exists | STRING |
| LOW | python/paddle/utils/cpp_extension/cpp_extension.py | 1529 | # Check if dist-info exists | STRING |
| LOW | python/paddle/tensorrt/register.py | 85 | # Check if the version range includes 'x' (e.g., "8.x") | COMMENT |
| LOW | python/paddle/static/nn/static_pylayer.py | 111 | # Set OpRole to `backward`. The operators marked as `backward` are expected to be pruned in PruneBackward. | COMMENT |
| LOW | python/paddle/tensor/creation.py | 2287 | # Check if start/end/step contain floating point values | STRING |
| LOW | python/paddle/tensor/einsum.py | 397 | # Check if conditions hold for turning the operation into a matmul | COMMENT |
| LOW | python/paddle/tensor/math.py | 4650 | # Check if the input tensor is of bool type and raise an error | STRING |
| LOW | python/paddle/tensor/math.py | 4683 | # Check if the input tensor is of bool type and raise an error | STRING |
| LOW | python/paddle/base/executor.py | 2099 | # Check if paddle.static.data() variable no feed data | COMMENT |
| LOW | .github/workflows/cherry-pick.yml | 95 | # Check if target branch exists on remote | COMMENT |
| LOW | .github/workflows/cherry-pick.yml | 161 | # Check if PR already exists | COMMENT |
| LOW | .github/actions/skip-skill/check_skip.sh | 36 | # Check if PR event | COMMENT |
| LOW | .github/actions/skip-skill/check_skip.sh | 65 | # Check if files match ignore patterns | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/legacy_test/test_imperative_auto_prune.py | 152 | # In this example, the forward method involves all params | COMMENT |
| HIGH | python/paddle/distributed/io.py | 558 | >>> # In this example, the inference program was saved in the file | STRING |
| HIGH | python/paddle/tensorrt/export.py | 703 | >>> # In this example, the user specifies the actual input. | STRING |
| HIGH | python/paddle/static/io.py | 570 | # In this example, the save_inference_mode inference will prune the default | STRING |
| HIGH | python/paddle/static/io.py | 917 | # In this example, the inference program was saved in file | STRING |
| HIGH | python/paddle/static/input.py | 111 | # In this example, we will feed x and y with np-ndarray "1" | STRING |
| HIGH | python/paddle/static/pir_io.py | 848 | # In this example, the inference program was saved in file | STRING |
| HIGH | python/paddle/base/data_feeder.py | 518 | >>> # In this example, reader - generator will return a list of ndarray of 3 elements | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/gen_alias_mapping.sh | 24 | # Usage: | COMMENT |
| LOW | tools/dockerfile/build-image.sh | 19 | # Usage: | COMMENT |
| LOW | tools/enforce/grep_invalid_enforce.sh | 20 | # Usage: | COMMENT |
| LOW | test/dygraph_to_static/dygraph_to_static_utils.py | 45 | # Usage: | STRING |
| LOW | python/paddle/incubate/cc/compiler.py | 36 | # Usage: | COMMENT |
| LOW | python/paddle/incubate/cc/typing.py | 24 | # Usage: | COMMENT |
| LOW | python/paddle/incubate/cc/typing.py | 43 | # Usage: | COMMENT |
| LOW | python/paddle/incubate/cc/typing.py | 59 | # Usage: | COMMENT |
| LOW | paddle/.set_python_path.sh | 19 | # Usage: | COMMENT |
| LOW | …cinn/runtime/custom_device/custom_device_backend_api.h | 102 | /// Usage example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | python/paddle/paddle_version.py | 56 | # Ideally this should work for most cases by attempting to group | COMMENT |
| MEDIUM | python/paddle/nn/functional/flash_attention.py | 129 | This is a basic implementation of scaled dot product attention composed of | CODE |
| MEDIUM | python/paddle/optimizer/lr.py | 278 | # (Note): you can change it for your subclass. | COMMENT |
| MEDIUM | …inn/operator_fusion/pir_graph_analyzing/dim_relation.h | 94 | // Mainly for demonstration purposes, i.e. works but is overly simple | COMMENT |
| LOW | .github/ISSUE_TEMPLATE/3_build-installation-issue.yml | 11 | #### Before submitting a Build/Installation Issue, please make sure you have visited the [official website](http | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | paddle/cinn/optim/transform_gpu_forloop.h | 83 | * are common in auto-generated code or optimized code paths where | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/xpu/test_contiguous_complex64_strided_view_xpu.py | 33 | # standard XPU test scaffolding and to query supported dtypes. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/legacy_test/test_restricted_unpickler.py | 470 | def helper(): | CODE |
| LOW | test/legacy_test/test_matrix_rank_atol_rtol_op.py | 83 | def process_data(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/legacy_test/ernie_utils/moe_layer_uneven.py | 267 | # TODO: implement reduce in cuda ops | COMMENT |