ONE - On-device Neural Engine
Loading...
Searching...
No Matches
GraphBuilderRegistry.cpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 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 "Layer/Concatenation.h"
20#include "Layer/Convolution.h"
21#include "Layer/Eltwise.h"
22#include "Layer/Input.h"
23#include "Layer/Pooling.h"
24#include "Layer/ReLU.h"
25#include "Layer/Scale.h"
26#include "Layer/BatchNorm.h"
27
28#include <memory>
29
30using std::make_unique;
31
32namespace caffeimport
33{
34
35GraphBuilderRegistry::GraphBuilderRegistry()
36{
37 _builder_map["Concat"] = make_unique<ConcatBuilder>();
38 _builder_map["Convolution"] = make_unique<ConvolutionBuilder>();
39 _builder_map["Eltwise"] = make_unique<EltwiseBuilder>();
40 _builder_map["Input"] = make_unique<InputBuilder>();
41 _builder_map["Pooling"] = make_unique<PoolingBuilder>();
42 _builder_map["ReLU"] = make_unique<ReLUBuilder>();
43 _builder_map["Scale"] = make_unique<ScaleBuilder>();
44 _builder_map["BatchNorm"] = make_unique<BatchNormBuilder>();
45}
46
47} // namespace caffeimport