Repository Analysis

PaddlePaddle/Paddle

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

14.5 Low AI signal View on GitHub
14.5
Adjusted Score
14.5
Raw Score
100%
Time Factor
2026-05-30
Last Push
23,925
Stars
C++
Language
2,303,151
Lines of Code
10235
Files
26394
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 39HIGH 1980MEDIUM 466LOW 23909

Pattern Findings

26394 matches across 19 categories. Click a row to expand file-level details.

Over-Commented Block9820 hits · 9758 pts
SeverityFileLineSnippet
LOWCMakeLists.txt1# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
LOWsetup.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
LOW.cmake-format.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
LOW.cmake-format.py21
LOWtools/diff_api.py1#!/usr/bin/env python
LOWtools/gen_pybind11_stub.py1# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
LOWtools/test_print_signatures.py1#! /usr/bin/env python
LOWtools/gen_tensor_stub.py1# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
LOWtools/count_api_without_core_ops.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
LOWtools/get_ut_mem_map.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
LOWtools/get_op_list.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
LOWtools/get_single_test_cov.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
LOWtools/CheckPRTemplate.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
LOWtools/check_op_kernel_same_dtypes.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
LOWtools/statistics_UT_resource.sh1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
LOWtools/timeline.py1# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
LOWtools/op_benchmark_count.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
LOWtools/gen_ut_cmakelists.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
LOWtools/get_quick_disable_lt.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
LOWtools/type_checking.py1# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
LOWtools/check_pr_approval.py1# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
LOWtools/nvcc_lazy.sh1#!/usr/bin/env bash
LOWtools/pyCov_multithreading.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
LOWtools/gen_alias_mapping.sh1#!/usr/bin/env bash
LOWtools/gen_alias_mapping.sh21# Arguments:
LOWtools/diff_use_default_grad_op_maker.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
LOWtools/get_pr_ut.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
LOWtools/__init__.py1# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
LOWtools/timeout_debug_help.sh1#!/bin/bash
LOWtools/check_api_compatible.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
LOWtools/static_mode_white_list.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
LOWtools/reduce_lib_size_util.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
LOWtools/analysisPyXml.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
LOWtools/sampcd_processor.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
LOWtools/check_sequence_op.sh1#!/bin/bash
LOWtools/handle_h_cu_file.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
LOWtools/print_op_desc.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
LOWtools/check_op_desc.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
LOWtools/prune_for_jetson.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
LOWtools/gpups_test.sh1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
LOWtools/get_op_list.sh1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
LOWtools/get_pr_title.py1# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
LOWtools/test_runner.py1# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
LOWtools/summary_env.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
LOWtools/document_preview.sh1#!/bin/bash
LOWtools/jetson_infer_op.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
LOWtools/op_benchmark.sh1#!/bin/bash
LOWtools/diff_unittest.py1#!/usr/bin/env python
LOWtools/check_code_block_format.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
LOWtools/parse_kernel_info.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
LOWtools/check_op_register_type.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
LOWtools/check_added_ut.sh1#!/bin/bash
LOWtools/test_run_by_protobuf_3.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
LOWtools/check_abi_compatibility.py1# Copyright (c) 2026 PaddlePaddle Authors. All Rights Reserved.
LOWtools/gpu_kernel_compare.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
LOWtools/test_check_pr_approval.py1#! /usr/bin/env python
LOWtools/check_gpu_kernel_approval.sh1#!/bin/bash
LOWtools/parallel_UT_rule.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
LOWtools/check_only_change_python_files.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
LOWtools/print_signatures.py1# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
9760 more matches not shown…
Docstring Block Structure1562 hits · 7092 pts
SeverityFileLineSnippet
HIGHtools/sampcd_processor_utils.py222A DocTester can be used to test the codeblock from the API's docstring. Attributes: style(str): `style` sh
HIGHtest/tokenizer/bert_tokenizer.py44 Tokenizes a piece of text using basic tokenizer. Args: text (str): A piece of text.
HIGHtest/tokenizer/bert_tokenizer.py188 Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to per
HIGHtest/tokenizer/bert_tokenizer.py374 Converts a string to a list of tokens. Args: text (str): The text to be tokenized.
HIGHtest/legacy_test/nets.py280 :api_attr: Static Graph **This api takes input as an DenseTensor. If input is a Tensor, please use** :
HIGHtest/dygraph_to_static/simnet_dygraph_model.py236 This interface is used to construct a callable object of the ``FC`` class. For more details, refer to code exam
HIGHpython/paddle/_paddle_docs.py70 Acos Activation Operator. .. math:: out = cos^{-1}(x) Args: x (Tensor): Input of Acos ope
HIGHpython/paddle/_paddle_docs.py111 Acosh Activation Operator. .. math:: out = acosh(x) Args: x (Tensor): Input of Acosh opera
HIGHpython/paddle/_paddle_docs.py152 Sinh Activation Operator. .. math:: out = sinh(x) Args: x (Tensor): Input of Sinh operator
HIGHpython/paddle/_paddle_docs.py193 Computes the minimum of tensor elements over the given axis Note: The difference between min and amin
HIGHpython/paddle/_paddle_docs.py334 Computes both the minimum and maximum of tensor elements over the given axis. Note: Like amin and amax
HIGHpython/paddle/_paddle_docs.py384 Computes the maximum of tensor elements over the given axis. Note: The difference between max and amax
HIGHpython/paddle/_paddle_docs.py525 Element-wise angle of complex numbers. For non-negative real numbers, the angle is 0 while for negative real nu
HIGHpython/paddle/_paddle_docs.py580 Computes the ``logical and`` of tensor elements over the given dimension. Args: x (Tensor): An N-D Ten
HIGHpython/paddle/_paddle_docs.py655 Computes the indices of the max elements of the input tensor's element along the provided axis. Args:
HIGHpython/paddle/_paddle_docs.py708 Computes the indices of the min elements of the input tensor's element along the provided axis. Args:
HIGHpython/paddle/_paddle_docs.py761 Arctangent Operator. .. math:: out = tan^{-1}(x) Args: x (Tensor): Input of Atan operator,
HIGHpython/paddle/_paddle_docs.py802 Atanh Activation Operator. .. math:: out = atanh(x) Args: x (Tensor): Input of Atan operat
HIGHpython/paddle/_paddle_docs.py843Element-wise arctangent of x/y with consideration of the quadrant. Equation: .. math:: atan2(x
HIGHpython/paddle/_paddle_docs.py902 Calculates the log to the base 2 of the given input tensor, element-wise. .. math:: Out = \log_2x
HIGHpython/paddle/_paddle_docs.py959 Calculates the log to the base 10 of the given input tensor, element-wise. .. math:: Out = \log_{10}x
HIGHpython/paddle/_paddle_docs.py1015 Asinh Activation Operator. .. math:: out = asinh(x) Args: x (Tensor): Input of Asinh opera
HIGHpython/paddle/_paddle_docs.py1056 Reciprocal Activation Operator. .. math:: out = \\frac{1}{x} Args: x (Tensor): Input of R
HIGHpython/paddle/_paddle_docs.py1097 Square each elements of the inputs. .. math:: out = x^2 Args: x (Tensor): Input of Square
HIGHpython/paddle/_paddle_docs.py1136 Tangent Operator. Computes tangent of x element-wise. Input range is `(k*pi-pi/2, k*pi+pi/2)` and output range
HIGHpython/paddle/_paddle_docs.py1179 Calculates the natural log of the given input tensor plus 1, element-wise. .. math:: Out = \ln(x+1)
HIGHpython/paddle/_paddle_docs.py1219 Applies matrix multiplication to two tensors. `matmul` follows the complete broadcast rules, and its behavi
HIGHpython/paddle/_paddle_docs.py1326 multiply two tensors element-wise. The equation is: .. math:: out = x * y Note: Supported
HIGHpython/paddle/_paddle_docs.py1383 Calculates the log of the sum of exponential of ``x`` along ``axis`` . .. math:: logsumexp(x) = \log\su
HIGHpython/paddle/_paddle_docs.py1446 softplus activation .. math:: softplus(x)=\begin{cases} \frac{1}{\beta} * \\log(1 + e^
HIGHpython/paddle/_paddle_docs.py1488 The function used to calculate modified bessel function of order 0. Equation: .. math::
HIGHpython/paddle/_paddle_docs.py1527 The function used to calculate exponentially scaled modified Bessel function of order 0. Equation: ..
HIGHpython/paddle/_paddle_docs.py1567 Check if all :math:`x` and :math:`y` satisfy the condition: .. math:: \\left| x - y \right| \\leq atol
HIGHpython/paddle/_paddle_docs.py1658 Return whether every element of input tensor is finite number or not. Args: x (Tensor): The input tens
HIGHpython/paddle/_paddle_docs.py1689 Return whether every element of input tensor is `+/-INF` or not. Args: x (Tensor): The input tensor, i
HIGHpython/paddle/_paddle_docs.py1720 Return whether every element of input tensor is `NaN` or not. Args: x (Tensor): The input tensor, it's
HIGHpython/paddle/_paddle_docs.py1752 Roll the `x` tensor along the given axis(axes). With specific 'shifts', Elements that roll beyond the last posi
HIGHpython/paddle/_paddle_docs.py1811 Ceil Operator. Computes ceil of x element-wise. .. math:: out = \\left \\lceil x \\right \\rceil
HIGHpython/paddle/_paddle_docs.py1852 Computes the sum of tensor elements over the given dimension. This API has two signatures: 1. ``paddle.su
HIGHpython/paddle/_paddle_docs.py1962 Puts values from the tensor values into the tensor x using the indices specified in indices (which is a tuple of Te
HIGHpython/paddle/_paddle_docs.py2032 Computes the ``logical or`` of tensor elements over the given dimension, and return the result. Args:
HIGHpython/paddle/_paddle_docs.py2109 Expand the input tensor ``x`` to the same shape as the input tensor ``y``. Both the number of dimensions of `
HIGHpython/paddle/_paddle_docs.py2155 Sample input X by using bilinear interpolation or nearest interpolation based on flow field grid, which is usua
HIGHpython/paddle/_paddle_docs.py2296 This API implements pixel shuffle operation. See more details in :ref:`PixelShuffle <api_paddle_nn_PixelShuffle
HIGHpython/paddle/_paddle_docs.py2333 gelu activation. The activation function of Gelu is calculated element by element. More information refers to
HIGHpython/paddle/_paddle_docs.py2400 Sigmoid Activation. .. math:: out = \\frac{1}{1 + e^{-x}} Args: x (Tensor): Input of Sigmo
HIGHpython/paddle/_paddle_docs.py2443 Returns the truth value of :math:`x > y` elementwise, which is equivalent function to the overloaded operator `>`.
HIGHpython/paddle/_paddle_docs.py2485 Sine Activation Operator. .. math:: out = sin(x) Args: x (Tensor): Input of Sin operator,
HIGHpython/paddle/_paddle_docs.py2526 Returns sign of every element in `x`: For real numbers, 1 for positive, -1 for negative and 0 for zero. For complex
HIGHpython/paddle/_paddle_docs.py2560 Calculates the lgamma of the given input tensor, element-wise. This operator performs elementwise lgamma for i
HIGHpython/paddle/_paddle_docs.py2601 Calculates the natural log of the given input Tensor, element-wise. .. math:: Out = \ln(x) Args:
HIGHpython/paddle/_paddle_docs.py2642 Rsqrt Activation Operator. Please make sure input is legal in case of numeric errors. .. math:: ou
HIGHpython/paddle/_paddle_docs.py2685 Cosine Operator. Computes cosine of x element-wise. Input range is `(-inf, inf)` and output range is `[-1,1]`.
HIGHpython/paddle/_paddle_docs.py2728 Cosh Activation Operator. Input range `(-inf, inf)`, output range `(1, inf)`. .. math:: out = \\fr
HIGHpython/paddle/_paddle_docs.py2771 Floor Activation Operator. Computes floor of x element-wise. .. math:: out = \\lfloor x \\rfloor
HIGHpython/paddle/_paddle_docs.py2812 Compare two tensors and returns a new tensor containing the element-wise maxima. The equation is: .. math::
HIGHpython/paddle/_paddle_docs.py2881 Compare two tensors and return a new tensor containing the element-wise minima. The equation is: .. math::
HIGHpython/paddle/_paddle_docs.py2950 Sqrt Activation Operator. .. math:: out=\\sqrt{x}=x^{1/2} Args: x (Tensor): Input of Sqrt
HIGHpython/paddle/_paddle_docs.py2994 Returns the lower triangular part of a matrix (2-D tensor) or batch of matrices :attr:`x`, the other elements o
HIGHpython/paddle/_paddle_docs.py3066 Return the upper triangular part of a matrix (2-D tensor) or batch of matrices :attr:`x`, the other elements of
1502 more matches not shown…
Hyper-Verbose Identifiers6543 hits · 6593 pts
SeverityFileLineSnippet
LOWsetup.py330def _convert_readme_relative_paths_for_pypi(readme: str) -> str:
LOWsetup.py929def write_parameter_server_version_py(
LOWsetup.py1161def get_paddle_extra_install_requirements():
LOWsetup.py1526def extend_type_hints_package_data(packages, package_data, paddle_binary_dir):
LOWsetup.py1553def get_package_data_and_package_dir():
LOWsetup.py2994def install_cpp_dist_and_build_test(install_dir, lib_test_dir, headers, libs):
LOWsetup.py3050 def submodules_not_exists_or_empty(folder):
LOWtools/gen_pybind11_stub.py363def check_remove_syntax_error(filename: str, limit: int = 10000):
LOWtools/gen_pybind11_stub.py555def load_python_api_function_by_name(name: str) -> Any:
LOWtools/gen_pybind11_stub.py890 def _parse_dst_module_to_path(
LOWtools/gen_tensor_stub.py71def create_builtin_annotation_renamer():
LOWtools/gen_tensor_stub.py85def rename_builtin_annotation(annotation):
LOWtools/count_api_without_core_ops.py47def split_with_and_without_core_ops(member, cur_name):
LOWtools/count_api_without_core_ops.py170def get_apis_with_and_without_core_ops(modules):
LOWtools/CheckPRTemplate.py144def check_precision_change_approval(body, pr_number, pr_user):
LOWtools/CheckPRTemplate.py285def pull_request_event_template(event, repo, *args, **kwargs):
LOWtools/check_op_kernel_same_dtypes.py84def check_change_or_add_op_kernel_dtypes_valid():
LOWtools/gen_ut_cmakelists.py250 def _init_dist_ut_ports_from_cmakefile(self, cmake_file_name):
LOWtools/gen_ut_cmakelists.py289 def parse_assigned_dist_ut_ports(self, current_work_dir, depth=0):
LOWtools/type_checking.py314def codeblock_identifier_to_filename(codeblock_identifier: str) -> str:
LOWtools/get_pr_ut.py169 def __get_comment_by_filetype(self, content, filetype):
LOWtools/check_op_desc.py407def print_version_error_message(error_message):
LOWtools/get_pr_title.py57def check_skip_distribute_test(title):
LOWtools/check_code_block_format.py138def format_code_block_with_suggestions(
LOWtools/check_code_block_format.py181def check_code_block_indentation(
LOWtools/check_code_block_format.py202def check_code_block_follows_blank_line(
LOWtools/check_code_block_format.py216 def check_lines_starts_with_blank_line(
LOWtools/check_abi_compatibility.py108def parse_readelf_dynamic_symbols(readelf_output: str) -> list[DynamicSymbol]:
LOWtools/check_abi_compatibility.py184def is_protected_paddle_abi_symbol(symbol: DynamicSymbol) -> bool:
LOWtools/check_abi_compatibility.py193def protected_symbols_by_name(
LOWtools/check_abi_compatibility.py338def find_required_abi_approver(
LOWtools/check_abi_compatibility.py398def check_abi_removal_approval(
LOWtools/check_abi_compatibility.py439def check_abi_issues_approval(
LOWtools/gpu_kernel_compare.py67 def _create_config_signature_without_dtype(
LOWtools/test_check_pr_approval.py113 def test_check_with_required_reviewer_not_approved(self):
LOWtools/check_only_change_python_files.py58 def check_only_change_python_file(self):
LOWtools/test_check_api_compatible.py62 def test_args_places_exchanged(self):
LOWtools/test_check_api_compatible.py116 def test_args_places_exchanged(self):
LOWtools/check_op_benchmark_result.py56def load_benchmark_result_from_logs_dir(logs_dir):
LOWtools/sampcd_processor_utils.py406def get_full_api_from_pr_spec():
LOWtools/sampcd_processor_utils.py419def extract_code_blocks_from_docstr(docstr, google_style=True):
LOWtools/remove_grad_op_and_kernel.py49def remove_grad_op_and_kernel(content, pattern1, pattern2):
LOWtools/codestyle/clang-tidy.py77def find_compilation_database(path, result="./"):
LOWtools/codestyle/clang-tidy.py205def check_clang_apply_replacements_binary(args):
LOWtest/tools/test_gpu_kernel_compare.py35 def test_all_gpu_kernel_detection(self):
LOWtest/tools/test_sampcd_processor.py506 def test_patch_xdoctest_place(self):
LOWtest/tools/test_sampcd_processor.py699 def test_patch_xdoctest_float(self):
LOWtest/tools/test_sampcd_processor.py1818 def test_multiprocessing_xdoctester(self):
LOWtest/tools/test_sampcd_processor.py2377 def test_single_process_directive(self):
LOWtest/tools/test_check_abi_compatibility.py41 def test_ignores_weak_undefined_and_local_symbols(self):
LOWtest/tools/test_check_abi_compatibility.py59 def test_detects_protected_compat_cxx_namespaces(self):
LOWtest/tools/test_check_abi_compatibility.py87 def test_ignores_non_compat_paddle_entrypoints(self):
LOWtest/tools/test_check_abi_compatibility.py108 def test_ignores_third_party_symbols(self):
LOWtest/tools/test_check_abi_compatibility.py120 def test_added_symbols_do_not_fail(self):
LOWtest/tools/test_check_abi_compatibility.py139 def test_removed_protected_symbol_fails(self):
LOWtest/tools/test_check_abi_compatibility.py161 def test_removed_third_party_symbol_does_not_fail(self):
LOWtest/tools/test_check_abi_compatibility.py170 def test_removed_non_compat_phi_symbol_does_not_fail(self):
LOWtest/tools/test_check_abi_compatibility.py184 def test_missing_pr_library_fails_when_base_has_library(self):
LOWtest/tools/test_check_abi_compatibility.py199 def test_missing_base_library_does_not_fail(self):
LOWtest/tools/test_check_abi_compatibility.py214 def test_no_abi_issues_do_not_require_approval(self):
6483 more matches not shown…
Unused Imports4753 hits · 3562 pts
SeverityFileLineSnippet
LOWsetup.py15
LOWtools/gen_pybind11_stub.py15
LOWtools/type_checking.py24
LOWtools/sampcd_processor.py25
LOWtools/check_abi_compatibility.py21
LOWtools/gpu_kernel_compare.py15
LOWtools/print_signatures.py21
LOWtools/sampcd_processor_utils.py15
LOWtools/sampcd_processor_utils.py623
LOWtools/sampcd_processor_utils.py624
LOWtools/commitlist.py15
LOWtest/compat/test_torch_proxy_mixed.py78
LOWtest/compat/test_torch_proxy_mixed.py91
LOWtest/compat/fake_torch_modules/torch/__init__.py17
LOWtest/compat/fake_torch_modules/torch/__init__.py17
LOWtest/compat/fake_torch_modules/torch/nn/__init__.py15
LOWtest/ipu/op_test_ipu.py14
LOWtest/flex_checkpoint/test_macros.py15
LOWtest/ir/pir/cinn/llama_test_model.py15
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_28.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_79.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_69.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_38.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_0.py19
LOW…st/ir/pir/cinn/sub_graphs/test_sub_graph_avg_pool2d.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_18.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_49.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_59.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_4.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_19.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_48.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_58.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_5.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_conv_nd.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_29.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_78.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_68.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_39.py18
LOW…/pir/cinn/sub_graphs/test_sub_graph_bfloat162float8.py17
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_1.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_22.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_73.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_80.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_47.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_16.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_chunk.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_add_n.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_57.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_90.py15
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_63.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_32.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_12.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_43.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_77.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_26.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_84.py18
LOW…/cinn/sub_graphs/test_sub_graph_adaptive_avg_pool2d.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_36.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_67.py18
LOWtest/ir/pir/cinn/sub_graphs/test_sub_graph_53.py18
4693 more matches not shown…
Deep Nesting2300 hits · 2084 pts
SeverityFileLineSnippet
LOWsetup.py421
LOWsetup.py995
LOWsetup.py1553
LOWtools/gen_pybind11_stub.py580
LOWtools/gen_pybind11_stub.py695
LOWtools/gen_pybind11_stub.py777
LOWtools/gen_tensor_stub.py426
LOWtools/gen_tensor_stub.py598
LOWtools/count_api_without_core_ops.py47
LOWtools/count_api_without_core_ops.py95
LOWtools/count_api_without_core_ops.py116
LOWtools/count_api_without_core_ops.py136
LOWtools/get_ut_mem_map.py20
LOWtools/get_single_test_cov.py23
LOWtools/get_single_test_cov.py68
LOWtools/get_single_test_cov.py132
LOWtools/CheckPRTemplate.py58
LOWtools/CheckPRTemplate.py144
LOWtools/CheckPRTemplate.py256
LOWtools/check_op_kernel_same_dtypes.py84
LOWtools/timeline.py142
LOWtools/timeline.py215
LOWtools/gen_ut_cmakelists.py250
LOWtools/gen_ut_cmakelists.py289
LOWtools/type_checking.py104
LOWtools/get_pr_ut.py216
LOWtools/get_pr_ut.py299
LOWtools/reduce_lib_size_util.py23
LOWtools/reduce_lib_size_util.py51
LOWtools/analysisPyXml.py23
LOWtools/check_op_desc.py65
LOWtools/check_op_desc.py139
LOWtools/check_op_desc.py210
LOWtools/check_op_desc.py230
LOWtools/prune_for_jetson.py36
LOWtools/prune_for_jetson.py110
LOWtools/check_code_block_format.py153
LOWtools/gpu_kernel_compare.py85
LOWtools/print_signatures.py84
LOWtools/print_signatures.py208
LOWtools/check_op_benchmark_result.py35
LOWtools/get_ut_file_map.py20
LOWtools/get_ut_file_map.py57
LOWtools/final_ut_parallel_rule.py20
LOWtools/group_case_for_parallel.py19
LOWtools/sampcd_processor_utils.py358
LOWtools/sampcd_processor_utils.py419
LOWtools/sampcd_processor_utils.py673
LOWtools/analysis_build_time.py35
LOWtools/CrossStackProfiler/DCGMFileReader.py105
LOWtools/CrossStackProfiler/NetFileReader.py28
LOWtools/CrossStackProfiler/ProfileFileReader.py56
LOWtools/CrossStackProfiler/ProfileFileReader.py71
LOWtools/CrossStackProfiler/ProfileFileReader.py199
LOWtools/CrossStackProfiler/ProfileFileReader.py316
LOWtools/CrossStackProfiler/CspReporter.py143
LOWtools/codestyle/clang-tidy.py95
LOWtest/compat/test_torch_proxy_mixed.py43
LOWtest/compat/test_get_device_module.py53
LOWtest/compat/test_paddle_cuda_apis.py22
2240 more matches not shown…
Cross-File Repetition279 hits · 1395 pts
SeverityFileLineSnippet
HIGHtools/test_check_api_compatible.py0paddle.four_plus_four (paddle.four_plus_four, ('document', 'ff0f188c95030158cc6398d2a6c5four'))
HIGHtest/tools/test_sampcd_processor.py0paddle.four_plus_four (paddle.four_plus_four, ('document', 'ff0f188c95030158cc6398d2a6c5four'))
HIGHtest/tools/test_sampcd_processor.py0paddle.four_plus_four (paddle.four_plus_four, ('document', 'ff0f188c95030158cc6398d2a6c5four'))
HIGHtest/tools/test_type_checking.py0placeholder examples: .. code-block:: pycon :name: code-example-1 this is some blabla... >>> print(7.0, 5., 6.123456) 7.
HIGHtest/tools/test_type_checking.py0placeholder examples: .. code-block:: pycon :name: code-example-1 this is some blabla... >>> print(7.0, 5., 6.123456) 7.
HIGHtest/tools/test_sampcd_processor.py0placeholder examples: .. code-block:: pycon :name: code-example-1 this is some blabla... >>> print(7.0, 5., 6.123456) 7.
HIGHtest/tools/test_sampcd_processor.py0placeholder examples: .. code-block:: pycon :name: code-example-1 this is some blabla... >>> print(7.0, 5., 6.123456) 7.
HIGHtest/tools/test_sampcd_processor.py0paddle.one_plus_one (argspec(args=[], varargs=none, keywords=none, defaults=(,)), ('document', 'ff0f188c95030158cc6398d2
HIGHtest/tools/test_sampcd_processor.py0paddle.one_plus_one (argspec(args=[], varargs=none, keywords=none, defaults=(,)), ('document', 'ff0f188c95030158cc6398d2
HIGHtest/tools/test_sampcd_processor.py0paddle.one_plus_one (argspec(args=[], varargs=none, keywords=none, defaults=(,)), ('document', 'ff0f188c95030158cc6398d2
HIGHtest/ir/pir/cinn/llama_test_model.py0expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
HIGH…rallel/hybrid_strategy/to_distributed_api_for_llama.py0expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
HIGH…llel/hybrid_strategy/semi_auto_parallel_llama_model.py0expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
HIGHtest/ir/inference/auto_scan_test.py0prepare tensorrt subgraph engine dynamic shape parameters.
HIGHtest/ir/inference/quant_dequant_test.py0prepare tensorrt subgraph engine dynamic shape parameters.
HIGHtest/ir/inference/inference_pass_test.py0prepare tensorrt subgraph engine dynamic shape parameters.
HIGHtest/ir/inference/quant_dequant_test.py0check whether calculating on cpu and gpu, enable tensorrt or disable tensorrt, enable onednn or disable onednn are all t
HIGHtest/ir/inference/inference_pass_test.py0check whether calculating on cpu and gpu, enable tensorrt or disable tensorrt, enable onednn or disable onednn are all t
HIGHtest/ir/inference/inference_pass_test.py0check whether calculating on cpu and gpu, enable tensorrt or disable tensorrt, enable onednn or disable onednn are all t
HIGH…/inference/test_trt_emb_eltwise_layernorm_fuse_pass.py0in_var1 emb_var in_var2 emb_var in_var3 emb_var in_var emb_var | | | | | | | | lookup_table lookup_table lookup_table ..
HIGH…/inference/test_trt_emb_eltwise_layernorm_fuse_pass.py0in_var1 emb_var in_var2 emb_var in_var3 emb_var in_var emb_var | | | | | | | | lookup_table lookup_table lookup_table ..
HIGH…t/ir/inference/test_emb_eltwise_layernorm_fuse_pass.py0in_var1 emb_var in_var2 emb_var in_var3 emb_var in_var emb_var | | | | | | | | lookup_table lookup_table lookup_table ..
HIGH…t/ir/inference/test_emb_eltwise_layernorm_fuse_pass.py0in_var1 emb_var in_var2 emb_var in_var3 emb_var in_var emb_var | | | | | | | | lookup_table lookup_table lookup_table ..
HIGHtest/collective/fleet/parallel_dygraph_transformer.py0generate the initial values for the sinusoid position encoding table.
HIGHtest/legacy_test/transformer_model.py0generate the initial values for the sinusoid position encoding table.
HIGH…cy_test/test_imperative_transformer_sorted_gradient.py0generate the initial values for the sinusoid position encoding table.
HIGHtest/dygraph_to_static/transformer_dygraph_model.py0generate the initial values for the sinusoid position encoding table.
HIGHtest/collective/fleet/parallel_dygraph_transformer.py0the wrapper assembles together all needed layers for the encoder.
HIGHtest/collective/fleet/parallel_dygraph_transformer.py0the wrapper assembles together all needed layers for the encoder.
HIGH…cy_test/test_imperative_transformer_sorted_gradient.py0the wrapper assembles together all needed layers for the encoder.
HIGH…cy_test/test_imperative_transformer_sorted_gradient.py0the wrapper assembles together all needed layers for the encoder.
HIGHtest/xpu/test_generate_proposals_v2_op_xpu.py0apply intersection-over-union overlap between box_a and box_b
HIGHtest/legacy_test/test_generate_proposals_v2_op.py0apply intersection-over-union overlap between box_a and box_b
HIGHtest/legacy_test/test_multiclass_nms_op.py0apply intersection-over-union overlap between box_a and box_b
HIGHtest/legacy_test/test_nms_op.py0apply intersection-over-union overlap between box_a and box_b
HIGHtest/xpu/test_softmax_op_xpu.py0compute the softmax of vector x in a numerically stable way.
HIGH…/xpu/test_collective_softmax_with_cross_entropy_xpu.py0compute the softmax of vector x in a numerically stable way.
HIGHtest/legacy_test/test_fused_multihead_matmul_op.py0compute the softmax of vector x in a numerically stable way.
HIGHtest/legacy_test/test_softmax_op.py0compute the softmax of vector x in a numerically stable way.
HIGH…cy_test/c_softmax_with_multi_label_cross_entropy_op.py0compute the softmax of vector x in a numerically stable way.
HIGHtest/legacy_test/c_softmax_with_cross_entropy_op.py0compute the softmax of vector x in a numerically stable way.
HIGHtest/onednn/test_softmax_bf16_onednn_op.py0compute the softmax of vector x in a numerically stable way.
HIGH…t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py0test sigmoid_cross_entropy_with_logit_op with binary label
HIGH…t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py0test sigmoid_cross_entropy_with_logit_op with binary label
HIGH…t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py0test sigmoid_cross_entropy_with_logit_op with binary label
HIGH…gacy_test/test_sigmoid_cross_entropy_with_logits_op.py0test sigmoid_cross_entropy_with_logit_op with binary label
HIGH…gacy_test/test_sigmoid_cross_entropy_with_logits_op.py0test sigmoid_cross_entropy_with_logit_op with binary label
HIGH…t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py0test sigmoid_cross_entropy_with_logit_op with probabilistic label
HIGH…t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py0test sigmoid_cross_entropy_with_logit_op with probabilistic label
HIGH…t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py0test sigmoid_cross_entropy_with_logit_op with probabilistic label
HIGH…t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py0test sigmoid_cross_entropy_with_logit_op with probabilistic label
HIGH…t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py0test sigmoid_cross_entropy_with_logit_op with probabilistic label
HIGH…gacy_test/test_sigmoid_cross_entropy_with_logits_op.py0test sigmoid_cross_entropy_with_logit_op with probabilistic label
HIGH…gacy_test/test_sigmoid_cross_entropy_with_logits_op.py0test sigmoid_cross_entropy_with_logit_op with probabilistic label
HIGH…gacy_test/test_sigmoid_cross_entropy_with_logits_op.py0test sigmoid_cross_entropy_with_logit_op with probabilistic label
HIGH…gacy_test/test_sigmoid_cross_entropy_with_logits_op.py0test sigmoid_cross_entropy_with_logit_op with probabilistic label
HIGHtest/xpu/test_truncated_gaussian_random_op_xpu.py0reference: https://en.wikipedia.org/wiki/truncated_normal_distribution
HIGHtest/xpu/test_truncated_gaussian_random_op_xpu.py0reference: https://en.wikipedia.org/wiki/truncated_normal_distribution
HIGHtest/legacy_test/test_truncated_gaussian_random_op.py0reference: https://en.wikipedia.org/wiki/truncated_normal_distribution
HIGHtest/legacy_test/test_truncated_gaussian_random_op.py0reference: https://en.wikipedia.org/wiki/truncated_normal_distribution
219 more matches not shown…
Cross-Language Confusion138 hits · 636 pts
SeverityFileLineSnippet
HIGHtools/pyCov_multithreading.py53 os.system(f'cd {path} && pwd && coverage xml -i -o python-coverage.xml')
HIGHtools/get_pr_ut.py271 f"cd {PADDLE_ROOT}build && ctest -N",
HIGHtools/prune_for_jetson.py105 " && git apply tools/infer_prune_patches/*.patch && cd -"
HIGHtools/get_ut_file_map.py37 rf'cd {rootPath}/build && ctest -N -V | grep -Ei "Test[ \t]+#" | grep -oEi "\w+$" > {all_uts_paddle}'
HIGHtools/group_case_for_parallel.py35 f'cd {rootPath}/tools && wget --no-proxy https://paddle-windows.bj.bcebos.com/pre_test_bak_20230908/{fil
HIGHtools/group_case_for_parallel.py39 f'cd {rootPath}/tools && wget --no-proxy https://paddle-docker-tar.bj.bcebos.com/pre_test_bak_20230908/{
HIGHtools/continuous_integration/bisect.py99 f'git checkout {args.bisect_branch} && git clean -fd && git checkout .'
HIGH…t/custom_runtime/test_collective_process_group_xccl.py49 os.system("rm -rf log && mkdir -p log")
HIGH…t/custom_runtime/test_collective_process_group_xccl.py159 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format(
HIGHtest/custom_runtime/test_custom_op_setup.py119 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8 \
HIGHtest/custom_runtime/test_custom_cpu_to_static.py110 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format(
HIGHtest/custom_runtime/test_custom_cpu_profiler_plugin.py32 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format(
HIGHtest/custom_runtime/test_custom_cpu_plugin.py34 && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format(
HIGHtest/distribution/test_distribution_bernoulli.py118 KL[a || b] = Pa * Log[Pa / Pb] + (1 - Pa) * Log[(1 - Pa) / (1 - Pb)]
HIGHtest/legacy_test/test_elementwise_heaviside_op.py481 Fix: add early-return guards in ElemwiseGradBroadcast1CUDA (h==0 || w==0)
HIGHtest/legacy_test/test_elementwise_heaviside_op.py482 and ElemwiseGradBroadcast2CUDA (pre==0 || n==0 || post==0).
HIGH…ization/quant2_int8_image_classification_comparison.py335 f'Accepted top1 accuracy drop threshold: {threshold}. (condition: (Quant_top1_acc - IN8_top1_acc) <= thresho
HIGHtest/custom_op/test_check_abi.py59 # Mac: clang has no version limitation, always return true
HIGHtest/sot/test_stack.py44 stack.push(1)
HIGHtest/sot/test_stack.py45 stack.push(2)
HIGHpython/paddle/_paddle_docs.py854 &\text{undefined} & x=0, y = 0
HIGHpython/paddle/_paddle_docs.py3246 out = x || y
HIGHpython/paddle/_paddle_docs.py3341 out = (x || y) \&\& !(x \&\& y)
HIGHpython/paddle/nn/initializer/kaiming.py183 # var.place._type() means undefined, happens when initializer is specified in ParamAttr
HIGHpython/paddle/nn/layer/common.py302 if align_corners = True && out_size > 1 :
HIGHpython/paddle/nn/functional/common.py328 if align_corners = True && out_size > 1 :
HIGHpython/paddle/nn/functional/common.py1035 if align_corners = True && out_size > 1 :
HIGHpython/paddle/io/dataloader/dataloader_iter.py285 self._blocking_queue.push(array)
HIGHpython/paddle/io/dataloader/dataloader_iter.py658 if not self._blocking_queue.push(array):
HIGHpython/paddle/distribution/laplace.py384 r"""Calculate the KL divergence KL(self || other) with two Laplace instances.
HIGHpython/paddle/distribution/geometric.py323 r"""Calculate the KL divergence KL(self || other) with two Geometric instances.
HIGHpython/paddle/distribution/bernoulli.py456 KL(a || b) = p_a \log(p_a / p_b) + (1 - p_a) \log((1 - p_a) / (1 - p_b))
HIGHpython/paddle/vision/ops.py1986 Their relation should be ``0 <= x1 < x2 && 0 <= y1 < y2``.
HIGHpython/paddle/jit/dy2static/transformers/utils.py425 a.push(0) don't modify the variable a, but the content
HIGHpython/paddle/jit/dy2static/transformers/utils.py440 b.push(1)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py765 self.stack.push(
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py768 self.stack.push(old_exception)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py769 self.stack.push(
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py778 self.stack.push(
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py783 self.stack.push(ConstantVariable.wrap_literal(None, self._graph))
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py784 self.stack.push(exception_var)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py785 self.stack.push(
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py823 self.stack.push(self.stack.peek[instr.arg])
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py826 self.stack.push(self.stack.top)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py830 self.stack.push(ref)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py988 self.stack.push(
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py996 self.stack.push(var)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1001 self.stack.push(const_var)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1012 self.stack.push(self.vframe.cells[name])
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1016 self.stack.push(self.vframe.locals[instr.argval].cell_content())
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1020 self.stack.push(self.vframe.cells[name].cell_content())
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1029 self.stack.push(var)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1037 self.stack.push(int_var)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1055 self.stack.push(NullVariable())
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1063 self.stack.push(value)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1065 self.stack.push(NullVariable())
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1084 self.stack.push(method.fn)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1085 self.stack.push(obj)
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1089 self.stack.push(NullVariable())
HIGH…/jit/sot/opcode_translator/executor/opcode_executor.py1090 self.stack.push(method)
78 more matches not shown…
Decorative Section Separators187 hits · 602 pts
SeverityFileLineSnippet
MEDIUM.cmake-format.py15# -----------------------------
MEDIUM.cmake-format.py17# -----------------------------
MEDIUM.cmake-format.py22# ------------------------------------------------
MEDIUM.cmake-format.py24# ------------------------------------------------
MEDIUM.cmake-format.py34# ----------------------------------
MEDIUM.cmake-format.py36# ----------------------------------
MEDIUMtools/enforce/count_all_enforce.sh35# ----------------------------
MEDIUMtools/enforce/count_all_enforce.sh37# ----------------------------
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py28# ==============================================================================
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py31# ==============================================================================
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py132# ==============================================================================
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py134# ==============================================================================
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py240# ==============================================================================
MEDIUMtest/flex_checkpoint/strategy_conversion_engine.py242# ==============================================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py81 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py104 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py127 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py235 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py258 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py281 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py375 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py425 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py529 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine_transpose_cast.py622 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine.py26 # ------------------------------------------------------
MEDIUMtest/flex_checkpoint/test_aoa_engine.py49 # ------------------------------------------------------
MEDIUMtest/flex_checkpoint/test_aoa_engine.py70 # ------------------------------------------------------
MEDIUMtest/flex_checkpoint/test_aoa_engine.py81 # ------------------------------------------------------
MEDIUMtest/flex_checkpoint/test_aoa_engine.py90 # ------------------------------------------------------
MEDIUMtest/flex_checkpoint/test_aoa_engine.py101 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine.py133 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine.py165 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine.py257 # ------------------------------------------------------
MEDIUMtest/flex_checkpoint/test_aoa_engine.py259 # ======================================================
MEDIUMtest/flex_checkpoint/test_aoa_engine.py310 # ======================================================
MEDIUMtest/ir/inference/test_use_optimized_model_api.py36# -------------------------------------------------------------
MEDIUM…ollective/fleet/hybrid_parallel_sharding_muon_model.py72# ------------------------------------------------------------------
MEDIUM…ollective/fleet/hybrid_parallel_sharding_muon_model.py74# ------------------------------------------------------------------
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py529 # ---------------------------------------------------------------
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py531 # ---------------------------------------------------------------
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py561 # ---------------------------------------------------------------
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py563 # ---------------------------------------------------------------
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py589 # ---------------------------------------------------------------
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py591 # ---------------------------------------------------------------
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py597 # ---------------------------------------------------------------
MEDIUMtest/legacy_test/test_elementwise_heaviside_op.py599 # ---------------------------------------------------------------
MEDIUMtest/legacy_test/test_slow_conv_op.py115 # =================================================================
MEDIUMtest/legacy_test/test_slow_conv_op.py117 # =================================================================
MEDIUMtest/legacy_test/test_slow_conv_op.py216 # =================================================================
MEDIUMtest/legacy_test/test_slow_conv_op.py218 # =================================================================
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py111 # ── dtype coverage ──────────────────────────────────────────────────
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py168 # ── shape coverage ──────────────────────────────────────────────────
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py190 # ── stream ordering ─────────────────────────────────────────────────
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py435# ---------------------------------------------------------------------------
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py437# ---------------------------------------------------------------------------
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py731# ---------------------------------------------------------------------------
MEDIUMtest/legacy_test/test_print_tensor_in_gpu.py734# ---------------------------------------------------------------------------
MEDIUMtest/legacy_test/test_pylayer_clear_dataptr.py236 # ------------------------------------------------------------------
MEDIUMtest/legacy_test/test_pylayer_clear_dataptr.py238 # ------------------------------------------------------------------
MEDIUMtest/legacy_test/test_pylayer_clear_dataptr.py277 # ------------------------------------------------------------------
127 more matches not shown…
Excessive Try-Catch Wrapping417 hits · 484 pts
SeverityFileLineSnippet
LOWsetup.py547 except Exception as e:
MEDIUMsetup.py548 print(f"Error while getting TensorRT version: {e}")
LOWsetup.py1383 except Exception as e:
LOWsetup.py2953 except Exception as e:
LOWsetup.py3069 except Exception:
MEDIUMsetup.py296def git_commit() -> str:
LOWtools/CheckPRTemplate.py242 except Exception as e:
MEDIUMtools/CheckPRTemplate.py50def check_link_accessible(url):
MEDIUMtools/op_benchmark_count.py117print(f"Error Lines Percentage: {error_percentage:.2f}%")
LOWtools/gen_ut_cmakelists.py489 except Exception as e:
LOWtools/gen_ut_cmakelists.py560 except Exception as e:
LOWtools/get_quick_disable_lt.py116 except Exception as e:
LOWtools/get_pr_ut.py69 except Exception as e:
LOWtools/get_pr_ut.py117 except Exception as e:
LOWtools/print_signatures.py180 except Exception as e:
MEDIUMtools/print_signatures.py64def md5(doc):
LOWtools/CrossStackProfiler/NetFileReader.py63 except Exception:
LOWtools/CrossStackProfiler/CspFileReader.py301 except Exception:
LOWtools/CrossStackProfiler/CspFileReader.py366 except Exception as e:
MEDIUMtools/CrossStackProfiler/CspFileReader.py363def test_FileReader(args):
MEDIUMtools/codestyle/clang-tidy.py452 print('Error exporting fixes.\n', file=sys.stderr)
MEDIUMtools/codestyle/clang-tidy.py461 print('Error applying fixes.\n', file=sys.stderr)
LOWtest/compat/test_event_stream_apis.py63 except Exception:
LOWtest/compat/test_event_stream_apis.py262 except Exception:
LOWtest/compat/test_event_stream_apis.py299 except Exception:
LOWtest/compat/test_paddle_cuda_apis.py42 except Exception:
LOWtest/compat/test_paddle_cuda_apis.py115 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py163 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py243 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py291 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py318 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py187 except Exception:
LOWtest/compat/test_paddle_cuda_apis.py332 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py350 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py369 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py390 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py408 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py430 except Exception as e:
LOWtest/compat/test_paddle_cuda_apis.py451 except Exception as e:
LOWtest/ir/inference/auto_scan_test.py359 except Exception as e:
LOWtest/ir/inference/auto_scan_test.py604 except Exception as e:
LOWtest/ir/inference/auto_scan_test.py1116 except Exception as e:
LOWtest/ir/inference/auto_scan_test.py1215 except Exception as e:
LOWtest/collective/test_gen_nccl_id_op.py77 except Exception as e:
MEDIUMtest/collective/test_gen_nccl_id_op.py74def setUp(self):
LOW…ollective/multinode/mn_dygraph_group_sharded_stage3.py318 except Exception as e:
LOWtest/collective/fleet/test_auto_checkpoint.py268 except Exception as e:
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py521 except Exception as e:
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py536 except Exception as e:
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py551 except Exception as e:
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py566 except Exception as e:
LOW…ollective/fleet/hybrid_parallel_sharding_muon_model.py582 except Exception as e:
LOW…llective/fleet/dygraph_group_sharded_stage2_offload.py125 except Exception as e:
LOWtest/ai_edited_test/test_ai_layer_gen.py192 except Exception:
LOWtest/ai_edited_test/test_ai_layer_gen.py263 except Exception:
LOWtest/ai_edited_test/test_ai_layer_gen.py288 except Exception:
LOWtest/ai_edited_test/test_ai_layer_gen.py301 except Exception:
LOWtest/ai_edited_test/test_ai_layer_gen.py314 except Exception:
LOWtest/ai_edited_test/test_ai_layer_gen.py325 except Exception:
LOWtest/ai_edited_test/test_ai_layer_gen.py334 except Exception:
357 more matches not shown…
Hallucination Indicators39 hits · 432 pts
SeverityFileLineSnippet
CRITICAL…lective/fleet/test_fleet_tensor_parallel_extra_sync.py144 paddle.distributed.fleet.utils.tensor_parallel_utils.add_extra_synchronization(
CRITICALtest/collective/fleet/test_zero_bubble_utils.py129 paddle.base.framework.core.eager.Tensor(
CRITICALtest/collective/fleet/test_hdfs1.py57\tat org.apache.hadoop.util.FileSystemUtil.throwException(FileSystemUtil.java:164)
CRITICALtest/collective/fleet/test_hdfs1.py58\tat org.apache.hadoop.util.FileSystemUtil.dealWithResponse(FileSystemUtil.java:118)
CRITICALtest/collective/fleet/test_hdfs1.py59\tat org.apache.hadoop.lite.client.LiteClientImpl.getFileStatus(LiteClientImpl.java:696)
CRITICALtest/collective/fleet/test_hdfs1.py60\tat org.apache.hadoop.fs.LibDFileSystemImpl.getFileStatus(LibDFileSystemImpl.java:297)
CRITICALtest/collective/fleet/test_hdfs1.py61\tat org.apache.hadoop.fs.LiteFileSystem.getFileStatus(LiteFileSystem.java:514)
CRITICALtest/collective/fleet/test_hdfs1.py62\tat org.apache.hadoop.fs.FsShell.test(FsShell.java:1092)
CRITICALtest/collective/fleet/test_hdfs1.py63\tat org.apache.hadoop.fs.FsShell.run(FsShell.java:2285)
CRITICALtest/collective/fleet/test_hdfs1.py64\tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
CRITICALtest/collective/fleet/test_hdfs1.py65\tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
CRITICALtest/collective/fleet/test_hdfs1.py66\tat org.apache.hadoop.fs.FsShell.main(FsShell.java:2353)
CRITICALtest/legacy_test/test_fleet_runtime.py24 base = paddle.distributed.fleet.runtime.runtime_base.RuntimeBase()
CRITICALtest/legacy_test/test_dist_base.py103 role = paddle.distributed.fleet.base.role_maker.PaddleCloudRoleMaker(
CRITICALpython/paddle/nn/layer/conv.py887 return paddle.distributed.auto_parallel.ring_conv.RingConv2d.apply(
CRITICALpython/paddle/nn/functional/sdpa.py551 out = paddle.distributed.auto_parallel.ring_attention.RingFlashAttention.apply(
CRITICALpython/paddle/distributed/auto_parallel/moe_utils.py118 dims_mapping = paddle.distributed.auto_parallel.static.utils.convert_to_dims_mapping(
CRITICALpython/paddle/distributed/ps/the_one_ps.py986 table_proto = self.ps_desc.worker_param.downpour_worker_param.downpour_table_param.add()
CRITICALpython/paddle/distributed/ps/the_one_ps.py988 table_proto = self.ps_desc.server_param.downpour_server_param.downpour_table_param.add()
CRITICALpython/paddle/distributed/ps/the_one_ps.py1001 table_proto = self.ps_desc.server_param.downpour_server_param.downpour_table_param.add()
CRITICAL…e/distributed/fleet/meta_parallel/zero_bubble_utils.py85 weight.main_grad = paddle.base.framework.core.eager.Tensor(
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_load.py61 model_state_dict = paddle.incubate.distributed.utils.io.load(path="path/to/load.pdparams")
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_load.py65 optimizer_state_dict = paddle.incubate.distributed.utils.io.load(path="path/to/load.pdopt")
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_save.py113 >>> paddle.incubate.distributed.utils.io.save(
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_save.py118 >>> paddle.incubate.distributed.utils.io.save(
CRITICAL…thon/paddle/incubate/distributed/utils/io/dist_save.py123 >>> paddle.incubate.distributed.utils.io.save(optimizer.state_dict(), path="path/to/save.pdopt", gather=0, s
CRITICAL…le/incubate/distributed/models/moe/gate/gshard_gate.py81 topk_idx = paddle.distributed.models.moe.utils._random_routing(
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py279 table.accessor.sparse_commonsgd_param.naive.weight_bounds.extend(
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py283 table.accessor.sparse_commonsgd_param.naive.weight_bounds.extend(
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py297 table.accessor.sparse_commonsgd_param.adagrad.weight_bounds.extend(
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py301 table.accessor.sparse_commonsgd_param.adagrad.weight_bounds.extend(
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py321 table.accessor.sparse_commonsgd_param.adam.weight_bounds.extend(
CRITICAL…ubate/distributed/fleet/parameter_server/pslib/node.py325 table.accessor.sparse_commonsgd_param.adam.weight_bounds.extend(
CRITICALpython/paddle/jit/dy2static/program_translator.py1790 >>> paddle.jit.dy2static.program_translator.ProgramTranslator.get_instance()
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py383 paddle.distributed.auto_parallel.static.mix_to_dist_pass.apply_mix2dist_pass(
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py389 paddle.distributed.auto_parallel.static.mix_to_dist_pass.apply_mix2dist_pass(
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py392 paddle.distributed.auto_parallel.static.pir_pass.apply_partition_pass(
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py395 paddle.distributed.auto_parallel.static.pir_pass.ReshardPasses.apply_reshard_pass(
CRITICALpython/paddle/jit/dy2static/pir_partial_program.py399 paddle.distributed.auto_parallel.static.pir_pass.remove_unuseful_comm_op_pass(
Self-Referential Comments93 hits · 254 pts
SeverityFileLineSnippet
MEDIUMtools/gen_tensor_stub.py263 '# This file is auto generated by `tools/gen_tensor_stub.py`.\n\n'
MEDIUMtools/gen_ut_cmakelists.py550 cmds = """# This file is generated by ${PADDLE_ROOT}/tools/gen_ut_cmakelists.py.
MEDIUMtest/compat/test_event_stream_apis.py168 # Create a tensor to ensure some work is done
MEDIUMtest/compat/test_event_stream_apis.py320 # Create a stream for work execution
MEDIUMtest/ir/inference/test_trt_explicit_quantization.py82 # Define the inference program
MEDIUMtest/ir/inference/test_trt_explicit_quantization.py147 # Define the inference program
MEDIUMtest/collective/fleet/hybrid_parallel_pp_layers.py332 # Create a generator that yields (input, label) pairs
MEDIUMtest/ai_edited_test/test_ai_embedding_onehot.py120 # Create a weight matrix where some rows have norm > max_norm
MEDIUMtest/ai_edited_test/test_ai_nn_utils.py106 # Create a new vector of the right size
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py52 # Create a fixed compute tensor for matmul.
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py91 # Create a fixed tensor with known values using linspace.
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py110 # Create a fixed source tensor with all elements equal to 3.14.
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py114 # Create a destination tensor on CPU (pinned memory) initialized to zeros.
MEDIUMtest/xpu/test_xpu_async_offload_reload_performance.py148 # Create a large tensor (~100MB) on XPU.
MEDIUMtest/xpu/test_xpu_async_offload_reload_loadtest.py50 # Create a large tensor on XPU.
MEDIUMtest/xpu/test_xpu_async_offload_reload.py50 # Create a fixed compute tensor for matmul
MEDIUMtest/xpu/test_xpu_async_offload_reload.py89 # Create a fixed tensor with known values using linspace.
MEDIUMtest/xpu/test_xpu_async_offload_reload.py108 # Create a fixed source tensor with all elements equal to 3.14.
MEDIUMtest/xpu/test_xpu_async_offload_reload.py114 # Create a destination tensor on CPU (pinned memory) initialized to zeros.
MEDIUMtest/xpu/test_xpu_pinned_memory.py37 # Create a sample numpy array.
MEDIUMtest/xpu/test_xpu_pinned_memory.py40 # Create an XPU pinned memory place using the same interface as GPU pinned memory.
MEDIUMtest/xpu/test_xpu_pinned_memory.py43 # Create a tensor in XPU pinned memory.
MEDIUMtest/xpu/test_xpu_pinned_memory.py60 # Create a sample numpy array.
MEDIUMtest/xpu/test_xpu_pinned_memory.py63 # Create a tensor on an XPU device.
MEDIUMtest/xpu/test_xpu_share_memory.py94 # Create a Queue to send the IPC metadata.
MEDIUMtest/legacy_test/test_tensor_requires_grad.py82 # Create a parameter - Parameters have stop_gradient=False by default (trainable)
MEDIUMtest/legacy_test/test_tensor_requires_grad.py282 # Create a parameter - Parameters have stop_gradient=False by default (trainable)
MEDIUMtest/legacy_test/test_sdpa_kernel.py135 # Create a mask
MEDIUMtest/legacy_test/test_interp_recompute_scale_factor.py491 # Create a scalar tensor with empty shape []
MEDIUMtest/legacy_test/test_cuda_graph.py210 # Create a new input buffer and replace the pointer
MEDIUMtest/legacy_test/ernie_utils/top2_gate.py666 # Create a mask for 1st's expert per token
MEDIUMtest/legacy_test/ernie_utils/top2_gate.py680 # Create a mask for 2nd's expert per token using Gumbel-max trick
MEDIUMtest/auto_parallel/test_dist_tensor.py69 # Create a dist_attr
MEDIUMtest/prim/pir_prim/test_auto_recompute.py165 # The following code is related to coverage, although backward_ops,define_op,all_used_ops is not used, it ne
MEDIUMtest/tensorrt/test_converter_model_bert.py46 # Create a TensorRTConfig with inputs as a required field.
MEDIUMtest/tensorrt/test_converter_model_dummy.py45 # Create a TensorRTConfig with inputs as a required field.
MEDIUMtest/tensorrt/test_converter_model_dummy.py86 # Create a TensorRTConfig with inputs as a required field.
MEDIUMtest/tensorrt/test_converter_model_resnet50_move.py67 # Create a TensorRTConfig with inputs as a required field.
MEDIUMtest/tensorrt/test_converter_model_resnet50.py72 # Create a TensorRTConfig with inputs as a required field.
MEDIUMtest/tensorrt/test_converter_model_resnet50.py119 # Create a TensorRTConfig with inputs as a required field.
MEDIUMtest/tensorrt/test_converter_model_resnet50.py175 # Create a TensorRTConfig with inputs as a required field.
MEDIUMtest/tensorrt/test_converter_model_resnet50.py269 # Create a TensorRTConfig with inputs as a required field.
MEDIUMtest/tensorrt/test_export.py151 # Create a TensorRTConfig with inputs as a required field.
MEDIUMtest/tensorrt/test_export.py162 # Create a config for inference.
MEDIUMtest/sot/test_24_exceptions.py42 # This function is designed to test scenarios involving only the `raise` statement.
MEDIUMpython/paddle/reader/decorator.py392 >>> # Create a buffered reader, and the buffer size is 2.
MEDIUMpython/paddle/compat/proxy.py367 # Create a new module object that will act as the "torch..." module.
MEDIUMpython/paddle/compat/nn/__init__.py520 >>> # Define the linear layer.
MEDIUMpython/paddle/nn/layer/common.py169 >>> # Define the linear layer.
MEDIUMpython/paddle/optimizer/adagrad.py239 # Create the adagrad optimizer op
MEDIUMpython/paddle/optimizer/adadelta.py234 # Create the adadelta optimizer op
MEDIUMpython/paddle/framework/io_utils.py36# This file contains various utility functions that are used in static.io(io related api that used in static graph)
MEDIUM…paddle/distributed/transpiler/distribute_transpiler.py1350 # Create a union-find data structure from optimize ops,
MEDIUM…paddle/distributed/transpiler/distribute_transpiler.py2784 # Create a unit find data struct by optimize ops
MEDIUM…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py102 # Create a new ReadItem with combined dst_ranks
MEDIUMpython/paddle/distributed/auto_parallel/api.py820 >>> # Create a distributed attribute
MEDIUMpython/paddle/distributed/fleet/layers/mpu/random.py30# This file is inspired by Megatron to control random states for MP:
MEDIUM…buted/fleet/meta_parallel/parallel_layers/pp_layers.py283 # This method is used to unify codes in _build_layer_impl.
MEDIUMpython/paddle/cuda/__init__.py544 >>> # Create a tensor to allocate memory
MEDIUMpython/paddle/distribution/normal.py100 >>> # Define a single scalar Normal distribution.
33 more matches not shown…
Dead Code94 hits · 165 pts
SeverityFileLineSnippet
MEDIUMtest/standalone_executor/test_standalone_executor.py82
MEDIUMtest/standalone_executor/test_standalone_executor.py84
MEDIUMtest/standalone_executor/test_standalone_executor.py86
MEDIUMtest/standalone_executor/test_standalone_executor.py88
MEDIUMtest/standalone_executor/test_standalone_executor.py89
MEDIUMtest/standalone_executor/test_standalone_executor.py100
MEDIUMtest/standalone_executor/test_standalone_executor.py101
MEDIUMtest/standalone_executor/test_standalone_executor.py105
MEDIUMtest/standalone_executor/test_standalone_executor.py106
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py112
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py113
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py114
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py135
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py136
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py157
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py158
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py159
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py180
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py181
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py222
MEDIUMtest/ir/pir/cinn/test_cinn_group_norm.py223
MEDIUMtest/ir/pir/cinn/test_cinn_sub_graph.py129
MEDIUMtest/ir/pir/cinn/test_cinn_sub_graph.py132
MEDIUM…t/ir/pir/cinn/symbolic/test_sub_graph_chatglm2_5_st.py114
MEDIUMtest/custom_runtime/process_group_xccl.py130
MEDIUMtest/custom_runtime/process_group_xccl.py131
MEDIUMtest/custom_runtime/process_group_xccl.py132
MEDIUMtest/custom_runtime/process_group_xccl.py133
MEDIUMtest/custom_runtime/process_group_xccl.py134
MEDIUMtest/custom_runtime/process_group_xccl.py135
MEDIUMtest/custom_runtime/process_group_xccl.py136
MEDIUMtest/custom_runtime/process_group_xccl.py137
MEDIUMtest/custom_runtime/process_group_xccl.py138
MEDIUMtest/custom_runtime/process_group_xccl.py147
MEDIUMtest/custom_runtime/process_group_xccl.py148
MEDIUMtest/custom_runtime/process_group_xccl.py153
MEDIUMtest/custom_runtime/process_group_xccl.py157
MEDIUMtest/custom_runtime/process_group_xccl.py158
MEDIUMtest/custom_runtime/process_group_xccl.py159
MEDIUMtest/custom_runtime/process_group_xccl.py160
MEDIUMtest/custom_runtime/process_group_xccl.py161
MEDIUMtest/custom_runtime/process_group_xccl.py162
MEDIUMtest/custom_runtime/process_group_xccl.py163
MEDIUMtest/custom_runtime/process_group_xccl.py164
MEDIUMtest/custom_runtime/process_group_xccl.py165
MEDIUMtest/custom_runtime/process_group_xccl.py168
MEDIUMtest/custom_runtime/process_group_xccl.py169
MEDIUMtest/custom_runtime/process_group_xccl.py178
MEDIUMtest/custom_runtime/process_group_xccl.py181
MEDIUMtest/custom_runtime/process_group_xccl.py186
MEDIUMtest/custom_runtime/process_group_xccl.py190
MEDIUMtest/custom_runtime/process_group_xccl.py191
MEDIUMtest/custom_runtime/process_group_xccl.py192
MEDIUMtest/custom_runtime/process_group_xccl.py193
MEDIUMtest/custom_runtime/process_group_xccl.py194
MEDIUMtest/custom_runtime/process_group_xccl.py195
MEDIUMtest/custom_runtime/process_group_xccl.py206
MEDIUMtest/custom_runtime/process_group_xccl.py210
MEDIUMtest/custom_runtime/process_group_xccl.py211
MEDIUMtest/custom_runtime/process_group_xccl.py212
34 more matches not shown…
AI Slop Vocabulary48 hits · 90 pts
SeverityFileLineSnippet
LOWtools/dockerfile/build_scripts/build.sh92# So let's just use the same one pip and everyone uses
LOWtest/ir/inference/test_onednn_prelu_op.py44 # not valid case, just return 0
LOWtest/ir/inference/test_onednn_prelu_op.py56 # not valid case, just return 0
LOWtest/xpu/process_group_bkcl.py83 # XPU don't support event query by now, so just use sync op here
MEDIUMtest/legacy_test/test_cos.py136 """Test float32 cos with large shape for comprehensive coverage.
MEDIUMtest/legacy_test/test_cos.py149 """Test float64 cos with large shape for comprehensive coverage.
LOWtest/legacy_test/test_eager_tensor.py2154 # just return self
LOWtest/legacy_test/prim_op_test.py150 # if this is a list (test_unsqueeze2_op): we just pass it into the python api.
MEDIUMtest/legacy_test/test_einsum_v2.py235# self.sample = {"paradigm": "i->iii", "data": ["x"]}
MEDIUMtest/legacy_test/test_einsum_v2.py239# self.sample = {"paradigm": "i...->i...i", "data": ["S"]}
MEDIUMtest/legacy_test/test_pow.py501 """Test float32 pow with large shape on CPU for comprehensive coverage."""
MEDIUMtest/legacy_test/test_pow.py513 """Test float64 pow with large shape on CPU for comprehensive coverage."""
MEDIUMtest/legacy_test/test_exp.py137 """Test float32 exp with large shape for comprehensive coverage.
MEDIUMtest/legacy_test/test_exp.py149 """Test float64 exp with large shape for comprehensive coverage.
MEDIUMtest/legacy_test/test_pylayer_clear_dataptr.py361 # confirming the erase path is robust against missing entries.
MEDIUMtest/legacy_test/test_sin.py136 """Test float32 sin with large shape for comprehensive coverage.
MEDIUMtest/legacy_test/test_sin.py149 """Test float64 sin with large shape for comprehensive coverage.
LOWpython/paddle/distributed/parallel.py1116 # here just set correctly place to users
LOWpython/paddle/distributed/auto_parallel/moe_utils.py83 # assume the each rank has the same tensor shape for now, just use the local shape to calculate the global shape
LOWpython/paddle/distributed/auto_parallel/api.py349 # None calc rank, just return no init.
LOWpython/paddle/distributed/auto_parallel/api.py515 # just use the local shape to calculate the global shape
MEDIUM…n/paddle/distributed/auto_parallel/pipelining/stage.py953 # A more robust interface implementation is desired in the future.
LOW…addle/distributed/auto_parallel/static/dist_context.py916 # here we just set there process_mesh to the first one.
LOW…thon/paddle/distributed/auto_parallel/static/engine.py1171 # so, just return here and need to reimplement the logics below
LOW…e/distributed/auto_parallel/static/operators/common.py311 # For now, just return the first compatible impl
MEDIUM…e/distributed/auto_parallel/static/operators/common.py479 # TODO utilize the batch_dim attr instead of "0" in future
LOW…e/distributed/fleet/meta_parallel/pipeline_parallel.py3367 # else just return logits without loss func calc
LOW…e/distributed/fleet/meta_parallel/pipeline_parallel.py3717 # else just return logits without loss func calc
LOW…e/distributed/fleet/meta_parallel/pipeline_parallel.py4174 # else just return logits without loss func calc
MEDIUM…buted/fleet/meta_parallel/parallel_layers/pp_layers.py723 # Set color for shared parameters to facilitate synchronization of parameters
LOW…buted/fleet/meta_parallel/parallel_layers/pp_layers.py971 # For 1f1b scheduler, just use run_function list
LOWpython/paddle/io/dataloader/flat.py140 # simply return structure
LOWpython/paddle/utils/dlpack.py265 # Old versions just call the converter
LOWpython/paddle/incubate/jit/inference_decorator.py618 # if function has already been decorated by @paddle.incubate.jit.inference(), then we just return it.
LOWpython/paddle/jit/dy2static/convert_operators.py478 # IfExpr will return a non-None return value, so we just return ret.
LOWpython/paddle/jit/dy2static/partial_program.py1132 # can't just create a new program, we need copy the vardesc.
MEDIUMpython/paddle/jit/sot/utils/envs.py168 # Enable information collection flags to facilitate debugging and analysis
LOW…e/jit/sot/opcode_translator/executor/function_graph.py903 # just set it back in SIR, and return outputs to replace tensor meta (it might changes?)
LOW…t/sot/opcode_translator/executor/variables/callable.py269 # do nothing. just return None.
MEDIUMci/coverage_gcda_clean.py90 # modified to make it more robust
MEDIUMpaddle/cinn/ir/ir.h1009// TODO(liujinnan): Essentially IterExpr is not IndexExpr, so it does not
MEDIUMpaddle/cinn/hlir/framework/pir/broadcast_with_cf.h26// eliminated, and we utilize broadcast shape conditions to determine which
MEDIUMpaddle/fluid/pybind/slice_utils.h290// _PySlice_GetIndices. Try to use _PySlice_Unpack which is more robust than
MEDIUMpaddle/phi/backends/gpu/cuda/cuda_graph.h109// utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup.
MEDIUMpaddle/phi/backends/gpu/rocm/hip_graph.h111// utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup.
MEDIUMpaddle/phi/backends/onednn/onednn_reuse.h1041 // rare shapes. By extending the shape to utilize oneDNN optimized binary
MEDIUMpaddle/phi/backends/custom/cuda_graph.h113// utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup.
LOWpaddle/phi/api/generator/dist_api_gen.py2024 # InferSPMD rules, just set replicated dist_attr for them.
Verbosity Indicators49 hits · 74 pts
SeverityFileLineSnippet
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py136 # Step 1: Pad L/R (pad_left=1, pad_right=0)
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py140 # Step 2: Pad T/B (pad_top=1, pad_bottom=2) on [Row A', Row B']
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py178 # Step 1: Pad L/R (pad_left=1, pad_right=0) on W-dim
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py182 # Step 2: Pad T/B (pad_top=1, pad_bottom=2) on H-dim [Row A', Row B']
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py213 # Step 1: Pad L/R (pad_left=1, pad_right=1)
LOW…st/legacy_test/test_nn_circular_pad_1d_2d_3d_layers.py217 # Step 2: Pad T/B (pad_top=1, pad_bottom=1) on [Row A', Row B']
LOWpython/paddle/optimizer/muon.py551 # Step 1: Momentum update
LOWpython/paddle/optimizer/muon.py562 # Step 2: Reshape update buffer to 2D matrix.
LOWpython/paddle/optimizer/muon.py581 # Step 3: Newton-Schulz orthogonalisation
LOW…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py70 # Step 1: Group by tensor_name
LOW…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py77 # Step 2: For each tensor_name group, further group by all attributes except dst_rank
LOW…paddle/distributed/flex_checkpoint/dcp/reshard_comm.py93 # Step 3: Combine items with the same key into a single ReadItem with all dst_ranks
LOWpython/paddle/distributed/auto_parallel/ring_conv.py629 # Step 1: Reconstruct `in_tensor_augmented` (original input to local conv in forward)
LOWpython/paddle/distributed/auto_parallel/ring_conv.py641 # Step 2: Pad `grad_out` to match the output shape of conv on augmented input
LOWpython/paddle/distributed/auto_parallel/ring_conv.py666 # Step 3: Local backward computation using augmented/padded tensors
LOWpython/paddle/distributed/auto_parallel/ring_conv.py672 # Step 4: Aggregate "halo" regions for grad_input
LOW…/paddle/distributed/auto_parallel/static/completion.py722 # Step 1: set the process mesh of while_op to the merged process mesh of its subblock
LOW…/paddle/distributed/auto_parallel/static/completion.py735 # Step 2: set the related nodes of while_op to the process mesh of while_op
LOW…/paddle/distributed/auto_parallel/static/completion.py788 # Step 3: set the process meshes of the inputs in while_op to the process meshes of the outside input nodes
LOW…/paddle/distributed/auto_parallel/static/completion.py816 # Step 4: set the process meshes of the outputs in while_op to the process meshes of the outside output node
LOW…/paddle/distributed/auto_parallel/static/completion.py899 # Step 1: Set the annotated process meshes from tensors to the first ops using them
LOW…/paddle/distributed/auto_parallel/static/completion.py936 # Step 2: set the process meshes of ops with the nearest op before them
LOW…/paddle/distributed/auto_parallel/static/completion.py969 # Step 3: adjust the process meshes for special ops
LOW…/paddle/distributed/auto_parallel/static/completion.py972 # Step 4: adjust the process meshes between graphs
LOW…thon/paddle/distributed/auto_parallel/static/engine.py517 # Step 1: find the reader ops
LOW…thon/paddle/distributed/auto_parallel/static/engine.py522 # Step 2: insert the new reader ops to cpp
LOW…thon/paddle/distributed/auto_parallel/static/engine.py536 # Step 3: insert the new reader ops to python
LOW…thon/paddle/distributed/auto_parallel/static/engine.py541 # Step 4: remove the old reader ops from python and cpp
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py712 # Step 1: nF0
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py717 # Step 2: nF0F1
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py730 # Step 3: nB1W1F1 (Use zero bubble)
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py797 # Step 5: nB1F1B0
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py803 # Step 6: nB1B0 (The second half of the passes use zero bubble)
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py814 # Step 7: nWB0 (Use zero bubble)
LOW…on/paddle/distributed/fleet/meta_parallel/dualpipev.py820 # Step 8: nW
LOWpaddle/fluid/imperative/layout_transformer.h185 // Step 1: Adjust the data_layout attr to the desired layout
LOWpaddle/fluid/imperative/layout_transformer.h205 // Step 2: Transpose the specified input for Op and set the transposed var's
LOWpaddle/fluid/imperative/layout_transformer.h219 // Step 3: Set the Op's layout sensitive outs var.
LOWpaddle/phi/kernels/impl/slice_kernel_impl.h36 // Step 1: Get the accurate attribute value of starts and ends
LOWpaddle/phi/kernels/impl/slice_kernel_impl.h39 // Step 2: Compute output
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h107 // Step 1: Set the value of out at `_index` to zero
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h133 // Step 2: Set a tensor with the same shape as out tensor. And its data at
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h172 // Step 3: Set out tensor with value_tensor
LOWpaddle/phi/kernels/impl/lu_kernel_impl.h275 // Step 2: Compute output
LOWpaddle/phi/kernels/gpu/rms_norm_cuda_kernel.h2134 // Step 1: Convert var -> rstd
LOWpaddle/phi/kernels/gpu/rms_norm_cuda_kernel.h2152 // Step 2: Compute dX using vectorized or non-vectorized kernel
LOWpaddle/phi/kernels/gpu/rms_norm_cuda_kernel.h2193 // Step 3: Compute dgamma and dbeta
LOWpaddle/phi/kernels/funcs/layer_norm_impl.cu.h243 // Step 1: Reduce to calculate mean and var
LOWpaddle/phi/kernels/funcs/layer_norm_impl.cu.h269 // Step 2: Calculate y
Redundant / Tautological Comments54 hits · 70 pts
SeverityFileLineSnippet
LOWtools/CheckPRTemplate.py150 # Check if involves precision change
LOWtools/CheckPRTemplate.py215 # Check if all required approvers have approved
LOWtest/compat/test_device_apis.py192 # Set device to GPU
LOWtest/compat/test_device_apis.py373 # Set device to custom device
LOWtest/compat/test_device_apis.py559 # Set device to GPU
LOWtest/compat/test_device_apis.py631 # Set device to custom device
LOWtest/compat/test_paddle_cuda_apis.py49# Check if we should skip all tests
LOWtest/ipu/op_test_ipu.py76 # Check if ipumodel mode is enabled
LOWtest/ir/pir/fused_pass/test_pir_horizontal_fuse_pass.py219 # Assign results to the program
LOWtest/ai_edited_test/test_ai_moe_permute.py196 # Assign tokens to experts
LOWtest/ai_edited_test/test_ai_random_state.py59 # Set device to CPU to ensure random numbers are generated on CPU
LOWtest/legacy_test/test_tensor_fill_diagonal_.py296 # Check if diagonal elements are updated correctly
LOWtest/legacy_test/test_tensor_fill_diagonal_.py299 # Check if off-diagonal elements remain 0
LOWtest/legacy_test/test_eager_tensor.py569 False # Set stop_gradient to be False, supported auto-grad
LOWtest/legacy_test/test_sequential.py52 # Check if layer names are preserved in order
LOWtest/legacy_test/test_sequential.py57 # Check if layers can be accessed by name
LOWtest/legacy_test/test_mean_op_v1.py28 # Check if we're using XPU
LOWtest/legacy_test/test_mean_op_v1.py33 # Check if we're using OneDNN
LOWtest/legacy_test/test_fused_act_dequant_op.py201 # Check if s needs to be expanded to match x shape
LOWtest/legacy_test/test_compat_nn_linear.py442 # Check if weights are the same
LOWtest/legacy_test/test_executor_and_use_program_cache.py44 # Set parallel to False to use the default executor.
LOWtest/legacy_test/test_narrow.py60 # Check if they both changed to test_val (alias)
LOWtest/legacy_test/test_tensor_type_convert_api.py139 # Check if conversion method exists
LOWtest/legacy_test/test_tensor_type_convert_api.py220 # Check if the method exists
LOWtest/legacy_test/test_nn_functional_interpolate.py248 # Check if grad is not all zeros (it shouldn't be)
LOWtest/dygraph_to_static/check_approval.py135 # Check if the test class inherits from unittest.TestCase
LOWpython/paddle/nn/functional/pooling.py655 # Check if dilation is non-trivial (not all ones)
LOWpython/paddle/nn/functional/pooling.py1267 # Check if dilation is non-trivial (not all ones)
LOWpython/paddle/nn/functional/pooling.py1457 # Check if dilation is non-trivial (not all ones)
LOWpython/paddle/framework/restricted_unpickler.py133 # Check if class has __dict__ (user-defined classes do)
LOWpython/paddle/framework/restricted_unpickler.py151 # Check if this base class defines the dangerous method
LOWpython/paddle/distributed/parallel.py733 # Print result in process 1:
LOWpython/paddle/distributed/parallel.py737 # Print result in process 2:
LOW…uted/fleet/meta_parallel/parallel_layers/spec_utils.py94 # Check if a layer class is provided as a spec or if the layer path
LOW…/paddle/distributed/fleet/base/distributed_strategy.py346 # Check if attribute exists in self or in the protobuf strategy object
LOWpython/paddle/autograd/backward_utils.py721 # Check if operands_source sizes match
LOWpython/paddle/autograd/backward_utils.py727 # Check if op_results size matches operands_source
LOWpython/paddle/autograd/backward_utils.py751 # Check if yield_op is indeed a yield operation
LOWpython/paddle/autograd/backward_utils.py755 # Check if operands_source size of yield_op matches op_results size of while_op
LOWpython/paddle/cuda/__init__.py571 # Check if any device type has been compiled/initialized
LOWpython/paddle/cuda/__init__.py580 # Check if any custom device type is compiled/initialized
LOWpython/paddle/utils/cpp_extension/cpp_extension.py1460 # Check if dist-info exists
LOWpython/paddle/utils/cpp_extension/cpp_extension.py1529 # Check if dist-info exists
LOWpython/paddle/tensorrt/register.py85 # Check if the version range includes 'x' (e.g., "8.x")
LOWpython/paddle/static/nn/static_pylayer.py111 # Set OpRole to `backward`. The operators marked as `backward` are expected to be pruned in PruneBackward.
LOWpython/paddle/tensor/creation.py2259 # Check if start/end/step contain floating point values
LOWpython/paddle/tensor/einsum.py397 # Check if conditions hold for turning the operation into a matmul
LOWpython/paddle/tensor/math.py4307 # Check if the input tensor is of bool type and raise an error
LOWpython/paddle/tensor/math.py4340 # Check if the input tensor is of bool type and raise an error
LOWpython/paddle/base/executor.py2099 # Check if paddle.static.data() variable no feed data
LOW.github/workflows/cherry-pick.yml95 # Check if target branch exists on remote
LOW.github/workflows/cherry-pick.yml161 # Check if PR already exists
LOW.github/actions/skip-skill/check_skip.sh36# Check if PR event
LOW.github/actions/skip-skill/check_skip.sh65 # Check if files match ignore patterns
Example Usage Blocks10 hits · 14 pts
SeverityFileLineSnippet
LOWtools/gen_alias_mapping.sh24# Usage:
LOWtools/dockerfile/build-image.sh19# Usage:
LOWtools/enforce/grep_invalid_enforce.sh20# Usage:
LOWtest/dygraph_to_static/dygraph_to_static_utils.py46# Usage:
LOWpython/paddle/incubate/cc/compiler.py33# Usage:
LOWpython/paddle/incubate/cc/typing.py24# Usage:
LOWpython/paddle/incubate/cc/typing.py43# Usage:
LOWpython/paddle/incubate/cc/typing.py59# Usage:
LOWpaddle/.set_python_path.sh19# Usage:
LOW…cinn/runtime/custom_device/custom_device_backend_api.h102/// Usage example:
Slop Phrases5 hits · 11 pts
SeverityFileLineSnippet
MEDIUMpython/paddle/paddle_version.py56 # Ideally this should work for most cases by attempting to group
MEDIUMpython/paddle/nn/functional/flash_attention.py129 This is a basic implementation of scaled dot product attention composed of
MEDIUMpython/paddle/optimizer/lr.py257 # (Note): you can change it for your subclass.
MEDIUM…inn/operator_fusion/pir_graph_analyzing/dim_relation.h94 // Mainly for demonstration purposes, i.e. works but is overly simple
LOW.github/ISSUE_TEMPLATE/3_build-installation-issue.yml11 #### Before submitting a Build/Installation Issue, please make sure you have visited the [official website](http
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHpaddle/cinn/optim/transform_gpu_forloop.h83 * are common in auto-generated code or optimized code paths where
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippet
LOWtest/legacy_test/test_restricted_unpickler.py470 def helper():
LOWtest/legacy_test/test_matrix_rank_atol_rtol_op.py83 def process_data(self):