ONE - On-device Neural Engine
Loading...
Searching...
No Matches
ArgMax.cpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Samsung Electronics Co., Ltd. All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
18#include "PALArgMax.h"
19
20using namespace onert_micro;
21using namespace onert_micro::execute;
22
23OMStatus onert_micro::execute::execute_kernel_CircleArgMax(const OMExecuteArgs &execute_args)
24{
25 auto arg_max_float_lambda = [](const core::OMRuntimeShape &input1_shape, const float *input1_data,
27 int *output_data) {
28 return onert_micro::execute::pal::ArgMax(input1_shape, input1_data, input2_data, output_shape,
29 output_data);
30 };
31
32 return execute_arg_common(execute_args, arg_max_float_lambda);
33}
const luci_interpreter::RuntimeShape output_shape
OMStatus ArgMax(const core::OMRuntimeShape &input1_shape, const T1 *input1_data, const T3 *input2_data, const core::OMRuntimeShape &output_shape, T2 *output_data)
Definition PALArgMax.h:30
OMStatus execute_arg_common(const OMExecuteArgs &execute_args, const std::function< OMStatus(const core::OMRuntimeShape &input1_shape, const float *input1_data, const int *input2_data, const core::OMRuntimeShape &output_shape, int *output_data)> &f_float)
Definition ArgCommon.cpp:32