ONE - On-device Neural Engine
Loading...
Searching...
No Matches
GraphBuilderRegistry.cpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 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
18
19#include "luci/Import/Nodes.h"
20
21#include <memory>
22
23namespace luci
24{
25
27{
28#define CIRCLE_NODE(OPCODE, CLASS) add(circle::BuiltinOperator_##OPCODE, std::make_unique<CLASS>());
29
80 CIRCLE_NODE(LOGICAL_AND, CircleLogicalAndGraphBuilder); // 86
81 CIRCLE_NODE(LOGICAL_NOT, CircleLogicalNotGraphBuilder); // 87
154 CIRCLE_NODE(ZEROS_LIKE, CircleZerosLikeGraphBuilder); // 93
155
156#undef CIRCLE_NODE
157
158 // BuiltinOperator_EMBEDDING_LOOKUP = 7,
159 // BuiltinOperator_HASHTABLE_LOOKUP = 10,
160 // BuiltinOperator_LSH_PROJECTION = 15,
161 // BuiltinOperator_LSTM = 16,
162 // BuiltinOperator_RNN = 24,
163 // BuiltinOperator_CONCAT_EMBEDDINGS = 29,
164 // BuiltinOperator_SKIP_GRAM = 30,
165 // BuiltinOperator_CALL = 31,
166 // BuiltinOperator_EMBEDDING_LOOKUP_SPARSE = 33,
167 // BuiltinOperator_UNIDIRECTIONAL_SEQUENCE_RNN = 35,
168 // BuiltinOperator_BIDIRECTIONAL_SEQUENCE_RNN = 46,
169 // BuiltinOperator_DELEGATE = 51,
170 // BuiltinOperator_ARG_MAX = 56,
171
172 // Register builders for nodes which not handles in builders registered above.
173#define CIRCLE_NODE(CLASS) add(std::make_unique<CLASS>())
174
176
177#undef CIRCLE_NODE
178}
179
180} // namespace luci
@ LOCAL_RESPONSE_NORMALIZATION
Builder creates CircleConst node from Tensor with buffer.
Definition CircleConst.h:31
#define LOG(...)
Definition Logging.h:36
#define DEQUANTIZE(input, offset, scale, type, size)
#define QUANTIZE(input, offset, scale, type, size)
CIRCLE_NODE(OPCODE, CLASS)
T must_cast(loco::Node *node)