PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
This report summarizes scanner evidence for PaddlePaddle/Paddle, a C++ project with 24,121 GitHub stars. SynthScan examined 2,359,227 lines of code across 10316 source files, recording 29153 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 15.5 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 22474 finding(s).
Are imports declared and package/API names verified? 5031 finding(s).
Are wrappers, guards, and repeated structures necessary? 9924 finding(s).
Which changes need focused human review? 29153 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 29153 distinct pattern matches across 27 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| 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/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 |
| LOW | tools/print_signatures.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| 9849 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 | 1508 | def extend_type_hints_package_data(packages, package_data, paddle_binary_dir): | STRING |
| LOW | setup.py | 1535 | def get_package_data_and_package_dir(): | STRING |
| LOW | setup.py | 2980 | def install_cpp_dist_and_build_test(install_dir, lib_test_dir, headers, libs): | CODE |
| LOW | setup.py | 3036 | 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_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/check_abi_compatibility.py | 450 | def _format_required_reviewers(reviewer: Iterable[str]) -> str: | 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 |
| LOW | test/tools/test_check_aten_ops_signature.py | 88 | def check_changed_headers_only(self, header): | CODE |
| LOW | test/tools/test_check_aten_ops_signature.py | 97 | def test_free_function_signature_match(self): | CODE |
| LOW | test/tools/test_check_aten_ops_signature.py | 126 | def test_torch_api_free_function_declaration_match(self): | CODE |
| 7205 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 | 59 | Acos Activation Operator. .. math:: out = cos^{-1}(x) Args: x (Tensor): Input of Acos ope | STRING |
| HIGH | python/paddle/_paddle_docs.py | 98 | Acosh Activation Operator. .. math:: out = acosh(x) Args: x (Tensor): Input of Acosh opera | STRING |
| HIGH | python/paddle/_paddle_docs.py | 137 | Sinh Activation Operator. .. math:: out = sinh(x) Args: x (Tensor): Input of Sinh operator | STRING |
| HIGH | python/paddle/_paddle_docs.py | 178 | Computes the minimum of tensor elements over the given axis Note: The difference between min and amin | STRING |
| HIGH | python/paddle/_paddle_docs.py | 312 | 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 | 359 | Computes the maximum of tensor elements over the given axis. Note: The difference between max and amax | STRING |
| HIGH | python/paddle/_paddle_docs.py | 494 | 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 | 566 | 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 | 615 | 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 | 663 | Arctangent Operator. .. math:: out = tan^{-1}(x) Args: x (Tensor): Input of Atan operator, | STRING |
| HIGH | python/paddle/_paddle_docs.py | 702 | Atanh Activation Operator. .. math:: out = atanh(x) Args: x (Tensor): Input of Atan operat | STRING |
| HIGH | python/paddle/_paddle_docs.py | 742 | Element-wise arctangent of x/y with consideration of the quadrant. Equation: .. math:: atan2(x | STRING |
| HIGH | python/paddle/_paddle_docs.py | 798 | 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 | 853 | 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 | 908 | Asinh Activation Operator. .. math:: out = asinh(x) Args: x (Tensor): Input of Asinh opera | STRING |
| HIGH | python/paddle/_paddle_docs.py | 947 | Reciprocal Activation Operator. .. math:: out = \\frac{1}{x} Args: x (Tensor): Input of R | STRING |
| HIGH | python/paddle/_paddle_docs.py | 986 | Square each elements of the inputs. .. math:: out = x^2 Args: x (Tensor): Input of Square | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1023 | 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 | 1064 | 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 | 1105 | Applies matrix multiplication to two tensors. `matmul` follows the complete broadcast rules, and its behavi | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1204 | multiply two tensors element-wise. The equation is: .. math:: out = x * y Note: Supported | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1260 | Calculates the log of the sum of exponential of ``x`` along ``axis`` . .. math:: logsumexp(x) = \log\su | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1319 | softplus activation .. math:: softplus(x)=\begin{cases} \frac{1}{\beta} * \\log(1 + e^ | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1359 | The function used to calculate modified bessel function of order 0. Equation: .. math:: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1396 | The function used to calculate exponentially scaled modified Bessel function of order 0. Equation: .. | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1436 | 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 | 1492 | 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 | 1521 | 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 | 1550 | 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 | 1582 | 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 | 1634 | Ceil Operator. Computes ceil of x element-wise. .. math:: out = \\left \\lceil x \\right \\rceil | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1676 | 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 | 1779 | 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 | 1846 | Computes the ``logical or`` of tensor elements over the given dimension, and return the result. Args: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 1919 | 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 | 1966 | 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 | 2093 | This API implements pixel shuffle operation. See more details in :ref:`PixelShuffle <api_paddle_nn_PixelShuffle | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2127 | gelu activation. The activation function of Gelu is calculated element by element. More information refers to | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2193 | Sigmoid Activation. .. math:: out = \\frac{1}{1 + e^{-x}} Args: x (Tensor): Input of Sigmo | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2235 | Returns the truth value of :math:`x > y` elementwise, which is equivalent function to the overloaded operator `>`. | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2274 | Sine Activation Operator. .. math:: out = sin(x) Args: x (Tensor): Input of Sin operator, | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2313 | 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 | 2345 | Calculates the lgamma of the given input tensor, element-wise. This operator performs elementwise lgamma for i | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2384 | Calculates the natural log of the given input Tensor, element-wise. .. math:: Out = \ln(x) Args: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2423 | Rsqrt Activation Operator. Please make sure input is legal in case of numeric errors. .. math:: ou | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2464 | 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 | 2505 | Cosh Activation Operator. Input range `(-inf, inf)`, output range `(1, inf)`. .. math:: out = \\fr | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2546 | Floor Activation Operator. Computes floor of x element-wise. .. math:: out = \\lfloor x \\rfloor | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2587 | Compare two tensors and returns a new tensor containing the element-wise maxima. The equation is: .. math:: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2654 | Compare two tensors and return a new tensor containing the element-wise minima. The equation is: .. math:: | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2720 | Sqrt Activation Operator. .. math:: out=\\sqrt{x}=x^{1/2} Args: x (Tensor): Input of Sqrt | STRING |
| HIGH | python/paddle/_paddle_docs.py | 2764 | 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 | 2833 | 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 | Compute element-wise logical AND on ``x`` and ``y``, and return ``out``. ``out`` is N-dim boolean ``Tensor``. E | STRING |
| 1528 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_place_pickle.py | 15 | CODE | |
| LOW | test/compat/test_torch_proxy_mixed.py | 95 | CODE | |
| LOW | test/compat/test_torch_proxy_mixed.py | 108 | CODE | |
| LOW | …_modules/torch_proxy_local_enabled_package/__init__.py | 15 | 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 | |
| 4734 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 421 | CODE | |
| LOW | setup.py | 995 | CODE | |
| LOW | setup.py | 1535 | 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/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 | |
| LOW | tools/CrossStackProfiler/ProfileFileReader.py | 199 | CODE | |
| 2295 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/count_api_without_core_ops.py | 73 | except: | CODE |
| HIGH | tools/count_api_without_core_ops.py | 90 | except: | CODE |
| HIGH | tools/type_checking.py | 126 | except OSError: | CODE |
| HIGH | tools/type_checking.py | 150 | except OSError: | CODE |
| HIGH | tools/type_checking.py | 154 | except OSError: | CODE |
| HIGH | tools/check_op_benchmark_result.py | 47 | except ValueError: | CODE |
| HIGH | tools/dockerfile/build_scripts/manylinux1-check.py | 33 | except (ImportError, AttributeError): | CODE |
| HIGH | tools/codestyle/copyright.py | 72 | except StopIteration: | CODE |
| HIGH | test/compat/test_event_stream_apis.py | 63 | except Exception: | CODE |
| HIGH | test/compat/test_event_stream_apis.py | 125 | except AssertionError: | CODE |
| HIGH | test/compat/test_event_stream_apis.py | 299 | except Exception: | CODE |
| HIGH | test/compat/test_event_stream_apis.py | 262 | except Exception: | CODE |
| HIGH | test/ir/inference/dist_llama_inference_model.py | 788 | except: | CODE |
| HIGH | test/collective/communication_zero_sm_api_dygraph.py | 232 | except AttributeError: | CODE |
| HIGH | test/collective/fleet/hybrid_parallel_pp_layers.py | 341 | except (TypeError, StopIteration): | CODE |
| HIGH | …ollective/fleet/hybrid_parallel_sharding_state_dict.py | 271 | except: | CODE |
| HIGH | test/collective/fleet/test_auto_checkpoint.py | 268 | except Exception as e: | CODE |
| HIGH | …e/fleet/hybrid_parallel_pp_layer_with_virtual_stage.py | 90 | except PermissionError: | CODE |
| HIGH | …ollective/fleet/hybrid_parallel_pp_transformer_save.py | 74 | except: | CODE |
| HIGH | …rid_parallel_pp_transformer_save_with_virtual_stage.py | 79 | except: | CODE |
| HIGH | test/collective/fleet/test_fleet_checkpoint.py | 109 | except: | CODE |
| HIGH | test/collective/fleet/test_fleet_checkpoint.py | 123 | except: | CODE |
| HIGH | test/xpu/test_prelu_op_xpu.py | 202 | except ValueError as e: | CODE |
| HIGH | test/distribution/parameterize.py | 165 | except AttributeError: | CODE |
| HIGH | test/test_flashmask_ci/test_fwd_md5sum.py | 241 | except FileNotFoundError: | CODE |
| HIGH | test/coverage_test/test_coverage_amp_ops.py | 61 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_moe_unpermute.py | 124 | except Exception as e: | CODE |
| HIGH | test/coverage_test/test_coverage_moe_unpermute.py | 196 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_moe_unpermute.py | 257 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_moe_unpermute.py | 327 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_moe_unpermute.py | 389 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_moe_unpermute.py | 465 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_moe_unpermute.py | 554 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_moe_unpermute.py | 460 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_layer_gen.py | 125 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_layer_gen.py | 138 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_layer_gen.py | 151 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_layer_gen.py | 162 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_layer_gen.py | 171 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_quantized_linear.py | 46 | except (ValueError, RuntimeError): | CODE |
| HIGH | test/coverage_test/test_coverage_quantized_linear.py | 219 | except AssertionError: | CODE |
| HIGH | test/coverage_test/test_coverage_quantized_linear.py | 221 | except RuntimeError: | CODE |
| HIGH | test/coverage_test/test_coverage_quantized_linear.py | 511 | except ValueError: | CODE |
| HIGH | test/coverage_test/test_coverage_quantized_linear.py | 150 | except AssertionError: | CODE |
| HIGH | …st/coverage_test/test_coverage_flash_attention_func.py | 481 | except Exception: | CODE |
| HIGH | …st/coverage_test/test_coverage_flash_attention_func.py | 502 | except Exception: | CODE |
| HIGH | …st/coverage_test/test_coverage_flash_attention_func.py | 535 | except Exception: | CODE |
| HIGH | …st/coverage_test/test_coverage_flash_attention_func.py | 554 | except Exception: | CODE |
| HIGH | …st/coverage_test/test_coverage_flash_attention_func.py | 598 | except Exception: | CODE |
| HIGH | …st/coverage_test/test_coverage_flash_attention_func.py | 630 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_flash_attention.py | 61 | except AssertionError: | CODE |
| HIGH | test/coverage_test/test_coverage_flash_attention.py | 80 | except (AssertionError, RuntimeError): | CODE |
| HIGH | test/coverage_test/test_coverage_flash_attention.py | 92 | except (AssertionError, RuntimeError): | CODE |
| HIGH | test/coverage_test/test_coverage_flash_attention.py | 104 | except (AssertionError, RuntimeError): | CODE |
| HIGH | test/coverage_test/test_coverage_flash_attention.py | 117 | except Exception: | CODE |
| HIGH | test/coverage_test/test_coverage_flash_attention.py | 130 | except Exception: | CODE |
| HIGH | test/legacy_test/test_slice_scatter.py | 31 | except: | CODE |
| HIGH | test/legacy_test/test_fused_comm_buffer.py | 49 | except ValueError: | CODE |
| HIGH | test/legacy_test/test_fs_interface.py | 37 | except NotImplementedError as e: | CODE |
| HIGH | test/legacy_test/test_fleet_elastic_collective.py | 68 | except Exception as e: | CODE |
| 118 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 | 89 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 91 | # ------------------------------------------------------------------ | 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_muon_2d_partition.py | 289 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/legacy_test/test_muon_2d_partition.py | 291 | # --------------------------------------------------------------------------- | 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 |
| 158 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 | 753 | &\text{undefined} & x=0, y = 0 | CODE |
| HIGH | python/paddle/_paddle_docs.py | 2957 | out = x || y | CODE |
| HIGH | python/paddle/_paddle_docs.py | 3048 | 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 | 305 | if align_corners = True && out_size > 1 : | CODE |
| HIGH | python/paddle/nn/functional/common.py | 328 | if align_corners = True && out_size > 1 : | CODE |
| HIGH | python/paddle/nn/functional/common.py | 1035 | 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 | …_modules/torch_proxy_local_enabled_package/__init__.py | 17 | __all__ = ["submodule"] | 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 | 1130 | __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 |
| 514 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 | 1365 | except Exception as e: | STRING |
| LOW | setup.py | 2939 | except Exception as e: | CODE |
| LOW | setup.py | 3055 | 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_place_pickle.py | 77 | 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 | 568 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 583 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 598 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 613 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 629 | except Exception as e: | CODE |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 715 | except Exception as e: | CODE |
| LOW | …llective/fleet/dygraph_group_sharded_stage2_offload.py | 125 | except Exception as e: | CODE |
| LOW | test/xpu/test_xpu_async_offload_reload_performance.py | 43 | except Exception as e: | CODE |
| LOW⚡ | test/xpu/test_xpu_async_offload_reload_loadtest.py | 40 | except Exception as e: | CODE |
| LOW | test/xpu/test_cudagraph_xpu.py | 99 | except Exception as e: | CODE |
| LOW | test/xpu/test_gen_bkcl_id_op.py | 78 | except Exception as e: | CODE |
| MEDIUM | test/xpu/test_gen_bkcl_id_op.py | 75 | def setUp(self): | 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 | 162 | 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/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/coverage_test/test_coverage_nn_utils.py | 106 | # Create a new vector of the right size | COMMENT |
| MEDIUM | test/coverage_test/test_coverage_embedding_onehot.py | 120 | # Create a weight matrix where some rows have norm > max_norm | 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 | 389 | # Create a new module object that will act as the "torch..." module. | COMMENT |
| MEDIUM | python/paddle/compat/nn/__init__.py | 580 | >>> # 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/coverage_test/test_coverage_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⚡ | …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⚡ | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 682 | # Step 1: order machines. | COMMENT |
| LOW⚡ | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 692 | # Step 2: one bucket per (color, dtype), since a FusedCommBuffer never | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 711 | # Step 3: biggest bucket first, since it constrains the final | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 731 | # Step 4: owner count, unchanged from the original partition. The | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 747 | # Step 5: pick owners -- least loaded machine, then least crowded, | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 800 | # Step 6: place params, largest first onto the lightest owner. | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 820 | # Step 7: report the distribution. adjacent_pair_max tracks the backup | 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 | 2187 | // Step 1: Convert var -> rstd | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2208 | // Step 2: Compute dX using vectorized or non-vectorized kernel | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2265 | // Step 3: Compute dgamma and dbeta | COMMENT |
| LOW⚡ | paddle/phi/kernels/gpu/elementwise_grad.h | 480 | // Step 1: tmp_dy = -dout (elementwise negation via broadcast). | COMMENT |
| LOW⚡ | paddle/phi/kernels/gpu/elementwise_grad.h | 486 | // 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 |
| 5 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⚡ | …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⚡ | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 682 | # Step 1: order machines. | COMMENT |
| LOW⚡ | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 692 | # Step 2: one bucket per (color, dtype), since a FusedCommBuffer never | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 711 | # Step 3: biggest bucket first, since it constrains the final | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 731 | # Step 4: owner count, unchanged from the original partition. The | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 747 | # Step 5: pick owners -- least loaded machine, then least crowded, | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 800 | # Step 6: place params, largest first onto the lightest owner. | COMMENT |
| LOW | …buted/fleet/meta_optimizers/muon_sharding_optimizer.py | 820 | # Step 7: report the distribution. adjacent_pair_max tracks the backup | 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 | 2187 | // Step 1: Convert var -> rstd | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2208 | // Step 2: Compute dX using vectorized or non-vectorized kernel | COMMENT |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2265 | // Step 3: Compute dgamma and dbeta | COMMENT |
| LOW⚡ | paddle/phi/kernels/gpu/elementwise_grad.h | 480 | // Step 1: tmp_dy = -dout (elementwise negation via broadcast). | COMMENT |
| LOW⚡ | paddle/phi/kernels/gpu/elementwise_grad.h | 486 | // 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_take_along_axis_op.py | 298 | # harness). Values 0 (x4) and 1 (x3) repeat along axis=2, so several | 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 | 3691 | # else just return logits without loss func calc | COMMENT |
| LOW | …e/distributed/fleet/meta_parallel/pipeline_parallel.py | 4058 | # else just return logits without loss func calc | COMMENT |
| LOW | …e/distributed/fleet/meta_parallel/pipeline_parallel.py | 4631 | # 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 | 1078 | # 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 | 291 | // _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 | 1043 | // 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 | …ctive/fleet/test_pipeline_parallel_micro_step_hooks.py | 31 | PLACEHOLDER = "placeholder" | CODE |
| 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 | 311 | fake_data = np.zeros([3, 2, 1, 2, 3]) | CODE |
| LOW⚡ | test/legacy_test/test_paddle_save_load.py | 313 | set_value(x, fake_data, '1') | CODE |
| LOW⚡ | test/legacy_test/test_paddle_save_load.py | 315 | set_value(x, fake_data) | CODE |
| LOW⚡ | test/legacy_test/test_paddle_save_load.py | 317 | 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 | 201 | # Set device to GPU | COMMENT |
| LOW | test/compat/test_device_apis.py | 382 | # Set device to custom device | COMMENT |
| LOW | test/compat/test_device_apis.py | 568 | # Set device to GPU | COMMENT |
| LOW | test/compat/test_device_apis.py | 640 | # 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/coverage_test/test_coverage_moe_permute.py | 196 | # Assign tokens to experts | COMMENT |
| LOW | test/coverage_test/test_coverage_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 | 433 | # 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 | 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 | 1447 | # Check if Paddle style (axes is list) or PyTorch style (dim is int) | COMMENT |
| LOW | python/paddle/utils/decorator_utils.py | 1491 | # 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 | 5066 | # Check if the input tensor is of bool type and raise an error | STRING |
| LOW | python/paddle/tensor/math.py | 5099 | # 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 |
| 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 | 34 | # standard XPU test scaffolding and to query supported dtypes. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/legacy_test/test_restricted_unpickler.py | 536 | 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 |