ONE - On-device Neural Engine
Loading...
Searching...
No Matches
NotEqual.cpp
Go to the documentation of this file.
1
2
/*
3
* Copyright (c) 2024 Samsung Electronics Co., Ltd. All Rights Reserved
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#include "
import/OMKernelConfigureBuilder.h
"
19
#include "
core/OMUtils.h
"
20
#include "
OMStatus.h
"
21
#include "
execute/OMRuntimeKernel.h
"
22
23
#include "
import/OMUtils.h
"
24
25
using namespace
onert_micro
;
26
using namespace
onert_micro::core
;
27
28
namespace
29
{
30
31
constexpr
uint32_t
input1TensorIdx
= 0;
32
constexpr
uint32_t
input2TensorIdx
= 1;
33
constexpr
uint32_t
outputTensorIdx
= 0;
34
35
}
// namespace
36
37
namespace
onert_micro
38
{
39
namespace
import
40
{
41
42
OMStatus
configure_kernel_CircleNotEqual
(
const
OMConfigureArgs
&config_args)
43
{
44
const
circle::Tensor *input1;
45
const
circle::Tensor *input2;
46
const
circle::Tensor *output;
47
48
TISOHeader
(config_args, &input1, &input2, &output);
49
50
OMStatus
status;
51
52
status = utils::checkCondition(input1->type() == input2->type());
53
if
(status !=
Ok
)
54
return
status;
55
56
status = utils::checkCondition(output->type() == circle::TensorType_BOOL);
57
if
(status !=
Ok
)
58
return
status;
59
60
return
status;
61
}
62
63
}
// namespace import
64
}
// namespace onert_micro
OMKernelConfigureBuilder.h
OMRuntimeKernel.h
OMStatus.h
OMUtils.h
OMUtils.h
TensorIndexTISO::input1TensorIdx
constexpr uint32_t input1TensorIdx
Definition
ReadKernelDataCommon.cpp:26
TensorIndexTISO::outputTensorIdx
constexpr uint32_t outputTensorIdx
Definition
ReadKernelDataCommon.cpp:28
TensorIndexTISO::input2TensorIdx
constexpr uint32_t input2TensorIdx
Definition
ReadKernelDataCommon.cpp:27
onert_micro::core
Definition
OMMemoryManager.h:28
onert_micro::import::TISOHeader
OMStatus TISOHeader(const OMConfigureArgs &execute_args, const circle::Tensor **input1, const circle::Tensor **input2, const circle::Tensor **output)
Definition
OMUtils.cpp:45
onert_micro::import::configure_kernel_CircleNotEqual
OMStatus configure_kernel_CircleNotEqual(const OMConfigureArgs &config_args)
Definition
NotEqual.cpp:42
onert_micro
Definition
OMMemoryManager.h:26
onert_micro::OMStatus
OMStatus
Definition
OMStatus.h:24
onert_micro::Ok
@ Ok
Definition
OMStatus.h:25
onert_micro::import::OMConfigureArgs
Definition
OMConfigureArgs.h:32
onert-micro
onert-micro
src
import
kernels
NotEqual.cpp
Generated by
1.9.8