ONE - On-device Neural Engine
Loading...
Searching...
No Matches
LogicalNot.cpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 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
17#include "core/OMUtils.h"
18#include "execute/OMUtils.h"
19
20#include "PALLogicalNotCommon.h"
21
22using namespace onert_micro::core;
23
25{
26
28{
29 const circle::Tensor *input;
30 const circle::Tensor *output;
31
32 uint8_t *input_data;
33 uint8_t *output_data;
34
35 SISOHeader(execute_args, &input, &output, &input_data, &output_data);
36
37 auto bool_input_data = utils::castInputData<bool>(input_data);
38 auto bool_output_data = utils::castOutputData<bool>(output_data);
39
40 const int flat_size = OMRuntimeShape(input).flatSize();
41
42 return pal::LogicalNot(flat_size, bool_input_data, bool_output_data);
43}
44
45} // namespace onert_micro::execute
OMStatus LogicalNot(const int flat_size, const bool *input_data, bool *output_data)
OMStatus execute_kernel_CircleLogicalNot(const OMExecuteArgs &execute_args)
OMStatus SISOHeader(const OMExecuteArgs &execute_args, const circle::Tensor **input, const circle::Tensor **output, uint8_t **input_data, uint8_t **output_data)
Definition OMUtils.cpp:159