ONE - On-device Neural Engine
Loading...
Searching...
No Matches
LessEqual.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
17
#include "
import/OMKernelConfigureBuilder.h
"
18
#include "
core/OMUtils.h
"
19
#include "
OMStatus.h
"
20
#include "
execute/OMRuntimeKernel.h
"
21
22
#include "
import/OMUtils.h
"
23
24
using namespace
onert_micro
;
25
using namespace
onert_micro::core
;
26
27
namespace
28
{
29
30
constexpr
uint32_t
input1TensorIdx
= 0;
31
constexpr
uint32_t
input2TensorIdx
= 1;
32
constexpr
uint32_t
outputTensorIdx
= 0;
33
34
}
// namespace
35
36
namespace
onert_micro
37
{
38
namespace
import
39
{
40
41
OMStatus
configure_kernel_CircleLessEqual
(
const
OMConfigureArgs
&config_args)
42
{
43
const
circle::Tensor *input1;
44
const
circle::Tensor *input2;
45
const
circle::Tensor *output;
46
47
TISOHeader
(config_args, &input1, &input2, &output);
48
49
OMStatus
status;
50
51
status = utils::checkCondition(input1->type() == input2->type());
52
if
(status !=
Ok
)
53
return
status;
54
55
status = utils::checkCondition(output->type() == circle::TensorType_BOOL);
56
if
(status !=
Ok
)
57
return
status;
58
59
return
status;
60
}
61
62
}
// namespace import
63
}
// 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_CircleLessEqual
OMStatus configure_kernel_CircleLessEqual(const OMConfigureArgs &config_args)
Definition
LessEqual.cpp:41
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
LessEqual.cpp
Generated by
1.9.8