test / scripts /generate-f16-vhswish.sh
Androidonnxfork's picture
Upload folder using huggingface_hub
8b7c501
raw
history blame
955 Bytes
#!/bin/sh
# Copyright 2020 Google LLC
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
################################### ARM NEON ##################################
tools/xngen src/f16-vhswish/neonfp16arith.c.in -D BATCH_TILE=8 -o src/f16-vhswish/gen/f16-vhswish-neonfp16arith-x8.c &
tools/xngen src/f16-vhswish/neonfp16arith.c.in -D BATCH_TILE=16 -o src/f16-vhswish/gen/f16-vhswish-neonfp16arith-x16.c &
################################### x86 F16C ##################################
tools/xngen src/f16-vhswish/f16c.c.in -D BATCH_TILE=8 -o src/f16-vhswish/gen/f16-vhswish-f16c-x8.c &
tools/xngen src/f16-vhswish/f16c.c.in -D BATCH_TILE=16 -o src/f16-vhswish/gen/f16-vhswish-f16c-x16.c &
################################## Unit tests #################################
tools/generate-vunary-test.py --spec test/f16-vhswish.yaml --output test/f16-vhswish.cc &
wait