ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Embedder.h
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
#ifndef __ONERT_ODC_EMBEDDER_H__
18
#define __ONERT_ODC_EMBEDDER_H__
19
20
#include "
luci/IR/Module.h
"
21
22
#include <string>
23
24
namespace
onert
25
{
26
namespace
odc
27
{
28
struct
EmbedderOptions
29
{
30
float
min_percentile
= 0.0f;
// dummy initial value to make SE tool happy
31
float
max_percentile
= 0.0f;
// dummy initial value To make SE tool happy
32
};
33
34
class
Embedder
35
{
36
public
:
37
void
embed
(
luci::Module
*module,
const
std::string &minmax_path,
const
EmbedderOptions
&opt);
38
};
39
}
// namespace odc
40
}
// namespace onert
41
42
#endif
// __MINMAX_EMBEDDER_EMBEDDER_H__
luci::Module
Collection of 'loco::Graph's.
Definition
Module.h:33
onert::odc::Embedder
Definition
Embedder.h:35
onert::odc::Embedder::embed
void embed(luci::Module *module, const std::string &minmax_path, const EmbedderOptions &opt)
Definition
Embedder.cc:74
Module.h
onert
Definition
CustomKernel.cc:20
onert::odc::EmbedderOptions
Definition
Embedder.h:29
onert::odc::EmbedderOptions::max_percentile
float max_percentile
Definition
Embedder.h:31
onert::odc::EmbedderOptions::min_percentile
float min_percentile
Definition
Embedder.h:30
runtime
onert
odc
Embedder.h
Generated by
1.9.8