25 Commits

Author SHA1 Message Date
nihui 41f031e045 reduce redundant tests that do not contribute to coverage (#7042)
* adjust tests
* opt shader coverage op
* update gpu_coverage.cpp atomicor coalesce
2026-10-05 08:57:20 +08:00
nihui 9f9d4ec815 reduce gpu test cases (#7017) 2026-10-01 23:33:05 +08:00
nihui 5ea98309e3 layer param hardening (#7003)
* harden layer parameter validation

Original patches and author identities:
https://github.com/Tencent/ncnn/pull/6912 (beilzx)
https://github.com/Tencent/ncnn/pull/6919 (FluxMind-O)
https://github.com/Tencent/ncnn/pull/6928 (lxcxjxhx)
https://github.com/Tencent/ncnn/pull/6948 (ktz03)
https://github.com/Tencent/ncnn/pull/6950 (ktz03)
https://github.com/Tencent/ncnn/pull/6971 (LI)
https://github.com/Tencent/ncnn/pull/6974 (LI)
https://github.com/Tencent/ncnn/pull/6977 (LI)

Co-authored-by: beilzx <2069360659@qq.com>
Co-authored-by: FluxMind-O <3283918317@qq.com>
Co-authored-by: lxcxjxhx <lxcxjxhx@users.noreply.github.com>
Co-authored-by: ktz03 <2484593937@qq.com>
Co-authored-by: LI <2484593937@qq.com>
2026-09-15 19:18:46 +08:00
nihui 171b9d1bba use spdx license header, copyright Tencent (#6152) 2025-07-08 11:01:29 +08:00
nihui 556b79ce4d create layer decoupled (#5258)
* create layer decoupled
* no more virtual public
* allow build test with shared library
* decouple cpu vulkan
* drop old scripts
2024-01-05 14:08:15 +08:00
nihui 057b5bb515 split tests (#4354) 2022-11-17 15:28:34 +08:00
nihui 999e640d43 dynamic convolution weight (#3408) 2021-12-10 22:38:22 +08:00
zhiliu6 814f89ef1a Fuse HardSwish activation into Convolution and InnerProduct (#3233)
* add general fused activation
* add NCNN_FORCE_INLINE option
2021-10-11 15:55:43 +08:00
nihui 7e1aaa5828 cmake option NCNN_INT8 (#2839) 2021-04-14 12:49:35 +08:00
nihui e9cc637573 arm neon optimization for int8 packing kernels (#2809) 2021-04-07 14:06:29 +08:00
nihui a48bf43ef7 test conv/fc int8 with activation 2021-03-27 20:06:18 +08:00
nihui 5fe75f19ef architecture changes for int8 packing (#2771)
* quantize and dequantize tests

* unify activation and usability function

* drop NCNN_REQUANT cmake option, test dequantize requantize pack8, fix webassembly build

* benchmark use requantize int8 model
2021-03-27 18:49:13 +08:00
nihui f6fb757672 fix convdw3x3s1 pack8 arm fp16sa 2020-08-13 18:08:52 +08:00
nihui 8f1727ace8 more code coverage 2020-07-24 18:43:00 +08:00
nihui 11cffce114 armv8.2 infrastructure (#1856)
* runtime cpu dispatch

* force thread one

* disable openmp for coverage

* simplify test layer

* print NCNN_TARGET_ARCH

* less ci build variants

* weight fp16 storage option

* test convdw int8

* apple a12 a13

* ncnn_add_layer ncnn_add_shader cmake macro
2020-07-19 19:29:52 +08:00
nihui 3ef995ed1e format code style and setup restyled.io (#1840) 2020-06-13 22:17:51 +08:00
nihui 15a4b2c878 test pad same mode 2020-05-25 21:38:56 +08:00
zhiliu6 3bfabf1d6a Add fused convolution and mish layer support. (#1761) 2020-05-17 13:14:09 +08:00
nihuini b2d9325c0d test activation fusion 2020-04-23 14:52:22 +08:00
nihuini 36f6942fa0 testing time is too long ... 2020-04-13 11:24:31 +08:00
nihui 979dd5fd11 test does not need to provide data type options 2020-04-12 19:28:04 +08:00
nihui 839c4c4e34 smaller test size 2020-03-01 20:19:11 +08:00
nihui 0f7e7bca02 shader shape specialization constant and basic local group size partition (#1523)
* use Mat class for Shape description

* shape specialization constant in compute shader

* wip

* wip

* test forward_inplace, add binaryop unaryop sigmoid test

* fix arm unaryop test

* fix arm binaryop test

* make shape hint optional, cast int8 to fp32, add cast test

* wip

* follow the good and old local size setting for conv1x1

* the optimal local size rewrite

* fix build on msvc

* add permute shader for all packing layout, add permute test

* concat and slice patial shape constant, slice test

* fix slice test

* interp test

* add lrn test, test packing layout implicitly

* add eltwise test

* add normalize test

* add instancenorm test

* reorg shape constant

* simple local group size partition

* add shape constant param
2020-02-17 15:45:29 +08:00
nihui 6f2ef1932d int8 code refactoring wip, add int8 test 2020-01-05 00:08:11 +08:00
nihui 038666e049 the initial auto test (#1464)
* cpu test

* wip

* ci run test

* travis ci for arm64

* arm64 ctest

* copy vulkan loader

* wip

* run

* Update ccpp.yml

* gpu test

* swiftshader

* cache macos swiftshader

* try MoltenVK

* try vulkaninfo

* give swiftshader another try

* disable failed macos gpu test

* more conv test, fix conv3x3s1 gpu test fail

* fix deconvolution test

* dilation test

* cmake option to build tests

* ncnn_add_layer_test macro

* host barrier before upload and after download, handle packing layout option

* test packing layout

* wip

* wip

* merge deconvolution packing and non-packing code

* merge convolution packing and non-packing code

* pass top_blob_count param

* fix build

* take care of non-coherent mappable memory
2019-12-31 21:12:24 +08:00