blob: f9295ebbcc901a9b84320c09798ffdebb1aef304 [file] [log] [blame]
Dana Zlotnikc48a3e52021-12-21 13:34:42 +02001/*
Omar Al Khatib93e743f2024-01-02 14:45:07 +00002 * Copyright (c) 2021-2024 Arm Limited.
Dana Zlotnikc48a3e52021-12-21 13:34:42 +02003 *
4 * SPDX-License-Identifier: MIT
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 */
Gunes Bayirfadc9b12023-11-07 05:43:07 +000024#ifndef ACL_SRC_CPU_KERNELS_SOFTMAX_LIST_H
25#define ACL_SRC_CPU_KERNELS_SOFTMAX_LIST_H
Dana Zlotnikc48a3e52021-12-21 13:34:42 +020026
27namespace arm_compute
28{
29namespace cpu
30{
Gunes Bayirfadc9b12023-11-07 05:43:07 +000031#define DECLARE_SOFTMAX_KERNEL(func_name) \
32 template <bool IS_LOG> \
Omar Al Khatib93e743f2024-01-02 14:45:07 +000033 void func_name(const ITensor *in, void *const tmp, ITensor *out, const float beta, int axis, const Window &window)
Dana Zlotnikc48a3e52021-12-21 13:34:42 +020034
35DECLARE_SOFTMAX_KERNEL(neon_fp32_softmax);
36DECLARE_SOFTMAX_KERNEL(neon_fp16_softmax);
37DECLARE_SOFTMAX_KERNEL(neon_qasymm8_softmax);
38DECLARE_SOFTMAX_KERNEL(neon_qasymm8_signed_softmax);
Dana Zlotnikc48a3e52021-12-21 13:34:42 +020039
40#undef DECLARE_SOFTMAX_KERNEL
Dana Zlotnikc48a3e52021-12-21 13:34:42 +020041} // namespace cpu
42} // namespace arm_compute
43
Gunes Bayirfadc9b12023-11-07 05:43:07 +000044#endif // ACL_SRC_CPU_KERNELS_SOFTMAX_LIST_H