High-efficiency floating-point neural network inference operators for mobile, server, and Web
This report presents the forensic synthetic code analysis of google/XNNPACK, a C project with 2,437 GitHub stars. SynthScan v2.0 examined 2,534,738 lines of code across 9637 source files, recording 10323 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 4.1 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 10323 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bench/utils.h | 1 | // Copyright 2019-2025 Google LLC | COMMENT |
| LOW | bench/gemm.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | bench/dconv.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | bench/f16-gemm-minmax.c | 1 | // clang-format off | COMMENT |
| LOW | bench/packw-benchmark.h | 1 | // Copyright 2023-2025 Google LLC | COMMENT |
| LOW | bench/dwconv.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | bench/packq-benchmark.h | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | bench/gemm-benchmark.h | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | bench/conv.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | bench/subgraph/simple_scheduler.h | 1 | // Copyright 2025 Google LLC | COMMENT |
| LOW | tools/generate-ibilinear-test.py | 281 | raise ValueError("expected a list of micro-kernels in the spec") | COMMENT |
| LOW | tools/generate-reduce-discontiguous-test.py | 441 | // Copyright 2024 Google LLC | COMMENT |
| LOW | tools/generate-argmaxpool-test.py | 661 | // This source code is licensed under the BSD-style license found in the | COMMENT |
| LOW | tools/generate-vunary-test.py | 281 | COMMENT | |
| LOW | tools/generate-conv-hwc-test.py | 481 | with codecs.open(options.spec, "r", encoding="utf-8") as spec_file: | COMMENT |
| LOW | tools/generate-ibilinear-chw-test.py | 201 | with codecs.open(options.spec, "r", encoding="utf-8") as spec_file: | COMMENT |
| LOW | tools/generate-reduce-test.py | 241 | }[options.tester] | COMMENT |
| LOW | tools/generate-dwconv-test.py | 261 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | tools/generate-gemm-test.py | 941 | COMMENT | |
| LOW | tools/generate-gemm-test.py | 961 | COMMENT | |
| LOW | tools/generate-gemm-test.py | 981 | benches = """\ | COMMENT |
| LOW | test/maxpool-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/conv-hwc2chw-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/unary-ops.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/unary-ops.h | 21 | #include "src/xnnpack/common.h" | COMMENT |
| LOW | test/unpool-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/lut-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/conv-hwc-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/vcmul-microkernel-tester.h | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | test/f16-conv-hwc2chw.yaml | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | test/packq-microkernel-tester.h | 1 | // Copyright 2024 Google LLC | COMMENT |
| LOW | test/replicable_random_device.h | 1 | // Copyright 2024 Google LLC | COMMENT |
| LOW | test/dwconv-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/dwconv2d-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/vunary-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/vunary-microkernel-tester.h | 21 | COMMENT | |
| LOW | test/raddstoreexpminusmax-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/ibilinear-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/packw-microkernel-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/pack-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/vmulcaddc-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/packb-microkernel-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/argmaxpool-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/raddexpminusmax-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/f32-argmaxpool.yaml | 1 | # Copyright 2019 Google LLC | COMMENT |
| LOW | test/gemm-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/vbinary-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/operators/transpose-normalization-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/operators/resize-bilinear-operator-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/operators/max-pooling-operator-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/operators/slice-normalization-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/operators/unpooling-operator-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/operators/transpose-operator-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/operators/slice-operator-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/operators/depth-to-space-operator-tester.h | 1 | // Copyright 2020 Google LLC | COMMENT |
| LOW | test/operators/argmax-pooling-operator-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/operators/rope-operator-tester.h | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | test/operators/fully-connected-operator-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/operators/fully-connected-operator-tester.h | 21 | COMMENT | |
| LOW | test/operators/deconvolution-operator-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| 10090 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/generate-dwconv2d-chw-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-raddstoreexpminusmax-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-ibilinear-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-raddexpminusmax-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-reduce-discontiguous-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-argmaxpool-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-conv-hwc2chw-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-conv-hwc-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-ibilinear-chw-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-reduce-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-lut-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | int32x4_t c_{i}_{j+0} = vdupq_n_s32(0); int32x4_t c_{i}_{j+2} = vdupq_n_s32(0); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | int32x4_t c_{i}_{j+0} = vdupq_n_s32(0); int32x4_t c_{i}_{j+2} = vdupq_n_s32(0); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | int32x4_t c_{i}_{j+0} = vdupq_n_s32(0); int32x4_t c_{i}_{j+2} = vdupq_n_s32(0); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | c_{i}_{j+0} = vmmlaq_s32(c_{i}_{j+0}, a_{i}_{k}, b_{k}_{j+0}); c_{i}_{j+2} = vmmlaq_s32(c_{i}_{j+2}, a_{i}_{k}, b_{k}_{j | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | c_{i}_{j+0} = vmmlaq_s32(c_{i}_{j+0}, a_{i}_{k}, b_{k}_{j+0}); c_{i}_{j+2} = vmmlaq_s32(c_{i}_{j+2}, a_{i}_{k}, b_{k}_{j | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | c_{i}_{j+0} = vmmlaq_s32(c_{i}_{j+0}, a_{i}_{k}, b_{k}_{j+0}); c_{i}_{j+2} = vmmlaq_s32(c_{i}_{j+2}, a_{i}_{k}, b_{k}_{j | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | c_{i+0}_{j} = vaddq_s32(c_{i+0}_{j}, vld1q_s32({self.c_in_ptr(i+0, j)})); c_{i+1}_{j} = vaddq_s32(c_{i+1}_{j}, vld1q_s32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | c_{i+0}_{j} = vaddq_s32(c_{i+0}_{j}, vld1q_s32({self.c_in_ptr(i+0, j)})); c_{i+1}_{j} = vaddq_s32(c_{i+1}_{j}, vld1q_s32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | c_{i+0}_{j} = vaddq_s32(c_{i+0}_{j}, vld1q_s32({self.c_in_ptr(i+0, j)})); c_{i+1}_{j} = vaddq_s32(c_{i+1}_{j}, vld1q_s32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | vst1q_s32({self.c_out_ptr(i+1, j)}, c_{i+1}_{j}); vst1q_s32({self.c_out_ptr(i+0, j)}, c_{i+0}_{j}); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | vst1q_s32({self.c_out_ptr(i+1, j)}, c_{i+1}_{j}); vst1q_s32({self.c_out_ptr(i+0, j)}, c_{i+0}_{j}); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | vst1q_s32({self.c_out_ptr(i+1, j)}, c_{i+1}_{j}); vst1q_s32({self.c_out_ptr(i+0, j)}, c_{i+0}_{j}); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | int32x4_t c_{i+1}_{j} = vcombine_s32(vget_high_s32({c0}), vget_high_s32({c2})); c_{i+0}_{j} = vcombine_s32(vget_low_s32( | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | int32x4_t c_{i+1}_{j} = vcombine_s32(vget_high_s32({c0}), vget_high_s32({c2})); c_{i+0}_{j} = vcombine_s32(vget_low_s32( | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | int32x4_t c_{i+1}_{j} = vcombine_s32(vget_high_s32({c0}), vget_high_s32({c2})); c_{i+0}_{j} = vcombine_s32(vget_low_s32( | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_fp32_k4.py | 0 | specializations for fp32 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_fp32.py | 0 | specializations for fp32 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_fp32_k2.py | 0 | specializations for fp32 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_bf16_bf16_fp32.py | 0 | specializations for fp32 arm dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_fp32.py | 0 | specializations for fp32 arm dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_bf16_bf16_fp32_k2.py | 0 | specializations for fp32 arm dot kernel generators. | STRING |
| HIGH | …npack/kernels/dot/generator/x86_int8_int8_int32_k16.py | 0 | specializations for int8 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_int8_int8_int32.py | 0 | specializations for int8 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_int8_int8_int32_k1.py | 0 | specializations for int8 x86 dot kernel generators. | STRING |
| HIGH | …npack/kernels/dot/generator/x86_int8_int8_int32_k16.py | 0 | namespace { ynn_intrinsic __m512i _mm512_hadd_epi32(__m512i a, __m512i b) { a = _mm512_add_epi32(a, _mm512_shuffle_epi32 | STRING |
| HIGH | …pack/kernels/dot/generator/x86_uint8_int8_int32_k16.py | 0 | namespace { ynn_intrinsic __m512i _mm512_hadd_epi32(__m512i a, __m512i b) { a = _mm512_add_epi32(a, _mm512_shuffle_epi32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_uint8_int4_int32.py | 0 | namespace { ynn_intrinsic __m512i _mm512_hadd_epi32(__m512i a, __m512i b) { a = _mm512_add_epi32(a, _mm512_shuffle_epi32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm.py | 0 | base class for x86 dot kernel generators. handles accumulating c tiles to the output. | STRING |
| HIGH | ynnpack/kernels/dot/generator/wasm.py | 0 | base class for x86 dot kernel generators. handles accumulating c tiles to the output. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86.py | 0 | base class for x86 dot kernel generators. handles accumulating c tiles to the output. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate-raddstoreexpminusmax-test.py | 9 | CODE | |
| LOW | tools/generate-raddexpminusmax-test.py | 9 | CODE | |
| LOW | tools/generate-vbinary-test.py | 8 | CODE | |
| LOW | tools/generate-vbinary-test.py | 9 | CODE | |
| LOW | tools/generate-vbinary-test.py | 11 | CODE | |
| LOW | tools/generate-vbinary-test.py | 13 | CODE | |
| LOW | tools/generate-reduce-discontiguous-test.py | 9 | CODE | |
| LOW | tools/xngen.py | 11 | CODE | |
| LOW | tools/generate-argmaxpool-test.py | 9 | CODE | |
| LOW | tools/generate-reduce-test.py | 9 | CODE | |
| LOW | tools/generate-lut-test.py | 9 | CODE | |
| LOW | gemm_compiler/generate_f32_gemm_microkernels.py | 8 | CODE | |
| LOW | gemm_compiler/generate.py | 7 | CODE | |
| LOW | gemm_compiler/generate.py | 8 | CODE | |
| LOW | scripts/generate-build-identifier.py | 13 | CODE | |
| LOW | scripts/generate-build-identifier.py | 14 | CODE | |
| LOW | ynnpack/kernels/ternary/convert.py | 4 | CODE | |
| LOW | ynnpack/kernels/ternary/generator.py | 14 | CODE | |
| LOW | ynnpack/kernels/ternary/generator.py | 15 | CODE | |
| LOW | ynnpack/kernels/ternary/kernels.py | 5 | CODE | |
| LOW | ynnpack/kernels/unary/tanh.py | 10 | CODE | |
| LOW | ynnpack/kernels/unary/trig.py | 15 | CODE | |
| LOW | ynnpack/kernels/unary/log.py | 5 | CODE | |
| LOW | ynnpack/kernels/unary/convert.py | 4 | CODE | |
| LOW | ynnpack/kernels/unary/erf.py | 5 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 14 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 15 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 16 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 17 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 18 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 19 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 20 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 21 | CODE | |
| LOW | ynnpack/kernels/unary/kernels.py | 3 | CODE | |
| LOW | ynnpack/kernels/unary/kernels.py | 7 | CODE | |
| LOW | ynnpack/kernels/unary/sigmoid.py | 5 | CODE | |
| LOW | ynnpack/kernels/unary/exp.py | 5 | CODE | |
| LOW | ynnpack/kernels/elementwise/hexagon.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/hexagon.py | 5 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler_test.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 11 | CODE | |
| LOW | ynnpack/kernels/elementwise/rules.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/arm.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/arm.py | 5 | CODE | |
| LOW | ynnpack/kernels/elementwise/generator.py | 7 | CODE | |
| LOW | ynnpack/kernels/elementwise/generator.py | 8 | CODE | |
| LOW | ynnpack/kernels/elementwise/generator.py | 9 | CODE | |
| LOW | ynnpack/kernels/elementwise/generator.py | 10 | CODE | |
| LOW | ynnpack/kernels/elementwise/wasm.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/wasm.py | 5 | CODE | |
| LOW | ynnpack/kernels/elementwise/x86.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/x86.py | 5 | CODE | |
| LOW | ynnpack/kernels/binary/generator.py | 13 | CODE | |
| LOW | ynnpack/kernels/binary/kernels.py | 5 | CODE | |
| LOW | ynnpack/base/simd/rational_approximation.py | 196 | CODE | |
| LOW | ynnpack/base/simd/rational_approximation.py | 216 | CODE | |
| LOW | ynnpack/base/simd/rational_approximation.py | 235 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/parse-microkernel-bench.py | 55 | CODE | |
| LOW | tools/parse-microkernel-bench.py | 93 | CODE | |
| LOW | tools/xnncommon.py | 185 | CODE | |
| LOW | tools/update-microkernels.py | 161 | CODE | |
| LOW | tools/generate-gemm-test.py | 710 | CODE | |
| LOW | tools/generate-gemm-test.py | 917 | CODE | |
| LOW | gemm_compiler/x64_template.py | 469 | CODE | |
| LOW | gemm_compiler/aarch32_template.py | 114 | CODE | |
| LOW | scripts/check_files_changed.py | 7 | CODE | |
| LOW | scripts/check_config.py | 29 | CODE | |
| LOW | scripts/sort-filenames.py | 22 | CODE | |
| LOW | ynnpack/kernels/dot/generator/arm.py | 98 | CODE | |
| LOW | ynnpack/kernels/dot/generator/wasm.py | 98 | CODE | |
| LOW | ynnpack/kernels/dot/generator/dot_base.py | 285 | CODE | |
| LOW | ynnpack/kernels/dot/generator/x86.py | 204 | CODE | |
| LOW | ynnpack/kernels/dot/generator/x86.py | 262 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 959 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 40 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 77 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1132 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1207 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1289 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1435 | CODE | |
| LOW | ynnpack/kernels/elementwise/x86.py | 37 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/xnncommon.py | 50 | "neondotfp16arith": "XNN_ENABLE_ARM_DOTPROD && XNN_ENABLE_ARM_FP16_VECTOR", | CODE |
| HIGH | tools/xnncommon.py | 52 | "neoni8mmbf16": "XNN_ENABLE_ARM_I8MM && XNN_ENABLE_ARM_BF16", | CODE |
| HIGH | ynnpack/kernels/dot/generator/dot_base.py | 160 | assert(B_stride_k1 % {self.b_tile_stride_k()} == 0 || K1 == 1); | CODE |
| HIGH | ynnpack/kernels/elementwise/compiler.py | 1646 | f"stride_{b.name}_n == 0 || stride_{b.name}_n == {b.ty.size // 8}" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/xngen.py | 46 | def extract_leading_whitespace(line): | CODE |
| LOW | tools/xnncommon.py | 15 | def _remove_duplicate_newlines(text): | CODE |
| LOW | tools/update-microkernels.py | 139 | def write_grouped_microkernels_bzl(file, key, microkernels, prefix, suffix): | CODE |
| LOW | tools/update-microkernels.py | 150 | def write_grouped_microkernels_cmake(file, key, microkernels, prefix, suffix): | CODE |
| LOW | tools/update-microkernels.py | 473 | def non_prod_asm_srcs_for_arch(arch): | STRING |
| LOW | gemm_compiler/x64_template.py | 203 | def quantization_params_offset(self): | CODE |
| LOW | gemm_compiler/x64_template.py | 212 | def input_output_register_setup(self): | CODE |
| LOW | gemm_compiler/base_architecture.py | 193 | def input_output_register_setup(self): | CODE |
| LOW | gemm_compiler/arm_template.py | 29 | def input_output_register_setup(self): | CODE |
| LOW | gemm_compiler/generate.py | 13 | def generate_gemm_microkernel( | CODE |
| LOW | gemm_compiler/aarch32_template.py | 169 | def extend_inputs_and_weights(self): | CODE |
| LOW | gemm_compiler/neonmlal_aarch32_template.py | 79 | def quantization_params_register(self): | CODE |
| LOW | gemm_compiler/neondot_template.py | 76 | def quantization_params_register(self): | CODE |
| LOW | gemm_compiler/avx512vnni_template.py | 81 | def quantization_params_register(self): | CODE |
| LOW | gemm_compiler/avx512vnni_template.py | 149 | def quantization_params_offset(self): | STRING |
| LOW | gemm_compiler/avx512vnni_template.py | 399 | def quantization_params_offset(self): | CODE |
| LOW | ynnpack/kernels/dot/generator/dot_base.py | 571 | def generate_dot_kernels_impl( | CODE |
| LOW | ynnpack/kernels/elementwise/compiler.py | 627 | def rounding_narrowing_shift_right(x, shift): | CODE |
| LOW | ynnpack/kernels/elementwise/rules.py | 23 | def add_saturating_cast_rules(): | CODE |
| LOW | ynnpack/kernels/elementwise/generator.py | 33 | def generate_elementwise_kernels( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gemm_compiler/avx512vnni_template.py | 405 | # mask register is unused here, just use that one. | COMMENT |
| MEDIUM | test/operators/batch-matrix-multiply-operator-tester.h | 1260 | // equal. For a more nuanced estimate, we could/should compute and apply the | COMMENT |
| LOW | ynnpack/kernels/dot/generator/dot_base.py | 231 | # We assume that we can just use load_a_tile. | COMMENT |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1478 | # If there is no broadcasting for this b we can just use | COMMENT |
| MEDIUM | ynnpack/base/half.h | 15 | // known to be at least a robust f16<->f32 conversion, which generally means a | COMMENT |
| MEDIUM | src/xnnpack/math.h | 512 | // known to be at least a robust f16<->f32 conversion, which generally means a | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | litert/tensor/backends/testing/README.md | 30 | ### Step 1: Implement `TestBackendBridge` | COMMENT |
| LOW | litert/tensor/backends/testing/README.md | 83 | ### Step 2: Define Backend Traits | COMMENT |
| LOW | litert/tensor/backends/testing/README.md | 97 | ### Step 3: Instantiate the Suite | COMMENT |
| LOW | litert/tensor/backends/testing/README.md | 113 | ### Step 4: Update the BUILD target | COMMENT |
| LOW⚡ | src/subgraph.c | 693 | // Step 1: detect NCHW-compatible Nodes | COMMENT |
| LOW⚡ | src/subgraph.c | 694 | // Step 2: detect NCHW-compatible clusters (run connected components graph | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ynnpack/kernels/reduce/sum.h | 205 | // In this implementation, there are some details to the above: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gemm_compiler/avx512f_template.py | 384 | # Check if channels are odd. | COMMENT |
| LOW | gemm_compiler/avx512bf16_template.py | 66 | # Check if channels are odd. | COMMENT |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1211 | # Check if we already lifted this constant. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/subgraph.c | 693 | // Step 1: detect NCHW-compatible Nodes | COMMENT |
| LOW⚡ | src/subgraph.c | 694 | // Step 2: detect NCHW-compatible clusters (run connected components graph | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/parse-microkernel-bench.py | 103 | except Exception: | CODE |
| MEDIUM | tools/generate-gemm-test.py | 1058 | print(f"Error: k_block ({k_block}) must be >= kr * sr ({kr} * {sr}) for kernel {name} in {options.spec}") | STRING |
| LOW | scripts/compare-compile-commands.py | 93 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/replicable_random_device.h | 147 | // Usage example: | COMMENT |
| LOW | ynnpack/base/test/fuzz_test.h | 99 | // Usage example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/run-gn-tests.py | 182 | # Create the list of tests to run, sharding the long ones. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/operators/fingerprint_id.h | 75 | // ├─────┼─────┼─────┼─────┼───────┤ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …npack/kernels/dot/generator/x86_int8_int8_int32_k16.py | 60 | CODE | |
| LOW | …pack/kernels/dot/generator/x86_uint8_int8_int32_k16.py | 56 | CODE |