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 "import/OMUtils.h"
19
20using namespace onert_micro::core;
21
22namespace onert_micro::import
23{
24
26{
27 const circle::Tensor *input;
28 const circle::Tensor *output;
29
30 SISOHeader(config_args, &input, &output);
31
32 bool type_check = (input->type() == circle::TensorType_BOOL && input->type() == output->type());
33
34 OMStatus status = utils::checkCondition(type_check);
35
36 if (status != Ok)
37 return status;
38
39 const OMRuntimeShape input_shape(input);
40 const OMRuntimeShape output_shape(output);
41
42 return utils::checkCondition(input_shape == output_shape);
43}
44
45} // namespace onert_micro::import
const luci_interpreter::RuntimeShape output_shape
OMStatus SISOHeader(const OMConfigureArgs &execute_args, const circle::Tensor **input, const circle::Tensor **output)
Definition OMUtils.cpp:23
OMStatus configure_kernel_CircleLogicalNot(const OMConfigureArgs &config_args)