PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
26394 matches across 19 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. |
| LOW | setup.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
| LOW | .cmake-format.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
| LOW | .cmake-format.py | 21 | |
| LOW | tools/diff_api.py | 1 | #!/usr/bin/env python |
| LOW | tools/gen_pybind11_stub.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/test_print_signatures.py | 1 | #! /usr/bin/env python |
| LOW | tools/gen_tensor_stub.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/count_api_without_core_ops.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/get_ut_mem_map.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/get_op_list.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/get_single_test_cov.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/CheckPRTemplate.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/check_op_kernel_same_dtypes.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/statistics_UT_resource.sh | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/timeline.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/op_benchmark_count.py | 1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/gen_ut_cmakelists.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/get_quick_disable_lt.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/type_checking.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/check_pr_approval.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/nvcc_lazy.sh | 1 | #!/usr/bin/env bash |
| LOW | tools/pyCov_multithreading.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/gen_alias_mapping.sh | 1 | #!/usr/bin/env bash |
| LOW | tools/gen_alias_mapping.sh | 21 | # Arguments: |
| LOW | tools/diff_use_default_grad_op_maker.py | 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/get_pr_ut.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/__init__.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/timeout_debug_help.sh | 1 | #!/bin/bash |
| LOW | tools/check_api_compatible.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/static_mode_white_list.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/reduce_lib_size_util.py | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/analysisPyXml.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/sampcd_processor.py | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/check_sequence_op.sh | 1 | #!/bin/bash |
| LOW | tools/handle_h_cu_file.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/print_op_desc.py | 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/check_op_desc.py | 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/prune_for_jetson.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/gpups_test.sh | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/get_op_list.sh | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/get_pr_title.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/test_runner.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/summary_env.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/document_preview.sh | 1 | #!/bin/bash |
| LOW | tools/jetson_infer_op.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/op_benchmark.sh | 1 | #!/bin/bash |
| LOW | tools/diff_unittest.py | 1 | #!/usr/bin/env python |
| LOW | tools/check_code_block_format.py | 1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/parse_kernel_info.py | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/check_op_register_type.py | 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/check_added_ut.sh | 1 | #!/bin/bash |
| LOW | tools/test_run_by_protobuf_3.py | 1 | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/check_abi_compatibility.py | 1 | # Copyright (c) 2026 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/gpu_kernel_compare.py | 1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/test_check_pr_approval.py | 1 | #! /usr/bin/env python |
| LOW | tools/check_gpu_kernel_approval.sh | 1 | #!/bin/bash |
| LOW | tools/parallel_UT_rule.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/check_only_change_python_files.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. |
| LOW | tools/print_signatures.py | 1 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. |
| 9760 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| 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 |
| HIGH | test/tokenizer/bert_tokenizer.py | 44 | Tokenizes a piece of text using basic tokenizer. Args: text (str): A piece of text. |
| 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 |
| HIGH | test/tokenizer/bert_tokenizer.py | 374 | Converts a string to a list of tokens. Args: text (str): The text to be tokenized. |
| 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** : |
| 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 |
| HIGH | python/paddle/_paddle_docs.py | 70 | Acos Activation Operator. .. math:: out = cos^{-1}(x) Args: x (Tensor): Input of Acos ope |
| HIGH | python/paddle/_paddle_docs.py | 111 | Acosh Activation Operator. .. math:: out = acosh(x) Args: x (Tensor): Input of Acosh opera |
| HIGH | python/paddle/_paddle_docs.py | 152 | Sinh Activation Operator. .. math:: out = sinh(x) Args: x (Tensor): Input of Sinh operator |
| HIGH | python/paddle/_paddle_docs.py | 193 | Computes the minimum of tensor elements over the given axis Note: The difference between min and amin |
| HIGH | python/paddle/_paddle_docs.py | 334 | Computes both the minimum and maximum of tensor elements over the given axis. Note: Like amin and amax |
| HIGH | python/paddle/_paddle_docs.py | 384 | Computes the maximum of tensor elements over the given axis. Note: The difference between max and amax |
| HIGH | python/paddle/_paddle_docs.py | 525 | Element-wise angle of complex numbers. For non-negative real numbers, the angle is 0 while for negative real nu |
| HIGH | python/paddle/_paddle_docs.py | 580 | Computes the ``logical and`` of tensor elements over the given dimension. Args: x (Tensor): An N-D Ten |
| HIGH | python/paddle/_paddle_docs.py | 655 | Computes the indices of the max elements of the input tensor's element along the provided axis. Args: |
| HIGH | python/paddle/_paddle_docs.py | 708 | Computes the indices of the min elements of the input tensor's element along the provided axis. Args: |
| HIGH | python/paddle/_paddle_docs.py | 761 | Arctangent Operator. .. math:: out = tan^{-1}(x) Args: x (Tensor): Input of Atan operator, |
| HIGH | python/paddle/_paddle_docs.py | 802 | Atanh Activation Operator. .. math:: out = atanh(x) Args: x (Tensor): Input of Atan operat |
| HIGH | python/paddle/_paddle_docs.py | 843 | Element-wise arctangent of x/y with consideration of the quadrant. Equation: .. math:: atan2(x |
| HIGH | python/paddle/_paddle_docs.py | 902 | Calculates the log to the base 2 of the given input tensor, element-wise. .. math:: Out = \log_2x |
| HIGH | python/paddle/_paddle_docs.py | 959 | Calculates the log to the base 10 of the given input tensor, element-wise. .. math:: Out = \log_{10}x |
| HIGH | python/paddle/_paddle_docs.py | 1015 | Asinh Activation Operator. .. math:: out = asinh(x) Args: x (Tensor): Input of Asinh opera |
| HIGH | python/paddle/_paddle_docs.py | 1056 | Reciprocal Activation Operator. .. math:: out = \\frac{1}{x} Args: x (Tensor): Input of R |
| HIGH | python/paddle/_paddle_docs.py | 1097 | Square each elements of the inputs. .. math:: out = x^2 Args: x (Tensor): Input of Square |
| HIGH | python/paddle/_paddle_docs.py | 1136 | Tangent Operator. Computes tangent of x element-wise. Input range is `(k*pi-pi/2, k*pi+pi/2)` and output range |
| HIGH | python/paddle/_paddle_docs.py | 1179 | Calculates the natural log of the given input tensor plus 1, element-wise. .. math:: Out = \ln(x+1) |
| HIGH | python/paddle/_paddle_docs.py | 1219 | Applies matrix multiplication to two tensors. `matmul` follows the complete broadcast rules, and its behavi |
| HIGH | python/paddle/_paddle_docs.py | 1326 | multiply two tensors element-wise. The equation is: .. math:: out = x * y Note: Supported |
| HIGH | python/paddle/_paddle_docs.py | 1383 | Calculates the log of the sum of exponential of ``x`` along ``axis`` . .. math:: logsumexp(x) = \log\su |
| HIGH | python/paddle/_paddle_docs.py | 1446 | softplus activation .. math:: softplus(x)=\begin{cases} \frac{1}{\beta} * \\log(1 + e^ |
| HIGH | python/paddle/_paddle_docs.py | 1488 | The function used to calculate modified bessel function of order 0. Equation: .. math:: |
| HIGH | python/paddle/_paddle_docs.py | 1527 | The function used to calculate exponentially scaled modified Bessel function of order 0. Equation: .. |
| HIGH | python/paddle/_paddle_docs.py | 1567 | Check if all :math:`x` and :math:`y` satisfy the condition: .. math:: \\left| x - y \right| \\leq atol |
| HIGH | python/paddle/_paddle_docs.py | 1658 | Return whether every element of input tensor is finite number or not. Args: x (Tensor): The input tens |
| HIGH | python/paddle/_paddle_docs.py | 1689 | Return whether every element of input tensor is `+/-INF` or not. Args: x (Tensor): The input tensor, i |
| HIGH | python/paddle/_paddle_docs.py | 1720 | Return whether every element of input tensor is `NaN` or not. Args: x (Tensor): The input tensor, it's |
| HIGH | python/paddle/_paddle_docs.py | 1752 | Roll the `x` tensor along the given axis(axes). With specific 'shifts', Elements that roll beyond the last posi |
| HIGH | python/paddle/_paddle_docs.py | 1811 | Ceil Operator. Computes ceil of x element-wise. .. math:: out = \\left \\lceil x \\right \\rceil |
| HIGH | python/paddle/_paddle_docs.py | 1852 | Computes the sum of tensor elements over the given dimension. This API has two signatures: 1. ``paddle.su |
| HIGH | python/paddle/_paddle_docs.py | 1962 | Puts values from the tensor values into the tensor x using the indices specified in indices (which is a tuple of Te |
| HIGH | python/paddle/_paddle_docs.py | 2032 | Computes the ``logical or`` of tensor elements over the given dimension, and return the result. Args: |
| HIGH | python/paddle/_paddle_docs.py | 2109 | Expand the input tensor ``x`` to the same shape as the input tensor ``y``. Both the number of dimensions of ` |
| HIGH | python/paddle/_paddle_docs.py | 2155 | Sample input X by using bilinear interpolation or nearest interpolation based on flow field grid, which is usua |
| HIGH | python/paddle/_paddle_docs.py | 2296 | This API implements pixel shuffle operation. See more details in :ref:`PixelShuffle <api_paddle_nn_PixelShuffle |
| HIGH | python/paddle/_paddle_docs.py | 2333 | gelu activation. The activation function of Gelu is calculated element by element. More information refers to |
| HIGH | python/paddle/_paddle_docs.py | 2400 | Sigmoid Activation. .. math:: out = \\frac{1}{1 + e^{-x}} Args: x (Tensor): Input of Sigmo |
| HIGH | python/paddle/_paddle_docs.py | 2443 | Returns the truth value of :math:`x > y` elementwise, which is equivalent function to the overloaded operator `>`. |
| HIGH | python/paddle/_paddle_docs.py | 2485 | Sine Activation Operator. .. math:: out = sin(x) Args: x (Tensor): Input of Sin operator, |
| HIGH | python/paddle/_paddle_docs.py | 2526 | Returns sign of every element in `x`: For real numbers, 1 for positive, -1 for negative and 0 for zero. For complex |
| HIGH | python/paddle/_paddle_docs.py | 2560 | Calculates the lgamma of the given input tensor, element-wise. This operator performs elementwise lgamma for i |
| HIGH | python/paddle/_paddle_docs.py | 2601 | Calculates the natural log of the given input Tensor, element-wise. .. math:: Out = \ln(x) Args: |
| HIGH | python/paddle/_paddle_docs.py | 2642 | Rsqrt Activation Operator. Please make sure input is legal in case of numeric errors. .. math:: ou |
| HIGH | python/paddle/_paddle_docs.py | 2685 | Cosine Operator. Computes cosine of x element-wise. Input range is `(-inf, inf)` and output range is `[-1,1]`. |
| HIGH | python/paddle/_paddle_docs.py | 2728 | Cosh Activation Operator. Input range `(-inf, inf)`, output range `(1, inf)`. .. math:: out = \\fr |
| HIGH | python/paddle/_paddle_docs.py | 2771 | Floor Activation Operator. Computes floor of x element-wise. .. math:: out = \\lfloor x \\rfloor |
| HIGH | python/paddle/_paddle_docs.py | 2812 | Compare two tensors and returns a new tensor containing the element-wise maxima. The equation is: .. math:: |
| HIGH | python/paddle/_paddle_docs.py | 2881 | Compare two tensors and return a new tensor containing the element-wise minima. The equation is: .. math:: |
| HIGH | python/paddle/_paddle_docs.py | 2950 | Sqrt Activation Operator. .. math:: out=\\sqrt{x}=x^{1/2} Args: x (Tensor): Input of Sqrt |
| HIGH | python/paddle/_paddle_docs.py | 2994 | Returns the lower triangular part of a matrix (2-D tensor) or batch of matrices :attr:`x`, the other elements o |
| HIGH | python/paddle/_paddle_docs.py | 3066 | 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… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 330 | def _convert_readme_relative_paths_for_pypi(readme: str) -> str: |
| LOW | setup.py | 929 | def write_parameter_server_version_py( |
| LOW | setup.py | 1161 | def get_paddle_extra_install_requirements(): |
| LOW | setup.py | 1526 | def extend_type_hints_package_data(packages, package_data, paddle_binary_dir): |
| LOW | setup.py | 1553 | def get_package_data_and_package_dir(): |
| LOW | setup.py | 2994 | def install_cpp_dist_and_build_test(install_dir, lib_test_dir, headers, libs): |
| LOW | setup.py | 3050 | def submodules_not_exists_or_empty(folder): |
| LOW | tools/gen_pybind11_stub.py | 363 | def check_remove_syntax_error(filename: str, limit: int = 10000): |
| LOW | tools/gen_pybind11_stub.py | 555 | def load_python_api_function_by_name(name: str) -> Any: |
| LOW | tools/gen_pybind11_stub.py | 890 | def _parse_dst_module_to_path( |
| LOW | tools/gen_tensor_stub.py | 71 | def create_builtin_annotation_renamer(): |
| LOW | tools/gen_tensor_stub.py | 85 | def rename_builtin_annotation(annotation): |
| LOW | tools/count_api_without_core_ops.py | 47 | def split_with_and_without_core_ops(member, cur_name): |
| LOW | tools/count_api_without_core_ops.py | 170 | def get_apis_with_and_without_core_ops(modules): |
| LOW | tools/CheckPRTemplate.py | 144 | def check_precision_change_approval(body, pr_number, pr_user): |
| LOW | tools/CheckPRTemplate.py | 285 | def pull_request_event_template(event, repo, *args, **kwargs): |
| LOW | tools/check_op_kernel_same_dtypes.py | 84 | def check_change_or_add_op_kernel_dtypes_valid(): |
| LOW | tools/gen_ut_cmakelists.py | 250 | def _init_dist_ut_ports_from_cmakefile(self, cmake_file_name): |
| LOW | tools/gen_ut_cmakelists.py | 289 | def parse_assigned_dist_ut_ports(self, current_work_dir, depth=0): |
| LOW | tools/type_checking.py | 314 | def codeblock_identifier_to_filename(codeblock_identifier: str) -> str: |
| LOW | tools/get_pr_ut.py | 169 | def __get_comment_by_filetype(self, content, filetype): |
| LOW | tools/check_op_desc.py | 407 | def print_version_error_message(error_message): |
| LOW | tools/get_pr_title.py | 57 | def check_skip_distribute_test(title): |
| LOW | tools/check_code_block_format.py | 138 | def format_code_block_with_suggestions( |
| LOW | tools/check_code_block_format.py | 181 | def check_code_block_indentation( |
| LOW | tools/check_code_block_format.py | 202 | def check_code_block_follows_blank_line( |
| LOW | tools/check_code_block_format.py | 216 | def check_lines_starts_with_blank_line( |
| LOW | tools/check_abi_compatibility.py | 108 | def parse_readelf_dynamic_symbols(readelf_output: str) -> list[DynamicSymbol]: |
| LOW | tools/check_abi_compatibility.py | 184 | def is_protected_paddle_abi_symbol(symbol: DynamicSymbol) -> bool: |
| LOW | tools/check_abi_compatibility.py | 193 | def protected_symbols_by_name( |
| LOW | tools/check_abi_compatibility.py | 338 | def find_required_abi_approver( |
| LOW | tools/check_abi_compatibility.py | 398 | def check_abi_removal_approval( |
| LOW | tools/check_abi_compatibility.py | 439 | def check_abi_issues_approval( |
| LOW | tools/gpu_kernel_compare.py | 67 | def _create_config_signature_without_dtype( |
| LOW | tools/test_check_pr_approval.py | 113 | def test_check_with_required_reviewer_not_approved(self): |
| LOW | tools/check_only_change_python_files.py | 58 | def check_only_change_python_file(self): |
| LOW | tools/test_check_api_compatible.py | 62 | def test_args_places_exchanged(self): |
| LOW | tools/test_check_api_compatible.py | 116 | def test_args_places_exchanged(self): |
| LOW | tools/check_op_benchmark_result.py | 56 | def load_benchmark_result_from_logs_dir(logs_dir): |
| LOW | tools/sampcd_processor_utils.py | 406 | def get_full_api_from_pr_spec(): |
| LOW | tools/sampcd_processor_utils.py | 419 | def extract_code_blocks_from_docstr(docstr, google_style=True): |
| LOW | tools/remove_grad_op_and_kernel.py | 49 | def remove_grad_op_and_kernel(content, pattern1, pattern2): |
| LOW | tools/codestyle/clang-tidy.py | 77 | def find_compilation_database(path, result="./"): |
| LOW | tools/codestyle/clang-tidy.py | 205 | def check_clang_apply_replacements_binary(args): |
| LOW | test/tools/test_gpu_kernel_compare.py | 35 | def test_all_gpu_kernel_detection(self): |
| LOW | test/tools/test_sampcd_processor.py | 506 | def test_patch_xdoctest_place(self): |
| LOW | test/tools/test_sampcd_processor.py | 699 | def test_patch_xdoctest_float(self): |
| LOW | test/tools/test_sampcd_processor.py | 1818 | def test_multiprocessing_xdoctester(self): |
| LOW | test/tools/test_sampcd_processor.py | 2377 | def test_single_process_directive(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 41 | def test_ignores_weak_undefined_and_local_symbols(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 59 | def test_detects_protected_compat_cxx_namespaces(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 87 | def test_ignores_non_compat_paddle_entrypoints(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 108 | def test_ignores_third_party_symbols(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 120 | def test_added_symbols_do_not_fail(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 139 | def test_removed_protected_symbol_fails(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 161 | def test_removed_third_party_symbol_does_not_fail(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 170 | def test_removed_non_compat_phi_symbol_does_not_fail(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 184 | def test_missing_pr_library_fails_when_base_has_library(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 199 | def test_missing_base_library_does_not_fail(self): |
| LOW | test/tools/test_check_abi_compatibility.py | 214 | def test_no_abi_issues_do_not_require_approval(self): |
| 6483 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 15 | |
| LOW | tools/gen_pybind11_stub.py | 15 | |
| LOW | tools/type_checking.py | 24 | |
| LOW | tools/sampcd_processor.py | 25 | |
| LOW | tools/check_abi_compatibility.py | 21 | |
| LOW | tools/gpu_kernel_compare.py | 15 | |
| LOW | tools/print_signatures.py | 21 | |
| LOW | tools/sampcd_processor_utils.py | 15 | |
| LOW | tools/sampcd_processor_utils.py | 623 | |
| LOW | tools/sampcd_processor_utils.py | 624 | |
| LOW | tools/commitlist.py | 15 | |
| LOW | test/compat/test_torch_proxy_mixed.py | 78 | |
| LOW | test/compat/test_torch_proxy_mixed.py | 91 | |
| LOW | test/compat/fake_torch_modules/torch/__init__.py | 17 | |
| LOW | test/compat/fake_torch_modules/torch/__init__.py | 17 | |
| LOW | test/compat/fake_torch_modules/torch/nn/__init__.py | 15 | |
| LOW | test/ipu/op_test_ipu.py | 14 | |
| LOW | test/flex_checkpoint/test_macros.py | 15 | |
| LOW | test/ir/pir/cinn/llama_test_model.py | 15 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_28.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_79.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_69.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_38.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_0.py | 19 | |
| LOW | …st/ir/pir/cinn/sub_graphs/test_sub_graph_avg_pool2d.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_18.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_49.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_59.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_4.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_19.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_48.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_58.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_5.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_conv_nd.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_29.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_78.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_68.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_39.py | 18 | |
| LOW | …/pir/cinn/sub_graphs/test_sub_graph_bfloat162float8.py | 17 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_1.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_22.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_73.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_80.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_47.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_16.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_chunk.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_add_n.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_57.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_90.py | 15 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_63.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_32.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_12.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_43.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_77.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_26.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_84.py | 18 | |
| LOW | …/cinn/sub_graphs/test_sub_graph_adaptive_avg_pool2d.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_36.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_67.py | 18 | |
| LOW | test/ir/pir/cinn/sub_graphs/test_sub_graph_53.py | 18 | |
| 4693 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 421 | |
| LOW | setup.py | 995 | |
| LOW | setup.py | 1553 | |
| LOW | tools/gen_pybind11_stub.py | 580 | |
| LOW | tools/gen_pybind11_stub.py | 695 | |
| LOW | tools/gen_pybind11_stub.py | 777 | |
| LOW | tools/gen_tensor_stub.py | 426 | |
| LOW | tools/gen_tensor_stub.py | 598 | |
| LOW | tools/count_api_without_core_ops.py | 47 | |
| LOW | tools/count_api_without_core_ops.py | 95 | |
| LOW | tools/count_api_without_core_ops.py | 116 | |
| LOW | tools/count_api_without_core_ops.py | 136 | |
| LOW | tools/get_ut_mem_map.py | 20 | |
| LOW | tools/get_single_test_cov.py | 23 | |
| LOW | tools/get_single_test_cov.py | 68 | |
| LOW | tools/get_single_test_cov.py | 132 | |
| LOW | tools/CheckPRTemplate.py | 58 | |
| LOW | tools/CheckPRTemplate.py | 144 | |
| LOW | tools/CheckPRTemplate.py | 256 | |
| LOW | tools/check_op_kernel_same_dtypes.py | 84 | |
| LOW | tools/timeline.py | 142 | |
| LOW | tools/timeline.py | 215 | |
| LOW | tools/gen_ut_cmakelists.py | 250 | |
| LOW | tools/gen_ut_cmakelists.py | 289 | |
| LOW | tools/type_checking.py | 104 | |
| LOW | tools/get_pr_ut.py | 216 | |
| LOW | tools/get_pr_ut.py | 299 | |
| LOW | tools/reduce_lib_size_util.py | 23 | |
| LOW | tools/reduce_lib_size_util.py | 51 | |
| LOW | tools/analysisPyXml.py | 23 | |
| LOW | tools/check_op_desc.py | 65 | |
| LOW | tools/check_op_desc.py | 139 | |
| LOW | tools/check_op_desc.py | 210 | |
| LOW | tools/check_op_desc.py | 230 | |
| LOW | tools/prune_for_jetson.py | 36 | |
| LOW | tools/prune_for_jetson.py | 110 | |
| LOW | tools/check_code_block_format.py | 153 | |
| LOW | tools/gpu_kernel_compare.py | 85 | |
| LOW | tools/print_signatures.py | 84 | |
| LOW | tools/print_signatures.py | 208 | |
| LOW | tools/check_op_benchmark_result.py | 35 | |
| LOW | tools/get_ut_file_map.py | 20 | |
| LOW | tools/get_ut_file_map.py | 57 | |
| LOW | tools/final_ut_parallel_rule.py | 20 | |
| LOW | tools/group_case_for_parallel.py | 19 | |
| LOW | tools/sampcd_processor_utils.py | 358 | |
| LOW | tools/sampcd_processor_utils.py | 419 | |
| LOW | tools/sampcd_processor_utils.py | 673 | |
| LOW | tools/analysis_build_time.py | 35 | |
| LOW | tools/CrossStackProfiler/DCGMFileReader.py | 105 | |
| LOW | tools/CrossStackProfiler/NetFileReader.py | 28 | |
| LOW | tools/CrossStackProfiler/ProfileFileReader.py | 56 | |
| LOW | tools/CrossStackProfiler/ProfileFileReader.py | 71 | |
| LOW | tools/CrossStackProfiler/ProfileFileReader.py | 199 | |
| LOW | tools/CrossStackProfiler/ProfileFileReader.py | 316 | |
| LOW | tools/CrossStackProfiler/CspReporter.py | 143 | |
| LOW | tools/codestyle/clang-tidy.py | 95 | |
| LOW | test/compat/test_torch_proxy_mixed.py | 43 | |
| LOW | test/compat/test_get_device_module.py | 53 | |
| LOW | test/compat/test_paddle_cuda_apis.py | 22 | |
| 2240 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tools/test_check_api_compatible.py | 0 | paddle.four_plus_four (paddle.four_plus_four, ('document', 'ff0f188c95030158cc6398d2a6c5four')) |
| HIGH | test/tools/test_sampcd_processor.py | 0 | paddle.four_plus_four (paddle.four_plus_four, ('document', 'ff0f188c95030158cc6398d2a6c5four')) |
| HIGH | test/tools/test_sampcd_processor.py | 0 | paddle.four_plus_four (paddle.four_plus_four, ('document', 'ff0f188c95030158cc6398d2a6c5four')) |
| HIGH | test/tools/test_type_checking.py | 0 | placeholder examples: .. code-block:: pycon :name: code-example-1 this is some blabla... >>> print(7.0, 5., 6.123456) 7. |
| HIGH | test/tools/test_type_checking.py | 0 | placeholder examples: .. code-block:: pycon :name: code-example-1 this is some blabla... >>> print(7.0, 5., 6.123456) 7. |
| HIGH | test/tools/test_sampcd_processor.py | 0 | placeholder examples: .. code-block:: pycon :name: code-example-1 this is some blabla... >>> print(7.0, 5., 6.123456) 7. |
| HIGH | test/tools/test_sampcd_processor.py | 0 | placeholder examples: .. code-block:: pycon :name: code-example-1 this is some blabla... >>> print(7.0, 5., 6.123456) 7. |
| HIGH | test/tools/test_sampcd_processor.py | 0 | paddle.one_plus_one (argspec(args=[], varargs=none, keywords=none, defaults=(,)), ('document', 'ff0f188c95030158cc6398d2 |
| HIGH | test/tools/test_sampcd_processor.py | 0 | paddle.one_plus_one (argspec(args=[], varargs=none, keywords=none, defaults=(,)), ('document', 'ff0f188c95030158cc6398d2 |
| HIGH | test/tools/test_sampcd_processor.py | 0 | paddle.one_plus_one (argspec(args=[], varargs=none, keywords=none, defaults=(,)), ('document', 'ff0f188c95030158cc6398d2 |
| 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]`. |
| 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]`. |
| 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]`. |
| HIGH | test/ir/inference/auto_scan_test.py | 0 | prepare tensorrt subgraph engine dynamic shape parameters. |
| HIGH | test/ir/inference/quant_dequant_test.py | 0 | prepare tensorrt subgraph engine dynamic shape parameters. |
| HIGH | test/ir/inference/inference_pass_test.py | 0 | prepare tensorrt subgraph engine dynamic shape parameters. |
| HIGH | test/ir/inference/quant_dequant_test.py | 0 | check whether calculating on cpu and gpu, enable tensorrt or disable tensorrt, enable onednn or disable onednn are all t |
| HIGH | test/ir/inference/inference_pass_test.py | 0 | check whether calculating on cpu and gpu, enable tensorrt or disable tensorrt, enable onednn or disable onednn are all t |
| HIGH | test/ir/inference/inference_pass_test.py | 0 | check 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.py | 0 | in_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.py | 0 | in_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.py | 0 | in_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.py | 0 | in_var1 emb_var in_var2 emb_var in_var3 emb_var in_var emb_var | | | | | | | | lookup_table lookup_table lookup_table .. |
| HIGH | test/collective/fleet/parallel_dygraph_transformer.py | 0 | generate the initial values for the sinusoid position encoding table. |
| HIGH | test/legacy_test/transformer_model.py | 0 | generate the initial values for the sinusoid position encoding table. |
| HIGH | …cy_test/test_imperative_transformer_sorted_gradient.py | 0 | generate the initial values for the sinusoid position encoding table. |
| HIGH | test/dygraph_to_static/transformer_dygraph_model.py | 0 | generate the initial values for the sinusoid position encoding table. |
| HIGH | test/collective/fleet/parallel_dygraph_transformer.py | 0 | the wrapper assembles together all needed layers for the encoder. |
| HIGH | test/collective/fleet/parallel_dygraph_transformer.py | 0 | the wrapper assembles together all needed layers for the encoder. |
| HIGH | …cy_test/test_imperative_transformer_sorted_gradient.py | 0 | the wrapper assembles together all needed layers for the encoder. |
| HIGH | …cy_test/test_imperative_transformer_sorted_gradient.py | 0 | the wrapper assembles together all needed layers for the encoder. |
| HIGH | test/xpu/test_generate_proposals_v2_op_xpu.py | 0 | apply intersection-over-union overlap between box_a and box_b |
| HIGH | test/legacy_test/test_generate_proposals_v2_op.py | 0 | apply intersection-over-union overlap between box_a and box_b |
| HIGH | test/legacy_test/test_multiclass_nms_op.py | 0 | apply intersection-over-union overlap between box_a and box_b |
| HIGH | test/legacy_test/test_nms_op.py | 0 | apply intersection-over-union overlap between box_a and box_b |
| HIGH | test/xpu/test_softmax_op_xpu.py | 0 | compute the softmax of vector x in a numerically stable way. |
| HIGH | …/xpu/test_collective_softmax_with_cross_entropy_xpu.py | 0 | compute the softmax of vector x in a numerically stable way. |
| HIGH | test/legacy_test/test_fused_multihead_matmul_op.py | 0 | compute the softmax of vector x in a numerically stable way. |
| HIGH | test/legacy_test/test_softmax_op.py | 0 | compute the softmax of vector x in a numerically stable way. |
| HIGH | …cy_test/c_softmax_with_multi_label_cross_entropy_op.py | 0 | compute the softmax of vector x in a numerically stable way. |
| HIGH | test/legacy_test/c_softmax_with_cross_entropy_op.py | 0 | compute the softmax of vector x in a numerically stable way. |
| HIGH | test/onednn/test_softmax_bf16_onednn_op.py | 0 | compute the softmax of vector x in a numerically stable way. |
| HIGH | …t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py | 0 | test sigmoid_cross_entropy_with_logit_op with binary label |
| HIGH | …t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py | 0 | test sigmoid_cross_entropy_with_logit_op with binary label |
| HIGH | …t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py | 0 | test sigmoid_cross_entropy_with_logit_op with binary label |
| HIGH | …gacy_test/test_sigmoid_cross_entropy_with_logits_op.py | 0 | test sigmoid_cross_entropy_with_logit_op with binary label |
| HIGH | …gacy_test/test_sigmoid_cross_entropy_with_logits_op.py | 0 | test sigmoid_cross_entropy_with_logit_op with binary label |
| HIGH | …t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py | 0 | test sigmoid_cross_entropy_with_logit_op with probabilistic label |
| HIGH | …t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py | 0 | test sigmoid_cross_entropy_with_logit_op with probabilistic label |
| HIGH | …t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py | 0 | test sigmoid_cross_entropy_with_logit_op with probabilistic label |
| HIGH | …t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py | 0 | test sigmoid_cross_entropy_with_logit_op with probabilistic label |
| HIGH | …t/xpu/test_sigmoid_cross_entropy_with_logits_op_xpu.py | 0 | test sigmoid_cross_entropy_with_logit_op with probabilistic label |
| HIGH | …gacy_test/test_sigmoid_cross_entropy_with_logits_op.py | 0 | test sigmoid_cross_entropy_with_logit_op with probabilistic label |
| HIGH | …gacy_test/test_sigmoid_cross_entropy_with_logits_op.py | 0 | test sigmoid_cross_entropy_with_logit_op with probabilistic label |
| HIGH | …gacy_test/test_sigmoid_cross_entropy_with_logits_op.py | 0 | test sigmoid_cross_entropy_with_logit_op with probabilistic label |
| HIGH | …gacy_test/test_sigmoid_cross_entropy_with_logits_op.py | 0 | test sigmoid_cross_entropy_with_logit_op with probabilistic label |
| HIGH | test/xpu/test_truncated_gaussian_random_op_xpu.py | 0 | reference: https://en.wikipedia.org/wiki/truncated_normal_distribution |
| HIGH | test/xpu/test_truncated_gaussian_random_op_xpu.py | 0 | reference: https://en.wikipedia.org/wiki/truncated_normal_distribution |
| HIGH | test/legacy_test/test_truncated_gaussian_random_op.py | 0 | reference: https://en.wikipedia.org/wiki/truncated_normal_distribution |
| HIGH | test/legacy_test/test_truncated_gaussian_random_op.py | 0 | reference: https://en.wikipedia.org/wiki/truncated_normal_distribution |
| 219 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tools/pyCov_multithreading.py | 53 | os.system(f'cd {path} && pwd && coverage xml -i -o python-coverage.xml') |
| HIGH | tools/get_pr_ut.py | 271 | f"cd {PADDLE_ROOT}build && ctest -N", |
| HIGH | tools/prune_for_jetson.py | 105 | " && git apply tools/infer_prune_patches/*.patch && cd -" |
| 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}' |
| 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 |
| 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/{ |
| HIGH | tools/continuous_integration/bisect.py | 99 | f'git checkout {args.bisect_branch} && git clean -fd && git checkout .' |
| HIGH | …t/custom_runtime/test_collective_process_group_xccl.py | 49 | os.system("rm -rf log && mkdir -p log") |
| HIGH | …t/custom_runtime/test_collective_process_group_xccl.py | 159 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format( |
| HIGH | test/custom_runtime/test_custom_op_setup.py | 119 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8 \ |
| HIGH | test/custom_runtime/test_custom_cpu_to_static.py | 110 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format( |
| HIGH | test/custom_runtime/test_custom_cpu_profiler_plugin.py | 32 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format( |
| HIGH | test/custom_runtime/test_custom_cpu_plugin.py | 34 | && mkdir build && cd build && cmake .. -DPython_EXECUTABLE={} -DWITH_TESTING=OFF && make -j8'.format( |
| HIGH | test/distribution/test_distribution_bernoulli.py | 118 | KL[a || b] = Pa * Log[Pa / Pb] + (1 - Pa) * Log[(1 - Pa) / (1 - Pb)] |
| HIGH | test/legacy_test/test_elementwise_heaviside_op.py | 481 | Fix: add early-return guards in ElemwiseGradBroadcast1CUDA (h==0 || w==0) |
| HIGH | test/legacy_test/test_elementwise_heaviside_op.py | 482 | and ElemwiseGradBroadcast2CUDA (pre==0 || n==0 || post==0). |
| HIGH | …ization/quant2_int8_image_classification_comparison.py | 335 | f'Accepted top1 accuracy drop threshold: {threshold}. (condition: (Quant_top1_acc - IN8_top1_acc) <= thresho |
| HIGH | test/custom_op/test_check_abi.py | 59 | # Mac: clang has no version limitation, always return true |
| HIGH | test/sot/test_stack.py | 44 | stack.push(1) |
| HIGH | test/sot/test_stack.py | 45 | stack.push(2) |
| HIGH | python/paddle/_paddle_docs.py | 854 | &\text{undefined} & x=0, y = 0 |
| HIGH | python/paddle/_paddle_docs.py | 3246 | out = x || y |
| HIGH | python/paddle/_paddle_docs.py | 3341 | out = (x || y) \&\& !(x \&\& y) |
| HIGH | python/paddle/nn/initializer/kaiming.py | 183 | # var.place._type() means undefined, happens when initializer is specified in ParamAttr |
| HIGH | python/paddle/nn/layer/common.py | 302 | if align_corners = True && out_size > 1 : |
| HIGH | python/paddle/nn/functional/common.py | 328 | if align_corners = True && out_size > 1 : |
| HIGH | python/paddle/nn/functional/common.py | 1035 | if align_corners = True && out_size > 1 : |
| HIGH | python/paddle/io/dataloader/dataloader_iter.py | 285 | self._blocking_queue.push(array) |
| HIGH | python/paddle/io/dataloader/dataloader_iter.py | 658 | if not self._blocking_queue.push(array): |
| HIGH | python/paddle/distribution/laplace.py | 384 | r"""Calculate the KL divergence KL(self || other) with two Laplace instances. |
| HIGH | python/paddle/distribution/geometric.py | 323 | r"""Calculate the KL divergence KL(self || other) with two Geometric instances. |
| HIGH | python/paddle/distribution/bernoulli.py | 456 | KL(a || b) = p_a \log(p_a / p_b) + (1 - p_a) \log((1 - p_a) / (1 - p_b)) |
| HIGH | python/paddle/vision/ops.py | 1986 | Their relation should be ``0 <= x1 < x2 && 0 <= y1 < y2``. |
| HIGH | python/paddle/jit/dy2static/transformers/utils.py | 425 | a.push(0) don't modify the variable a, but the content |
| HIGH | python/paddle/jit/dy2static/transformers/utils.py | 440 | b.push(1) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 765 | self.stack.push( |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 768 | self.stack.push(old_exception) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 769 | self.stack.push( |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 778 | self.stack.push( |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 783 | self.stack.push(ConstantVariable.wrap_literal(None, self._graph)) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 784 | self.stack.push(exception_var) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 785 | self.stack.push( |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 823 | self.stack.push(self.stack.peek[instr.arg]) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 826 | self.stack.push(self.stack.top) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 830 | self.stack.push(ref) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 988 | self.stack.push( |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 996 | self.stack.push(var) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1001 | self.stack.push(const_var) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1012 | self.stack.push(self.vframe.cells[name]) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1016 | self.stack.push(self.vframe.locals[instr.argval].cell_content()) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1020 | self.stack.push(self.vframe.cells[name].cell_content()) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1029 | self.stack.push(var) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1037 | self.stack.push(int_var) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1055 | self.stack.push(NullVariable()) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1063 | self.stack.push(value) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1065 | self.stack.push(NullVariable()) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1084 | self.stack.push(method.fn) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1085 | self.stack.push(obj) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1089 | self.stack.push(NullVariable()) |
| HIGH | …/jit/sot/opcode_translator/executor/opcode_executor.py | 1090 | self.stack.push(method) |
| 78 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .cmake-format.py | 15 | # ----------------------------- |
| MEDIUM | .cmake-format.py | 17 | # ----------------------------- |
| MEDIUM | .cmake-format.py | 22 | # ------------------------------------------------ |
| MEDIUM | .cmake-format.py | 24 | # ------------------------------------------------ |
| MEDIUM | .cmake-format.py | 34 | # ---------------------------------- |
| MEDIUM | .cmake-format.py | 36 | # ---------------------------------- |
| MEDIUM | tools/enforce/count_all_enforce.sh | 35 | # ---------------------------- |
| MEDIUM | tools/enforce/count_all_enforce.sh | 37 | # ---------------------------- |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 28 | # ============================================================================== |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 31 | # ============================================================================== |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 132 | # ============================================================================== |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 134 | # ============================================================================== |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 240 | # ============================================================================== |
| MEDIUM | test/flex_checkpoint/strategy_conversion_engine.py | 242 | # ============================================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 81 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 104 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 127 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 235 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 258 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 281 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 375 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 425 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 529 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine_transpose_cast.py | 622 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 26 | # ------------------------------------------------------ |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 49 | # ------------------------------------------------------ |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 70 | # ------------------------------------------------------ |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 81 | # ------------------------------------------------------ |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 90 | # ------------------------------------------------------ |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 101 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 133 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 165 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 257 | # ------------------------------------------------------ |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 259 | # ====================================================== |
| MEDIUM | test/flex_checkpoint/test_aoa_engine.py | 310 | # ====================================================== |
| MEDIUM | test/ir/inference/test_use_optimized_model_api.py | 36 | # ------------------------------------------------------------- |
| MEDIUM | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 72 | # ------------------------------------------------------------------ |
| MEDIUM | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 74 | # ------------------------------------------------------------------ |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 529 | # --------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 531 | # --------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 561 | # --------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 563 | # --------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 589 | # --------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 591 | # --------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 597 | # --------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_elementwise_heaviside_op.py | 599 | # --------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_slow_conv_op.py | 115 | # ================================================================= |
| MEDIUM | test/legacy_test/test_slow_conv_op.py | 117 | # ================================================================= |
| MEDIUM | test/legacy_test/test_slow_conv_op.py | 216 | # ================================================================= |
| MEDIUM | test/legacy_test/test_slow_conv_op.py | 218 | # ================================================================= |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 111 | # ── dtype coverage ────────────────────────────────────────────────── |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 168 | # ── shape coverage ────────────────────────────────────────────────── |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 190 | # ── stream ordering ───────────────────────────────────────────────── |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 435 | # --------------------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 437 | # --------------------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 731 | # --------------------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_print_tensor_in_gpu.py | 734 | # --------------------------------------------------------------------------- |
| MEDIUM | test/legacy_test/test_pylayer_clear_dataptr.py | 236 | # ------------------------------------------------------------------ |
| MEDIUM | test/legacy_test/test_pylayer_clear_dataptr.py | 238 | # ------------------------------------------------------------------ |
| MEDIUM | test/legacy_test/test_pylayer_clear_dataptr.py | 277 | # ------------------------------------------------------------------ |
| 127 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 547 | except Exception as e: |
| MEDIUM | setup.py | 548 | print(f"Error while getting TensorRT version: {e}") |
| LOW | setup.py | 1383 | except Exception as e: |
| LOW | setup.py | 2953 | except Exception as e: |
| LOW | setup.py | 3069 | except Exception: |
| MEDIUM | setup.py | 296 | def git_commit() -> str: |
| LOW | tools/CheckPRTemplate.py | 242 | except Exception as e: |
| MEDIUM | tools/CheckPRTemplate.py | 50 | def check_link_accessible(url): |
| MEDIUM | tools/op_benchmark_count.py | 117 | print(f"Error Lines Percentage: {error_percentage:.2f}%") |
| LOW | tools/gen_ut_cmakelists.py | 489 | except Exception as e: |
| LOW | tools/gen_ut_cmakelists.py | 560 | except Exception as e: |
| LOW | tools/get_quick_disable_lt.py | 116 | except Exception as e: |
| LOW | tools/get_pr_ut.py | 69 | except Exception as e: |
| LOW | tools/get_pr_ut.py | 117 | except Exception as e: |
| LOW | tools/print_signatures.py | 180 | except Exception as e: |
| MEDIUM | tools/print_signatures.py | 64 | def md5(doc): |
| LOW | tools/CrossStackProfiler/NetFileReader.py | 63 | except Exception: |
| LOW | tools/CrossStackProfiler/CspFileReader.py | 301 | except Exception: |
| LOW | tools/CrossStackProfiler/CspFileReader.py | 366 | except Exception as e: |
| MEDIUM | tools/CrossStackProfiler/CspFileReader.py | 363 | def test_FileReader(args): |
| MEDIUM | tools/codestyle/clang-tidy.py | 452 | print('Error exporting fixes.\n', file=sys.stderr) |
| MEDIUM | tools/codestyle/clang-tidy.py | 461 | print('Error applying fixes.\n', file=sys.stderr) |
| LOW | test/compat/test_event_stream_apis.py | 63 | except Exception: |
| LOW | test/compat/test_event_stream_apis.py | 262 | except Exception: |
| LOW | test/compat/test_event_stream_apis.py | 299 | except Exception: |
| LOW | test/compat/test_paddle_cuda_apis.py | 42 | except Exception: |
| LOW | test/compat/test_paddle_cuda_apis.py | 115 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 163 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 243 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 291 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 318 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 187 | except Exception: |
| LOW | test/compat/test_paddle_cuda_apis.py | 332 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 350 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 369 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 390 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 408 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 430 | except Exception as e: |
| LOW | test/compat/test_paddle_cuda_apis.py | 451 | except Exception as e: |
| LOW | test/ir/inference/auto_scan_test.py | 359 | except Exception as e: |
| LOW | test/ir/inference/auto_scan_test.py | 604 | except Exception as e: |
| LOW | test/ir/inference/auto_scan_test.py | 1116 | except Exception as e: |
| LOW | test/ir/inference/auto_scan_test.py | 1215 | except Exception as e: |
| LOW | test/collective/test_gen_nccl_id_op.py | 77 | except Exception as e: |
| MEDIUM | test/collective/test_gen_nccl_id_op.py | 74 | def setUp(self): |
| LOW | …ollective/multinode/mn_dygraph_group_sharded_stage3.py | 318 | except Exception as e: |
| LOW | test/collective/fleet/test_auto_checkpoint.py | 268 | except Exception as e: |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 521 | except Exception as e: |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 536 | except Exception as e: |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 551 | except Exception as e: |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 566 | except Exception as e: |
| LOW | …ollective/fleet/hybrid_parallel_sharding_muon_model.py | 582 | except Exception as e: |
| LOW | …llective/fleet/dygraph_group_sharded_stage2_offload.py | 125 | except Exception as e: |
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 192 | except Exception: |
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 263 | except Exception: |
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 288 | except Exception: |
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 301 | except Exception: |
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 314 | except Exception: |
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 325 | except Exception: |
| LOW | test/ai_edited_test/test_ai_layer_gen.py | 334 | except Exception: |
| 357 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | …lective/fleet/test_fleet_tensor_parallel_extra_sync.py | 144 | paddle.distributed.fleet.utils.tensor_parallel_utils.add_extra_synchronization( |
| CRITICAL | test/collective/fleet/test_zero_bubble_utils.py | 129 | paddle.base.framework.core.eager.Tensor( |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 57 | \tat org.apache.hadoop.util.FileSystemUtil.throwException(FileSystemUtil.java:164) |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 58 | \tat org.apache.hadoop.util.FileSystemUtil.dealWithResponse(FileSystemUtil.java:118) |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 59 | \tat org.apache.hadoop.lite.client.LiteClientImpl.getFileStatus(LiteClientImpl.java:696) |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 60 | \tat org.apache.hadoop.fs.LibDFileSystemImpl.getFileStatus(LibDFileSystemImpl.java:297) |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 61 | \tat org.apache.hadoop.fs.LiteFileSystem.getFileStatus(LiteFileSystem.java:514) |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 62 | \tat org.apache.hadoop.fs.FsShell.test(FsShell.java:1092) |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 63 | \tat org.apache.hadoop.fs.FsShell.run(FsShell.java:2285) |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 64 | \tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 65 | \tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) |
| CRITICAL | test/collective/fleet/test_hdfs1.py | 66 | \tat org.apache.hadoop.fs.FsShell.main(FsShell.java:2353) |
| CRITICAL | test/legacy_test/test_fleet_runtime.py | 24 | base = paddle.distributed.fleet.runtime.runtime_base.RuntimeBase() |
| CRITICAL | test/legacy_test/test_dist_base.py | 103 | role = paddle.distributed.fleet.base.role_maker.PaddleCloudRoleMaker( |
| CRITICAL | python/paddle/nn/layer/conv.py | 887 | return paddle.distributed.auto_parallel.ring_conv.RingConv2d.apply( |
| CRITICAL | python/paddle/nn/functional/sdpa.py | 551 | out = paddle.distributed.auto_parallel.ring_attention.RingFlashAttention.apply( |
| CRITICAL | python/paddle/distributed/auto_parallel/moe_utils.py | 118 | dims_mapping = paddle.distributed.auto_parallel.static.utils.convert_to_dims_mapping( |
| CRITICAL | python/paddle/distributed/ps/the_one_ps.py | 986 | table_proto = self.ps_desc.worker_param.downpour_worker_param.downpour_table_param.add() |
| CRITICAL | python/paddle/distributed/ps/the_one_ps.py | 988 | table_proto = self.ps_desc.server_param.downpour_server_param.downpour_table_param.add() |
| CRITICAL | python/paddle/distributed/ps/the_one_ps.py | 1001 | table_proto = self.ps_desc.server_param.downpour_server_param.downpour_table_param.add() |
| CRITICAL | …e/distributed/fleet/meta_parallel/zero_bubble_utils.py | 85 | weight.main_grad = paddle.base.framework.core.eager.Tensor( |
| 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") |
| 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") |
| CRITICAL | …thon/paddle/incubate/distributed/utils/io/dist_save.py | 113 | >>> paddle.incubate.distributed.utils.io.save( |
| CRITICAL | …thon/paddle/incubate/distributed/utils/io/dist_save.py | 118 | >>> paddle.incubate.distributed.utils.io.save( |
| 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 |
| CRITICAL | …le/incubate/distributed/models/moe/gate/gshard_gate.py | 81 | topk_idx = paddle.distributed.models.moe.utils._random_routing( |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 279 | table.accessor.sparse_commonsgd_param.naive.weight_bounds.extend( |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 283 | table.accessor.sparse_commonsgd_param.naive.weight_bounds.extend( |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 297 | table.accessor.sparse_commonsgd_param.adagrad.weight_bounds.extend( |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 301 | table.accessor.sparse_commonsgd_param.adagrad.weight_bounds.extend( |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 321 | table.accessor.sparse_commonsgd_param.adam.weight_bounds.extend( |
| CRITICAL | …ubate/distributed/fleet/parameter_server/pslib/node.py | 325 | table.accessor.sparse_commonsgd_param.adam.weight_bounds.extend( |
| CRITICAL | python/paddle/jit/dy2static/program_translator.py | 1790 | >>> paddle.jit.dy2static.program_translator.ProgramTranslator.get_instance() |
| CRITICAL | python/paddle/jit/dy2static/pir_partial_program.py | 383 | paddle.distributed.auto_parallel.static.mix_to_dist_pass.apply_mix2dist_pass( |
| CRITICAL | python/paddle/jit/dy2static/pir_partial_program.py | 389 | paddle.distributed.auto_parallel.static.mix_to_dist_pass.apply_mix2dist_pass( |
| CRITICAL | python/paddle/jit/dy2static/pir_partial_program.py | 392 | paddle.distributed.auto_parallel.static.pir_pass.apply_partition_pass( |
| CRITICAL | python/paddle/jit/dy2static/pir_partial_program.py | 395 | paddle.distributed.auto_parallel.static.pir_pass.ReshardPasses.apply_reshard_pass( |
| CRITICAL | python/paddle/jit/dy2static/pir_partial_program.py | 399 | paddle.distributed.auto_parallel.static.pir_pass.remove_unuseful_comm_op_pass( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/gen_tensor_stub.py | 263 | '# This file is auto generated by `tools/gen_tensor_stub.py`.\n\n' |
| MEDIUM | tools/gen_ut_cmakelists.py | 550 | cmds = """# This file is generated by ${PADDLE_ROOT}/tools/gen_ut_cmakelists.py. |
| MEDIUM | test/compat/test_event_stream_apis.py | 168 | # Create a tensor to ensure some work is done |
| MEDIUM | test/compat/test_event_stream_apis.py | 320 | # Create a stream for work execution |
| MEDIUM | test/ir/inference/test_trt_explicit_quantization.py | 82 | # Define the inference program |
| MEDIUM | test/ir/inference/test_trt_explicit_quantization.py | 147 | # Define the inference program |
| MEDIUM | test/collective/fleet/hybrid_parallel_pp_layers.py | 332 | # Create a generator that yields (input, label) pairs |
| MEDIUM | test/ai_edited_test/test_ai_embedding_onehot.py | 120 | # Create a weight matrix where some rows have norm > max_norm |
| MEDIUM | test/ai_edited_test/test_ai_nn_utils.py | 106 | # Create a new vector of the right size |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_performance.py | 52 | # Create a fixed compute tensor for matmul. |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_performance.py | 91 | # Create a fixed tensor with known values using linspace. |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_performance.py | 110 | # Create a fixed source tensor with all elements equal to 3.14. |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_performance.py | 114 | # Create a destination tensor on CPU (pinned memory) initialized to zeros. |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_performance.py | 148 | # Create a large tensor (~100MB) on XPU. |
| MEDIUM | test/xpu/test_xpu_async_offload_reload_loadtest.py | 50 | # Create a large tensor on XPU. |
| MEDIUM | test/xpu/test_xpu_async_offload_reload.py | 50 | # Create a fixed compute tensor for matmul |
| MEDIUM | test/xpu/test_xpu_async_offload_reload.py | 89 | # Create a fixed tensor with known values using linspace. |
| MEDIUM | test/xpu/test_xpu_async_offload_reload.py | 108 | # Create a fixed source tensor with all elements equal to 3.14. |
| MEDIUM | test/xpu/test_xpu_async_offload_reload.py | 114 | # Create a destination tensor on CPU (pinned memory) initialized to zeros. |
| MEDIUM | test/xpu/test_xpu_pinned_memory.py | 37 | # Create a sample numpy array. |
| MEDIUM | test/xpu/test_xpu_pinned_memory.py | 40 | # Create an XPU pinned memory place using the same interface as GPU pinned memory. |
| MEDIUM | test/xpu/test_xpu_pinned_memory.py | 43 | # Create a tensor in XPU pinned memory. |
| MEDIUM | test/xpu/test_xpu_pinned_memory.py | 60 | # Create a sample numpy array. |
| MEDIUM | test/xpu/test_xpu_pinned_memory.py | 63 | # Create a tensor on an XPU device. |
| MEDIUM | test/xpu/test_xpu_share_memory.py | 94 | # Create a Queue to send the IPC metadata. |
| MEDIUM | test/legacy_test/test_tensor_requires_grad.py | 82 | # Create a parameter - Parameters have stop_gradient=False by default (trainable) |
| MEDIUM | test/legacy_test/test_tensor_requires_grad.py | 282 | # Create a parameter - Parameters have stop_gradient=False by default (trainable) |
| MEDIUM | test/legacy_test/test_sdpa_kernel.py | 135 | # Create a mask |
| MEDIUM | test/legacy_test/test_interp_recompute_scale_factor.py | 491 | # Create a scalar tensor with empty shape [] |
| MEDIUM | test/legacy_test/test_cuda_graph.py | 210 | # Create a new input buffer and replace the pointer |
| MEDIUM | test/legacy_test/ernie_utils/top2_gate.py | 666 | # Create a mask for 1st's expert per token |
| MEDIUM | test/legacy_test/ernie_utils/top2_gate.py | 680 | # Create a mask for 2nd's expert per token using Gumbel-max trick |
| MEDIUM | test/auto_parallel/test_dist_tensor.py | 69 | # Create a dist_attr |
| 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 |
| MEDIUM | test/tensorrt/test_converter_model_bert.py | 46 | # Create a TensorRTConfig with inputs as a required field. |
| MEDIUM | test/tensorrt/test_converter_model_dummy.py | 45 | # Create a TensorRTConfig with inputs as a required field. |
| MEDIUM | test/tensorrt/test_converter_model_dummy.py | 86 | # Create a TensorRTConfig with inputs as a required field. |
| MEDIUM | test/tensorrt/test_converter_model_resnet50_move.py | 67 | # Create a TensorRTConfig with inputs as a required field. |
| MEDIUM | test/tensorrt/test_converter_model_resnet50.py | 72 | # Create a TensorRTConfig with inputs as a required field. |
| MEDIUM | test/tensorrt/test_converter_model_resnet50.py | 119 | # Create a TensorRTConfig with inputs as a required field. |
| MEDIUM | test/tensorrt/test_converter_model_resnet50.py | 175 | # Create a TensorRTConfig with inputs as a required field. |
| MEDIUM | test/tensorrt/test_converter_model_resnet50.py | 269 | # Create a TensorRTConfig with inputs as a required field. |
| MEDIUM | test/tensorrt/test_export.py | 151 | # Create a TensorRTConfig with inputs as a required field. |
| MEDIUM | test/tensorrt/test_export.py | 162 | # Create a config for inference. |
| MEDIUM | test/sot/test_24_exceptions.py | 42 | # This function is designed to test scenarios involving only the `raise` statement. |
| MEDIUM | python/paddle/reader/decorator.py | 392 | >>> # Create a buffered reader, and the buffer size is 2. |
| MEDIUM | python/paddle/compat/proxy.py | 367 | # Create a new module object that will act as the "torch..." module. |
| MEDIUM | python/paddle/compat/nn/__init__.py | 520 | >>> # Define the linear layer. |
| MEDIUM | python/paddle/nn/layer/common.py | 169 | >>> # Define the linear layer. |
| MEDIUM | python/paddle/optimizer/adagrad.py | 239 | # Create the adagrad optimizer op |
| MEDIUM | python/paddle/optimizer/adadelta.py | 234 | # Create the adadelta optimizer op |
| 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) |
| MEDIUM | …paddle/distributed/transpiler/distribute_transpiler.py | 1350 | # Create a union-find data structure from optimize ops, |
| MEDIUM | …paddle/distributed/transpiler/distribute_transpiler.py | 2784 | # Create a unit find data struct by optimize ops |
| MEDIUM | …paddle/distributed/flex_checkpoint/dcp/reshard_comm.py | 102 | # Create a new ReadItem with combined dst_ranks |
| MEDIUM | python/paddle/distributed/auto_parallel/api.py | 820 | >>> # Create a distributed attribute |
| MEDIUM | python/paddle/distributed/fleet/layers/mpu/random.py | 30 | # This file is inspired by Megatron to control random states for MP: |
| MEDIUM | …buted/fleet/meta_parallel/parallel_layers/pp_layers.py | 283 | # This method is used to unify codes in _build_layer_impl. |
| MEDIUM | python/paddle/cuda/__init__.py | 544 | >>> # Create a tensor to allocate memory |
| MEDIUM | python/paddle/distribution/normal.py | 100 | >>> # Define a single scalar Normal distribution. |
| 33 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 82 | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 84 | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 86 | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 88 | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 89 | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 100 | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 101 | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 105 | |
| MEDIUM | test/standalone_executor/test_standalone_executor.py | 106 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 112 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 113 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 114 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 135 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 136 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 157 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 158 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 159 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 180 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 181 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 222 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_group_norm.py | 223 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_sub_graph.py | 129 | |
| MEDIUM | test/ir/pir/cinn/test_cinn_sub_graph.py | 132 | |
| MEDIUM | …t/ir/pir/cinn/symbolic/test_sub_graph_chatglm2_5_st.py | 114 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 130 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 131 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 132 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 133 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 134 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 135 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 136 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 137 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 138 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 147 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 148 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 153 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 157 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 158 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 159 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 160 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 161 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 162 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 163 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 164 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 165 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 168 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 169 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 178 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 181 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 186 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 190 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 191 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 192 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 193 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 194 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 195 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 206 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 210 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 211 | |
| MEDIUM | test/custom_runtime/process_group_xccl.py | 212 | |
| 34 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/dockerfile/build_scripts/build.sh | 92 | # So let's just use the same one pip and everyone uses |
| LOW | test/ir/inference/test_onednn_prelu_op.py | 44 | # not valid case, just return 0 |
| LOW | test/ir/inference/test_onednn_prelu_op.py | 56 | # not valid case, just return 0 |
| LOW | test/xpu/process_group_bkcl.py | 83 | # XPU don't support event query by now, so just use sync op here |
| MEDIUM | test/legacy_test/test_cos.py | 136 | """Test float32 cos with large shape for comprehensive coverage. |
| MEDIUM | test/legacy_test/test_cos.py | 149 | """Test float64 cos with large shape for comprehensive coverage. |
| LOW | test/legacy_test/test_eager_tensor.py | 2154 | # just return self |
| 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. |
| MEDIUM | test/legacy_test/test_einsum_v2.py | 235 | # self.sample = {"paradigm": "i->iii", "data": ["x"]} |
| MEDIUM | test/legacy_test/test_einsum_v2.py | 239 | # self.sample = {"paradigm": "i...->i...i", "data": ["S"]} |
| MEDIUM | test/legacy_test/test_pow.py | 501 | """Test float32 pow with large shape on CPU for comprehensive coverage.""" |
| MEDIUM | test/legacy_test/test_pow.py | 513 | """Test float64 pow with large shape on CPU for comprehensive coverage.""" |
| MEDIUM | test/legacy_test/test_exp.py | 137 | """Test float32 exp with large shape for comprehensive coverage. |
| MEDIUM | test/legacy_test/test_exp.py | 149 | """Test float64 exp with large shape for comprehensive coverage. |
| MEDIUM | test/legacy_test/test_pylayer_clear_dataptr.py | 361 | # confirming the erase path is robust against missing entries. |
| MEDIUM | test/legacy_test/test_sin.py | 136 | """Test float32 sin with large shape for comprehensive coverage. |
| MEDIUM | test/legacy_test/test_sin.py | 149 | """Test float64 sin with large shape for comprehensive coverage. |
| LOW | python/paddle/distributed/parallel.py | 1116 | # here just set correctly place to users |
| 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 |
| LOW | python/paddle/distributed/auto_parallel/api.py | 349 | # None calc rank, just return no init. |
| LOW | python/paddle/distributed/auto_parallel/api.py | 515 | # just use the local shape to calculate the global shape |
| MEDIUM | …n/paddle/distributed/auto_parallel/pipelining/stage.py | 953 | # A more robust interface implementation is desired in the future. |
| LOW | …addle/distributed/auto_parallel/static/dist_context.py | 916 | # here we just set there process_mesh to the first one. |
| LOW | …thon/paddle/distributed/auto_parallel/static/engine.py | 1171 | # so, just return here and need to reimplement the logics below |
| LOW | …e/distributed/auto_parallel/static/operators/common.py | 311 | # For now, just return the first compatible impl |
| MEDIUM | …e/distributed/auto_parallel/static/operators/common.py | 479 | # TODO utilize the batch_dim attr instead of "0" in future |
| LOW | …e/distributed/fleet/meta_parallel/pipeline_parallel.py | 3367 | # else just return logits without loss func calc |
| LOW | …e/distributed/fleet/meta_parallel/pipeline_parallel.py | 3717 | # else just return logits without loss func calc |
| LOW | …e/distributed/fleet/meta_parallel/pipeline_parallel.py | 4174 | # else just return logits without loss func calc |
| MEDIUM | …buted/fleet/meta_parallel/parallel_layers/pp_layers.py | 723 | # Set color for shared parameters to facilitate synchronization of parameters |
| LOW | …buted/fleet/meta_parallel/parallel_layers/pp_layers.py | 971 | # For 1f1b scheduler, just use run_function list |
| LOW | python/paddle/io/dataloader/flat.py | 140 | # simply return structure |
| LOW | python/paddle/utils/dlpack.py | 265 | # Old versions just call the converter |
| LOW | python/paddle/incubate/jit/inference_decorator.py | 618 | # if function has already been decorated by @paddle.incubate.jit.inference(), then we just return it. |
| LOW | python/paddle/jit/dy2static/convert_operators.py | 478 | # IfExpr will return a non-None return value, so we just return ret. |
| LOW | python/paddle/jit/dy2static/partial_program.py | 1132 | # can't just create a new program, we need copy the vardesc. |
| MEDIUM | python/paddle/jit/sot/utils/envs.py | 168 | # Enable information collection flags to facilitate debugging and analysis |
| LOW | …e/jit/sot/opcode_translator/executor/function_graph.py | 903 | # just set it back in SIR, and return outputs to replace tensor meta (it might changes?) |
| LOW | …t/sot/opcode_translator/executor/variables/callable.py | 269 | # do nothing. just return None. |
| MEDIUM | ci/coverage_gcda_clean.py | 90 | # modified to make it more robust |
| MEDIUM | paddle/cinn/ir/ir.h | 1009 | // TODO(liujinnan): Essentially IterExpr is not IndexExpr, so it does not |
| MEDIUM | paddle/cinn/hlir/framework/pir/broadcast_with_cf.h | 26 | // eliminated, and we utilize broadcast shape conditions to determine which |
| MEDIUM | paddle/fluid/pybind/slice_utils.h | 290 | // _PySlice_GetIndices. Try to use _PySlice_Unpack which is more robust than |
| MEDIUM | paddle/phi/backends/gpu/cuda/cuda_graph.h | 109 | // utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup. |
| MEDIUM | paddle/phi/backends/gpu/rocm/hip_graph.h | 111 | // utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup. |
| MEDIUM | paddle/phi/backends/onednn/onednn_reuse.h | 1041 | // rare shapes. By extending the shape to utilize oneDNN optimized binary |
| MEDIUM | paddle/phi/backends/custom/cuda_graph.h | 113 | // utilize the `cudaGraphExecKernelNodeSetParams` function for parameter setup. |
| LOW | paddle/phi/api/generator/dist_api_gen.py | 2024 | # InferSPMD rules, just set replicated dist_attr for them. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| 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) |
| 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'] |
| 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 |
| 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'] |
| 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) |
| 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'] |
| LOW | python/paddle/optimizer/muon.py | 551 | # Step 1: Momentum update |
| LOW | python/paddle/optimizer/muon.py | 562 | # Step 2: Reshape update buffer to 2D matrix. |
| LOW | python/paddle/optimizer/muon.py | 581 | # Step 3: Newton-Schulz orthogonalisation |
| LOW | …paddle/distributed/flex_checkpoint/dcp/reshard_comm.py | 70 | # Step 1: Group by tensor_name |
| 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 |
| 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 |
| LOW | python/paddle/distributed/auto_parallel/ring_conv.py | 629 | # Step 1: Reconstruct `in_tensor_augmented` (original input to local conv in forward) |
| 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 |
| LOW | python/paddle/distributed/auto_parallel/ring_conv.py | 666 | # Step 3: Local backward computation using augmented/padded tensors |
| LOW | python/paddle/distributed/auto_parallel/ring_conv.py | 672 | # Step 4: Aggregate "halo" regions for grad_input |
| 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 |
| 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 |
| 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 |
| 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 |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 899 | # Step 1: Set the annotated process meshes from tensors to the first ops using them |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 936 | # Step 2: set the process meshes of ops with the nearest op before them |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 969 | # Step 3: adjust the process meshes for special ops |
| LOW | …/paddle/distributed/auto_parallel/static/completion.py | 972 | # Step 4: adjust the process meshes between graphs |
| LOW | …thon/paddle/distributed/auto_parallel/static/engine.py | 517 | # Step 1: find the reader ops |
| LOW | …thon/paddle/distributed/auto_parallel/static/engine.py | 522 | # Step 2: insert the new reader ops to cpp |
| LOW | …thon/paddle/distributed/auto_parallel/static/engine.py | 536 | # Step 3: insert the new reader ops to python |
| LOW | …thon/paddle/distributed/auto_parallel/static/engine.py | 541 | # Step 4: remove the old reader ops from python and cpp |
| LOW | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 712 | # Step 1: nF0 |
| LOW | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 717 | # Step 2: nF0F1 |
| LOW | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 730 | # Step 3: nB1W1F1 (Use zero bubble) |
| LOW | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 797 | # Step 5: nB1F1B0 |
| LOW | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 803 | # Step 6: nB1B0 (The second half of the passes use zero bubble) |
| LOW | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 814 | # Step 7: nWB0 (Use zero bubble) |
| LOW | …on/paddle/distributed/fleet/meta_parallel/dualpipev.py | 820 | # Step 8: nW |
| LOW | paddle/fluid/imperative/layout_transformer.h | 185 | // Step 1: Adjust the data_layout attr to the desired layout |
| LOW | paddle/fluid/imperative/layout_transformer.h | 205 | // Step 2: Transpose the specified input for Op and set the transposed var's |
| LOW | paddle/fluid/imperative/layout_transformer.h | 219 | // Step 3: Set the Op's layout sensitive outs var. |
| LOW | paddle/phi/kernels/impl/slice_kernel_impl.h | 36 | // Step 1: Get the accurate attribute value of starts and ends |
| LOW | paddle/phi/kernels/impl/slice_kernel_impl.h | 39 | // Step 2: Compute output |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 107 | // Step 1: Set the value of out at `_index` to zero |
| 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 |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 172 | // Step 3: Set out tensor with value_tensor |
| LOW | paddle/phi/kernels/impl/lu_kernel_impl.h | 275 | // Step 2: Compute output |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2134 | // Step 1: Convert var -> rstd |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2152 | // Step 2: Compute dX using vectorized or non-vectorized kernel |
| LOW | paddle/phi/kernels/gpu/rms_norm_cuda_kernel.h | 2193 | // Step 3: Compute dgamma and dbeta |
| LOW | paddle/phi/kernels/funcs/layer_norm_impl.cu.h | 243 | // Step 1: Reduce to calculate mean and var |
| LOW | paddle/phi/kernels/funcs/layer_norm_impl.cu.h | 269 | // Step 2: Calculate y |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/CheckPRTemplate.py | 150 | # Check if involves precision change |
| LOW | tools/CheckPRTemplate.py | 215 | # Check if all required approvers have approved |
| LOW | test/compat/test_device_apis.py | 192 | # Set device to GPU |
| LOW | test/compat/test_device_apis.py | 373 | # Set device to custom device |
| LOW | test/compat/test_device_apis.py | 559 | # Set device to GPU |
| LOW | test/compat/test_device_apis.py | 631 | # Set device to custom device |
| LOW | test/compat/test_paddle_cuda_apis.py | 49 | # Check if we should skip all tests |
| LOW | test/ipu/op_test_ipu.py | 76 | # Check if ipumodel mode is enabled |
| LOW | test/ir/pir/fused_pass/test_pir_horizontal_fuse_pass.py | 219 | # Assign results to the program |
| LOW | test/ai_edited_test/test_ai_moe_permute.py | 196 | # Assign tokens to experts |
| LOW | test/ai_edited_test/test_ai_random_state.py | 59 | # Set device to CPU to ensure random numbers are generated on CPU |
| LOW | test/legacy_test/test_tensor_fill_diagonal_.py | 296 | # Check if diagonal elements are updated correctly |
| LOW | test/legacy_test/test_tensor_fill_diagonal_.py | 299 | # Check if off-diagonal elements remain 0 |
| LOW | test/legacy_test/test_eager_tensor.py | 569 | False # Set stop_gradient to be False, supported auto-grad |
| LOW | test/legacy_test/test_sequential.py | 52 | # Check if layer names are preserved in order |
| LOW | test/legacy_test/test_sequential.py | 57 | # Check if layers can be accessed by name |
| LOW | test/legacy_test/test_mean_op_v1.py | 28 | # Check if we're using XPU |
| LOW | test/legacy_test/test_mean_op_v1.py | 33 | # Check if we're using OneDNN |
| LOW | test/legacy_test/test_fused_act_dequant_op.py | 201 | # Check if s needs to be expanded to match x shape |
| LOW | test/legacy_test/test_compat_nn_linear.py | 442 | # Check if weights are the same |
| LOW | test/legacy_test/test_executor_and_use_program_cache.py | 44 | # Set parallel to False to use the default executor. |
| LOW | test/legacy_test/test_narrow.py | 60 | # Check if they both changed to test_val (alias) |
| LOW | test/legacy_test/test_tensor_type_convert_api.py | 139 | # Check if conversion method exists |
| LOW | test/legacy_test/test_tensor_type_convert_api.py | 220 | # Check if the method exists |
| LOW | test/legacy_test/test_nn_functional_interpolate.py | 248 | # Check if grad is not all zeros (it shouldn't be) |
| LOW | test/dygraph_to_static/check_approval.py | 135 | # Check if the test class inherits from unittest.TestCase |
| LOW | python/paddle/nn/functional/pooling.py | 655 | # Check if dilation is non-trivial (not all ones) |
| LOW | python/paddle/nn/functional/pooling.py | 1267 | # Check if dilation is non-trivial (not all ones) |
| LOW | python/paddle/nn/functional/pooling.py | 1457 | # Check if dilation is non-trivial (not all ones) |
| LOW | python/paddle/framework/restricted_unpickler.py | 133 | # Check if class has __dict__ (user-defined classes do) |
| LOW | python/paddle/framework/restricted_unpickler.py | 151 | # Check if this base class defines the dangerous method |
| LOW | python/paddle/distributed/parallel.py | 733 | # Print result in process 1: |
| LOW | python/paddle/distributed/parallel.py | 737 | # Print result in process 2: |
| 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 |
| LOW | …/paddle/distributed/fleet/base/distributed_strategy.py | 346 | # Check if attribute exists in self or in the protobuf strategy object |
| LOW | python/paddle/autograd/backward_utils.py | 721 | # Check if operands_source sizes match |
| LOW | python/paddle/autograd/backward_utils.py | 727 | # Check if op_results size matches operands_source |
| LOW | python/paddle/autograd/backward_utils.py | 751 | # Check if yield_op is indeed a yield operation |
| LOW | python/paddle/autograd/backward_utils.py | 755 | # Check if operands_source size of yield_op matches op_results size of while_op |
| LOW | python/paddle/cuda/__init__.py | 571 | # Check if any device type has been compiled/initialized |
| LOW | python/paddle/cuda/__init__.py | 580 | # Check if any custom device type is compiled/initialized |
| LOW | python/paddle/utils/cpp_extension/cpp_extension.py | 1460 | # Check if dist-info exists |
| LOW | python/paddle/utils/cpp_extension/cpp_extension.py | 1529 | # Check if dist-info exists |
| LOW | python/paddle/tensorrt/register.py | 85 | # Check if the version range includes 'x' (e.g., "8.x") |
| 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. |
| LOW | python/paddle/tensor/creation.py | 2259 | # Check if start/end/step contain floating point values |
| LOW | python/paddle/tensor/einsum.py | 397 | # Check if conditions hold for turning the operation into a matmul |
| LOW | python/paddle/tensor/math.py | 4307 | # Check if the input tensor is of bool type and raise an error |
| LOW | python/paddle/tensor/math.py | 4340 | # Check if the input tensor is of bool type and raise an error |
| LOW | python/paddle/base/executor.py | 2099 | # Check if paddle.static.data() variable no feed data |
| LOW | .github/workflows/cherry-pick.yml | 95 | # Check if target branch exists on remote |
| LOW | .github/workflows/cherry-pick.yml | 161 | # Check if PR already exists |
| LOW | .github/actions/skip-skill/check_skip.sh | 36 | # Check if PR event |
| LOW | .github/actions/skip-skill/check_skip.sh | 65 | # Check if files match ignore patterns |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/gen_alias_mapping.sh | 24 | # Usage: |
| LOW | tools/dockerfile/build-image.sh | 19 | # Usage: |
| LOW | tools/enforce/grep_invalid_enforce.sh | 20 | # Usage: |
| LOW | test/dygraph_to_static/dygraph_to_static_utils.py | 46 | # Usage: |
| LOW | python/paddle/incubate/cc/compiler.py | 33 | # Usage: |
| LOW | python/paddle/incubate/cc/typing.py | 24 | # Usage: |
| LOW | python/paddle/incubate/cc/typing.py | 43 | # Usage: |
| LOW | python/paddle/incubate/cc/typing.py | 59 | # Usage: |
| LOW | paddle/.set_python_path.sh | 19 | # Usage: |
| LOW | …cinn/runtime/custom_device/custom_device_backend_api.h | 102 | /// Usage example: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | python/paddle/paddle_version.py | 56 | # Ideally this should work for most cases by attempting to group |
| MEDIUM | python/paddle/nn/functional/flash_attention.py | 129 | This is a basic implementation of scaled dot product attention composed of |
| MEDIUM | python/paddle/optimizer/lr.py | 257 | # (Note): you can change it for your subclass. |
| MEDIUM | …inn/operator_fusion/pir_graph_analyzing/dim_relation.h | 94 | // Mainly for demonstration purposes, i.e. works but is overly simple |
| 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 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | paddle/cinn/optim/transform_gpu_forloop.h | 83 | * are common in auto-generated code or optimized code paths where |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/legacy_test/test_restricted_unpickler.py | 470 | def helper(): |
| LOW | test/legacy_test/test_matrix_rank_atol_rtol_op.py | 83 | def process_data(self): |