xref: /aosp_15_r20/external/XNNPACK/scripts/generate-tests.sh (revision 4bdc94577ba0e567308109d787f7fec7b531ce36)
1*4bdc9457SAndroid Build Coastguard Worker#!/bin/sh
2*4bdc9457SAndroid Build Coastguard Worker# Copyright 2019 Google LLC
3*4bdc9457SAndroid Build Coastguard Worker#
4*4bdc9457SAndroid Build Coastguard Worker# This source code is licensed under the BSD-style license found in the
5*4bdc9457SAndroid Build Coastguard Worker# LICENSE file in the root directory of this source tree.
6*4bdc9457SAndroid Build Coastguard Worker
7*4bdc9457SAndroid Build Coastguard Worker### Tests for Clamp micro-kernels
8*4bdc9457SAndroid Build Coastguard Workertools/generate-vunary-test.py --spec test/s8-vclamp.yaml --output test/s8-vclamp.cc &
9*4bdc9457SAndroid Build Coastguard Workertools/generate-vunary-test.py --spec test/u8-vclamp.yaml --output test/u8-vclamp.cc &
10*4bdc9457SAndroid Build Coastguard Worker
11*4bdc9457SAndroid Build Coastguard Worker### Tests for packing micro-kernels
12*4bdc9457SAndroid Build Coastguard Workertools/generate-pack-test.py --spec test/x32-packx.yaml --output test/x32-packx.cc &
13*4bdc9457SAndroid Build Coastguard Worker
14*4bdc9457SAndroid Build Coastguard Worker### Tests for MaxPool micro-kernels
15*4bdc9457SAndroid Build Coastguard Workertools/generate-maxpool-test.py --spec test/f32-maxpool-minmax.yaml --output test/f32-maxpool-minmax.cc &
16*4bdc9457SAndroid Build Coastguard Workertools/generate-maxpool-test.py --spec test/f16-maxpool-minmax.yaml --output test/f16-maxpool-minmax.cc &
17*4bdc9457SAndroid Build Coastguard Workertools/generate-maxpool-test.py --spec test/s8-maxpool-minmax.yaml --output test/s8-maxpool-minmax.cc &
18*4bdc9457SAndroid Build Coastguard Workertools/generate-maxpool-test.py --spec test/u8-maxpool-minmax.yaml --output test/u8-maxpool-minmax.cc &
19*4bdc9457SAndroid Build Coastguard Worker
20*4bdc9457SAndroid Build Coastguard Worker### Tests for AvgPool micro-kernels
21*4bdc9457SAndroid Build Coastguard Workertools/generate-avgpool-test.py --spec test/f16-avgpool-minmax.yaml --output test/f16-avgpool-minmax.cc &
22*4bdc9457SAndroid Build Coastguard Workertools/generate-avgpool-test.py --spec test/f32-avgpool-minmax.yaml --output test/f32-avgpool-minmax.cc &
23*4bdc9457SAndroid Build Coastguard Workertools/generate-avgpool-test.py --spec test/qu8-avgpool-minmax.yaml --output test/qu8-avgpool-minmax.cc &
24*4bdc9457SAndroid Build Coastguard Worker
25*4bdc9457SAndroid Build Coastguard Worker### Tests for GAvgPool micro-kernels
26*4bdc9457SAndroid Build Coastguard Workertools/generate-gavgpool-test.py --spec test/f32-gavgpool-minmax.yaml --output test/f32-gavgpool-minmax.cc &
27*4bdc9457SAndroid Build Coastguard Worker
28*4bdc9457SAndroid Build Coastguard Worker### Tests for PAvgPool micro-kernels
29*4bdc9457SAndroid Build Coastguard Workertools/generate-avgpool-test.py --spec test/f16-pavgpool-minmax.yaml --output test/f16-pavgpool-minmax.cc &
30*4bdc9457SAndroid Build Coastguard Workertools/generate-avgpool-test.py --spec test/f32-pavgpool-minmax.yaml --output test/f32-pavgpool-minmax.cc &
31*4bdc9457SAndroid Build Coastguard Worker
32*4bdc9457SAndroid Build Coastguard Worker### Tests for ArgMaxPool micro-kernels
33*4bdc9457SAndroid Build Coastguard Workertools/generate-argmaxpool-test.py --spec test/f32-argmaxpool.yaml --output test/f32-argmaxpool.cc &
34*4bdc9457SAndroid Build Coastguard Worker
35*4bdc9457SAndroid Build Coastguard Workerwait
36