AI Slop Code Risk Monitor

Tencent/ncnn

SlopCodeMonitor badge for Tencent/ncnn Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

ncnn is a high-performance neural network inference framework optimized for the mobile platform

1.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for Tencent/ncnn, a C++ project with 24,014 GitHub stars. SynthScan examined 1,278,952 lines of code across 3904 source files, recording 1495 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 1.2 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.2
Adjusted Signal
1.2
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
24.0K
Stars
C++
Language
1.3M
Lines of Code
3.9K
Files
1.5K
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 3.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 917 finding(s).

Hallucinated Dependency & Supply Chain Risk 2.2/100 · LOW

Are imports declared and package/API names verified? 567 finding(s).

Agent Over-Engineering Ratio 0.4/100 · LOW

Are wrappers, guards, and repeated structures necessary? 65 finding(s).

PR Review Velocity Impact 5.8/100 · LOW

Which changes need focused human review? 1495 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 7MEDIUM 1LOW 1487

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

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

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block827 hits · 820 pts
SeverityFileLineSnippetContext
LOWbenchmark/benchncnn.cpp1// Copyright 2018 TencentCOMMENT
LOWbenchmark/benchncnn_llm.cpp1// Copyright 2026 TencentCOMMENT
LOWbenchmark/RankCards/Rcards.h1// Copyright 2017 TencentCOMMENT
LOWbenchmark/RankCards/Rcards.h21#include <sys/stat.h>COMMENT
LOWbenchmark/RankCards/main.cpp1// Copyright 2017 TencentCOMMENT
LOWtools/modelwriter.h1// Copyright 2019 TencentCOMMENT
LOWtools/modelwriter.h21// ncnn private headerCOMMENT
LOWtools/modelwriter.h41#include "layer/deconvolutiondepthwise1d.h"COMMENT
LOWtools/modelwriter.h61#include "layer/hardsigmoid.h"COMMENT
LOWtools/modelwriter.h81#include "layer/pooling3d.h"COMMENT
LOWtools/modelwriter.h101#include "layer/slice.h"COMMENT
LOWtools/ncnnoptimize.cpp1// Copyright 2019 TencentCOMMENT
LOWtools/ncnn2mem.cpp1// Copyright 2017 TencentCOMMENT
LOWtools/quantize/ncnn2int8.cpp1// Copyright 2019 BUG1989COMMENT
LOWtools/quantize/ncnnllm2table.cpp1// Copyright 2026 TencentCOMMENT
LOWtools/quantize/npy.hpp21*/COMMENT
LOWtools/quantize/imreadwrite.cpp1// Copyright 2021 TencentCOMMENT
LOWtools/quantize/imreadwrite.cpp81COMMENT
LOWtools/quantize/ncnn2table.cpp1// Copyright 2019 BUG1989 (https://github.com/BUG1989/) Long-term support.COMMENT
LOWtools/quantize/ncnn2table.cpp21#include "imreadwrite.h"COMMENT
LOWtools/quantize/ncnnllm2int.cpp1// Copyright 2019 BUG1989COMMENT
LOWtools/onnx/onnx2ncnn.cpp1// Copyright 2017 TencentCOMMENT
LOWtools/mlir/tf_types.h21#include "mlir/IR/BuiltinTypes.h" // from @llvm-projectCOMMENT
LOWtools/mlir/tf_types.h341// - the types are statically equalCOMMENT
LOWtools/mlir/tf_types.h361// If `ty` is a tensor type and its element type has subtypes, then returns aCOMMENT
LOWtools/mlir/tf_dialect.h1// Copyright 2020 TencentCOMMENT
LOWtools/mlir/tf_dialect.cpp1// Copyright 2020 TencentCOMMENT
LOWtools/mlir/tf_dialect.cpp21#include <mlir/IR/Value.h>COMMENT
LOWtools/mlir/tf_dialect.cpp61#define GET_OP_LISTCOMMENT
LOWtools/mlir/mlir2ncnn.cpp1// Copyright 2020 TencentCOMMENT
LOWtools/mlir/tf_attributes.h61COMMENT
LOWtools/caffe/caffe2ncnn.cpp1// Copyright 2017 TencentCOMMENT
LOWtools/pnnx/src/utils.cpp1// Copyright 2021 TencentCOMMENT
LOWtools/pnnx/src/pass_level3.cpp1// Copyright 2021 TencentCOMMENT
LOWtools/pnnx/src/ir.cpp1// Copyright 2021 TencentCOMMENT
LOWtools/pnnx/src/pass_level2.cpp1// Copyright 2021 TencentCOMMENT
LOWtools/pnnx/src/ir.h1// Copyright 2021 TencentCOMMENT
LOWtools/pnnx/src/pass_level1.cpp381 // auto fun_type = function_constant->output()->type()->expect<torch::jit::FunctionType>();COMMENT
LOWtools/pnnx/src/storezip.cpp1// Copyright 2021 TencentCOMMENT
LOWtools/pnnx/src/pass_level5.cpp1// Copyright 2021 TencentCOMMENT
LOWtools/pnnx/src/pass_level5.cpp21#include "pass_level5/eval_expression.h"COMMENT
LOWtools/pnnx/src/pass_level5.cpp41#include "pass_level5/fuse_silu.h"COMMENT
LOWtools/pnnx/src/load_tnn.cpp1// Copyright 2025 TencentCOMMENT
LOWtools/pnnx/src/load_onnx.cpp1// Copyright 2024 TencentCOMMENT
LOWtools/pnnx/src/model_stat.cpp1// Copyright 2026 TencentCOMMENT
LOWtools/pnnx/src/load_torchscript.cpp1// Copyright 2024 TencentCOMMENT
LOWtools/pnnx/src/pass_ncnn.cpp1// Copyright 2021 TencentCOMMENT
LOWtools/pnnx/src/pass_ncnn.cpp21#include "pass_ncnn/convert_Tensor_select.h"COMMENT
LOWtools/pnnx/src/pass_ncnn.cpp41#include "pass_ncnn/fuse_padding_convolutiondepthwise.h"COMMENT
LOWtools/pnnx/src/save_ncnn.cpp301 fwrite(attr.data.data(), attr.data.size(), 1, binfp);COMMENT
LOWtools/pnnx/src/save_ncnn.cpp321 // }COMMENT
LOWtools/pnnx/src/main.cpp1// Copyright 2021 TencentCOMMENT
LOWtools/pnnx/src/main.cpp21#include "pass_level5.h"COMMENT
LOWtools/pnnx/src/pass_onnx.cpp1// Copyright 2024 TencentCOMMENT
LOWtools/pnnx/src/pass_level1/nn_quantized_Linear.cpp41 // for (const auto& n : graph->nodes())COMMENT
LOWtools/pnnx/src/pass_level1/nn_quantized_Linear.cpp101 graph.dump();COMMENT
LOWtools/pnnx/src/pass_level1/nn_quantized_DeQuantize.cpp21 // void write(Operator* op, const TorchGraphProxy& graph, const TorchModuleProxy& mod) constCOMMENT
LOWtools/pnnx/src/pass_level1/nn_quantized_Conv2d.cpp41 // if (n->kind() == c10::prim::GetAttr && n->s(torch::jit::attr::name) == "_packed_params")COMMENT
LOWtools/pnnx/src/pass_level1/nn_quantized_Conv2d.cpp121COMMENT
LOWtools/pnnx/src/pass_level0/shape_inference.cpp1// Copyright 2021 TencentCOMMENT
767 more matches not shown…
Unused Imports567 hits · 567 pts
SeverityFileLineSnippetContext
LOWtools/pnnx/python/setup.py5CODE
LOWtools/pnnx/python/setup.py10CODE
LOWtools/pnnx/python/tests/test_naiveinput_export.py4CODE
LOWtools/pnnx/python/tests/test_naiveinput_export.py10CODE
LOWtools/pnnx/python/tests/test_naiveinput_convert.py4CODE
LOWtools/pnnx/python/tests/test_naiveinput_convert.py10CODE
LOWtools/pnnx/python/tests/test_convert.py4CODE
LOWtools/pnnx/python/tests/test_convert.py10CODE
LOWtools/pnnx/python/tests/test_dynamicinput_export.py4CODE
LOWtools/pnnx/python/tests/test_dynamicinput_export.py10CODE
LOWtools/pnnx/python/tests/test_dynamicinput_convert.py4CODE
LOWtools/pnnx/python/tests/test_dynamicinput_convert.py10CODE
LOWtools/pnnx/python/tests/test_export.py4CODE
LOWtools/pnnx/python/tests/test_export.py10CODE
LOWtools/pnnx/python/pnnx/__init__.py17CODE
LOWtools/pnnx/python/pnnx/__init__.py18CODE
LOWtools/pnnx/python/pnnx/utils/__init__.py4CODE
LOWtools/pnnx/python/pnnx/utils/__init__.py5CODE
LOWtools/pnnx/python/pnnx/utils/export.py5CODE
LOWtools/pnnx/tests/test_nn_LSTM.py6CODE
LOWtools/pnnx/tests/test_torch_matmul.py6CODE
LOWtools/pnnx/tests/test_transformers_electra_attention.py6CODE
LOWtools/pnnx/tests/test_nn_PixelShuffle.py6CODE
LOWtools/pnnx/tests/test_torch_gather.py6CODE
LOWtools/pnnx/tests/test_torch_zeros_like.py6CODE
LOWtools/pnnx/tests/test_nn_LPPool1d.py6CODE
LOWtools/pnnx/tests/test_pnnx_fuse_multiheadattention.py10CODE
LOWtools/pnnx/tests/test_pnnx_fuse_multiheadattention.py10CODE
LOWtools/pnnx/tests/test_torch_imag.py6CODE
LOWtools/pnnx/tests/test_torch_index_select.py6CODE
LOWtools/pnnx/tests/test_nn_Softmax.py6CODE
LOWtools/pnnx/tests/test_torch_rsqrt.py6CODE
LOWtools/pnnx/tests/test_nn_ConvTranspose1d.py6CODE
LOWtools/pnnx/tests/test_transformers_albert_attention.py6CODE
LOWtools/pnnx/tests/test_torch_min.py6CODE
LOWtools/pnnx/tests/test_torch_fft_ihfft.py6CODE
LOWtools/pnnx/tests/test_nn_UpsamplingBilinear2d.py6CODE
LOWtools/pnnx/tests/test_Tensor_new_empty.py6CODE
LOWtools/pnnx/tests/test_transformers_qwen3_attention.py6CODE
LOWtools/pnnx/tests/test_pnnx_eliminate_noop_math.py6CODE
LOWtools/pnnx/tests/test_nn_LPPool2d.py6CODE
LOWtools/pnnx/tests/test_nn_ConvTranspose3d.py6CODE
LOWtools/pnnx/tests/test_torch_stft.py6CODE
LOWtools/pnnx/tests/test_nn_LocalResponseNorm.py6CODE
LOWtools/pnnx/tests/test_torch_full.py6CODE
LOWtools/pnnx/tests/test_torch_bitwise_right_shift.py6CODE
LOWtools/pnnx/tests/test_nn_Hardsigmoid.py6CODE
LOWtools/pnnx/tests/test_Tensor_to.py6CODE
LOWtools/pnnx/tests/test_Tensor_reshape.py6CODE
LOWtools/pnnx/tests/test_torch_mean.py6CODE
LOWtools/pnnx/tests/test_nn_ConvTranspose2d.py6CODE
LOWtools/pnnx/tests/test_torch_istft.py6CODE
LOWtools/pnnx/tests/test_Tensor_new_full.py6CODE
LOWtools/pnnx/tests/test_Tensor_unflatten.py6CODE
LOWtools/pnnx/tests/test_torch_zeros.py6CODE
LOWtools/pnnx/tests/test_Tensor_expand.py6CODE
LOWtools/pnnx/tests/test_torch_fft_ifftn.py6CODE
LOW…ols/pnnx/tests/test_transformers_flaubert_attention.py6CODE
LOWtools/pnnx/tests/test_nn_AlphaDropout.py6CODE
LOWtools/pnnx/tests/test_torch_tensor_split.py6CODE
507 more matches not shown…
Hyper-Verbose Identifiers34 hits · 32 pts
SeverityFileLineSnippetContext
LOWtools/pnnx/README.md345 def load_pnnx_bin_as_parameter(self, archive, key, shape, dtype):CODE
LOWtools/pnnx/tests/test_pnnx_fuse_multiheadattention.py348 def reshape_heads_to_batch_dim(self, tensor, merge_head_and_batch=True):CODE
LOWtools/pnnx/tests/test_pnnx_fuse_multiheadattention.py357 def reshape_batch_dim_to_heads(self, tensor, unmerge_head_and_batch=True):CODE
LOWtools/pnnx/tests/ncnn/test_ncnn_reshape_semantics.py175def test_unsupported_reference():CODE
LOW…ols/pnnx/tests/ncnn/test_ncnn_global_pooling_layout.py239def run_pnnx_without_inputshape(name, net, x):CODE
LOWtools/pnnx/src/ir.cpp1773 fprintf(pyfp, " def load_pnnx_bin_as_parameter(self, archive, key, shape, dtype, requires_grad=True):\n");CODE
LOWpython/tests/test_vulkan_allocator.py63def test_vk_staging_allocator():CODE
LOWpython/tests/test_vulkan_allocator.py90def test_vk_weight_staging_allocator():CODE
LOWpython/tests/test_allocator.py19def test_unlocked_pool_allocator():CODE
LOWpython/tests/test_optional_opencv.py22def test_import_without_opencv():CODE
LOWpython/tests/test_optional_opencv.py75def test_opencv_import_errors_unchanged(monkeypatch, error):STRING
LOWpython/tests/test_optional_opencv.py94def test_opencv_extra_metadata(monkeypatch, filename):STRING
LOWpython/tests/test_extractor.py93def test_extractor_releases_gil():CODE
LOWpython/tests/test_mat.py739def test_from_pixels_roi_resize():CODE
LOWpython/tests/test_mat.py763def test_substract_mean_normalize():CODE
LOWpython/tests/mobile_smoke.py17 def test_import_without_opencv(self):CODE
LOWpython/tests/test_custom_layer_lifetime.py73def test_repeated_net_registration(kind, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py87def test_independent_live_nets(kind, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py110def test_many_layers_in_one_net(kind, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py123def test_callbacks_live_until_net_destruction(kind, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py144def test_extractor_keeps_callbacks_alive(kind, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py165def test_replace_registration_after_clear(kind, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py180def test_rejected_registration_releases_callbacks(index):CODE
LOWpython/tests/test_custom_layer_lifetime.py205def test_re_registration_releases_superseded_callbacks(first, second, type_name, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py227def test_new_named_slot_with_custom_tag_is_rejected(tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py254def test_named_boundary_slots_load_after_replacement(index, replacement, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py278def test_index_registration_tracks_native_extent_for_new_names(index, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py307def test_replacement_failed_and_builtin_registration_preserve_named_extent(tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py334def test_re_registration_retains_only_loaded_callback_owners(kind, tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py375def test_null_creator_does_not_retain_replaced_callbacks():CODE
LOWpython/tests/test_custom_layer_lifetime.py395def test_global_net_interpreter_shutdown(tmp_path):CODE
LOWpython/tests/test_custom_layer_lifetime.py449def test_net_subclass_keeps_long_type_name_stable():STRING
LOWpython/examples/peleenetssd.py10def draw_detection_objects_seg(image, class_names, objects, mat_map):CODE
LOWdocs/developer-guide/kvcache.md77def add_kv_cache_to_ncnn_param(filename):CODE
Cross-File Repetition5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHpython/ncnn/model_zoo/peleenetssd.py0#method 2, use ncnn.mat->numpy.array to get the result, no memory copy too out = np.array(mat_out) for i in range(len(ouSTRING
HIGHpython/ncnn/model_zoo/yolov2.py0#method 2, use ncnn.mat->numpy.array to get the result, no memory copy too out = np.array(mat_out) for i in range(len(ouSTRING
HIGHpython/ncnn/model_zoo/squeezenetssd.py0#method 2, use ncnn.mat->numpy.array to get the result, no memory copy too out = np.array(mat_out) for i in range(len(ouSTRING
HIGHpython/ncnn/model_zoo/mobilenetv2ssdlite.py0#method 2, use ncnn.mat->numpy.array to get the result, no memory copy too out = np.array(mat_out) for i in range(len(ouSTRING
HIGHpython/ncnn/model_zoo/mobilenetssd.py0#method 2, use ncnn.mat->numpy.array to get the result, no memory copy too out = np.array(mat_out) for i in range(len(ouSTRING
Deep Nesting22 hits · 22 pts
SeverityFileLineSnippetContext
LOWtools/pnnx/python/pnnx/utils/convert.py10CODE
LOWtools/pnnx/tests/test_F_interpolate_scale_factor.py50CODE
LOWtools/pnnx/tests/onnx/test_onnx_scalar_constants.py9CODE
LOW…pnnx/tests/ncnn/test_torchaudio_F_spectrogram_batch.py33CODE
LOWtools/pnnx/tests/ncnn/test_ncnn_reshape_semantics.py107CODE
LOW…ols/pnnx/tests/ncnn/test_ncnn_global_pooling_layout.py239CODE
LOWtools/pnnx/tests/ncnn/test_torchaudio_MelSpectrogram.py51CODE
LOWtools/pnnx/tests/ncnn/test_nn_Linear_leading_dims.py19CODE
LOWtools/pnnx/tests/ncnn/test_ncnn_batch_layout.py537CODE
LOWtools/pnnx/tests/ncnn/test_ncnn_batch_layout.py614CODE
LOW…ols/pnnx/tests/ncnn/test_F_interpolate_scale_factor.py54CODE
LOWpython/examples/peleenetssd.py10CODE
LOWpython/ncnn/utils/download.py38CODE
LOWpython/ncnn/model_zoo/yolov7.py23CODE
LOWpython/ncnn/model_zoo/yolov7.py59CODE
LOWpython/ncnn/model_zoo/yolov7.py191CODE
LOWpython/ncnn/model_zoo/retinaface.py190CODE
LOWpython/ncnn/model_zoo/yolact.py188CODE
LOWpython/ncnn/model_zoo/yolov8.py214CODE
LOWpython/ncnn/model_zoo/simplepose.py38CODE
LOWpython/ncnn/model_zoo/model_store.py92CODE
LOWpython/ncnn/model_zoo/yolov5.py263CODE
AI Structural Patterns20 hits · 20 pts
SeverityFileLineSnippetContext
LOWtools/pnnx/python/pnnx/utils/convert.py10CODE
LOWtools/pnnx/python/pnnx/utils/export.py7CODE
LOWtools/pnnx/tests/test_torch_bitwise_right_shift.py15CODE
LOWtools/pnnx/tests/test_torch_bitwise_or.py16CODE
LOWtools/pnnx/tests/test_torch_bitwise_left_shift.py15CODE
LOWtools/pnnx/tests/test_torch_bitwise_and.py16CODE
LOWtools/pnnx/tests/test_torch_bitwise_not.py15CODE
LOWtools/pnnx/tests/test_torch_mv.py13CODE
LOWtools/pnnx/tests/test_Tensor_masked_fill.py15CODE
LOWtools/pnnx/tests/test_torch_bitwise_xor.py16CODE
LOWtools/pnnx/tests/test_torch_logical_or.py16CODE
LOWtools/pnnx/tests/test_torch_logical_and.py16CODE
LOW…x/tests/test_pnnx_fuse_scaled_dot_product_attention.py69CODE
LOWtools/pnnx/tests/test_torch_logical_xor.py16CODE
LOWtools/pnnx/tests/test_torch_logical_not.py15CODE
LOWtools/pnnx/tests/onnx/test_torch_logical_or.py17CODE
LOWtools/pnnx/tests/onnx/test_torch_logical_and.py17CODE
LOWtools/pnnx/tests/onnx/test_torch_logical_xor.py17CODE
LOWtools/pnnx/tests/onnx/test_torch_logical_not.py16CODE
LOWpython/ncnn/model_zoo/squeezenet.py52CODE
Verbosity Indicators6 hits · 11 pts
SeverityFileLineSnippetContext
LOWsrc/layer/loongarch/loongarch_usability.h914 // Step 1: 32-bit word interleaveCOMMENT
LOWsrc/layer/loongarch/loongarch_usability.h928 // Step 2: 64-bit doubleword interleaveCOMMENT
LOWsrc/layer/loongarch/loongarch_usability.h942 // Step 3: cross-lane 128-bit permuteCOMMENT
LOW⚡src/layer/loongarch/loongarch_usability.h994 // Step 1: lane-wise word interleaveCOMMENT
LOW⚡src/layer/loongarch/loongarch_usability.h1000 // Step 2: lane-wise doubleword interleaveCOMMENT
LOW⚡src/layer/loongarch/loongarch_usability.h1006 // Step 3: cross-lane 128-bit permuteCOMMENT
Structural Annotation Overuse6 hits · 11 pts
SeverityFileLineSnippetContext
LOWsrc/layer/loongarch/loongarch_usability.h914 // Step 1: 32-bit word interleaveCOMMENT
LOWsrc/layer/loongarch/loongarch_usability.h928 // Step 2: 64-bit doubleword interleaveCOMMENT
LOWsrc/layer/loongarch/loongarch_usability.h942 // Step 3: cross-lane 128-bit permuteCOMMENT
LOW⚡src/layer/loongarch/loongarch_usability.h994 // Step 1: lane-wise word interleaveCOMMENT
LOW⚡src/layer/loongarch/loongarch_usability.h1000 // Step 2: lane-wise doubleword interleaveCOMMENT
LOW⚡src/layer/loongarch/loongarch_usability.h1006 // Step 3: cross-lane 128-bit permuteCOMMENT
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtools/pnnx/python/pnnx/__init__.py23except Exception:CODE
HIGHpython/ncnn/model_zoo/model_store.py179except AttributeError:CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsetup.py208 # Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build levelCOMMENT
LOWtools/pnnx/python/setup.py105 # Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build levelCOMMENT
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtools/pnnx/python/pnnx/__init__.py23except Exception:CODE
MEDIUMdocs/developer-guide/kvcache.md86 print(f"Error: The file '{filename}' was not found.")CODE
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpython/ncnn/model_zoo/model_zoo.py24__all__ = ["get_model", "get_model_list"]CODE
LOWpython/ncnn/model_zoo/model_store.py7__all__ = ["get_model_file", "purge"]CODE