blob: abbcc151815bc022fc67f7722c44e0e1bc21b32f [file] [log] [blame]
Michalis Spyroub5a450a2021-01-06 17:40:30 +00001/*
Dana Zlotnikc48a3e52021-12-21 13:34:42 +02002 * Copyright (c) 2021-2022 Arm Limited.
Michalis Spyroub5a450a2021-01-06 17:40:30 +00003 *
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 */
Dana Zlotnikc48a3e52021-12-21 13:34:42 +020024#ifndef SRC_CORE_SVE2_KERNELS_SOFTMAX_IMPL_H
25#define SRC_CORE_SVE2_KERNELS_SOFTMAX_IMPL_H
Michalis Spyroub5a450a2021-01-06 17:40:30 +000026
Dana Zlotnika538ae52022-02-21 13:12:41 +020027#include "arm_compute/core/Helpers.h"
Michalis Spyroub5a450a2021-01-06 17:40:30 +000028
29namespace arm_compute
30{
31namespace cpu
32{
Michalis Spyroub5a450a2021-01-06 17:40:30 +000033template <typename ScalarType>
Dana Zlotnikc48a3e52021-12-21 13:34:42 +020034void sve2_softmax_logits_1d_quantized(const ITensor *in, const ITensor *max, void *const tmp,
Dana Zlotnika538ae52022-02-21 13:12:41 +020035 ITensor *out, float beta, bool is_log, const Window &window);
Michalis Spyroub5a450a2021-01-06 17:40:30 +000036} // namespace cpu
37} // namespace arm_compute
Dana Zlotnikc48a3e52021-12-21 13:34:42 +020038#endif /* SRC_CORE_SVE2_KERNELS_SOFTMAX_IMPL_H */