ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Round.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 "PALRound.h"
19
20using namespace onert_micro;
21using namespace onert_micro::execute;
22
23// NOTE: doesnt currently support dynamic shapes
24OMStatus onert_micro::execute::execute_kernel_CircleRound(const OMExecuteArgs &execute_args)
25{
26 auto round_float_lambda = [](const core::OMRuntimeShape &input_shape, const float *input_data,
28 return pal::Round(input_shape, input_data, output_shape, output_data);
29 };
30
31 return execute_math_common(execute_args, round_float_lambda);
32}
const luci_interpreter::RuntimeShape output_shape
list input_data
Definition infer.py:29
OMStatus Round(const core::OMRuntimeShape &input_shape, const T *input_data, const core::OMRuntimeShape &output_shape, T *output_data)
OMStatus execute_math_common(const OMExecuteArgs &execute_args, const std::function< OMStatus(const core::OMRuntimeShape &input_shape, const float *input_data, const core::OMRuntimeShape &output_shape, float *output_data)> &f_float)