/* * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "moco/Import/GraphBuilderRegistry.h" #include "moco/Import/Nodes.h" #include namespace moco { GraphBuilderRegistry::GraphBuilderRegistry() { add("Add", std::make_unique()); add("AvgPool", std::make_unique()); add("BiasAdd", std::make_unique()); add("ConcatV2", std::make_unique()); add("Const", std::make_unique()); add("Conv2D", std::make_unique()); add("Conv2DBackpropInput", std::make_unique()); add("DepthwiseConv2dNative", std::make_unique()); add("FakeQuantWithMinMaxVars", std::make_unique()); add("FusedBatchNorm", std::make_unique()); add("Identity", std::make_unique()); add("Maximum", std::make_unique()); add("MaxPool", std::make_unique()); add("Mean", std::make_unique()); add("Mul", std::make_unique()); add("Pack", std::make_unique()); add("Pad", std::make_unique()); add("Placeholder", std::make_unique()); add("RealDiv", std::make_unique()); add("Relu", std::make_unique()); add("Relu6", std::make_unique()); add("Reshape", std::make_unique()); add("Rsqrt", std::make_unique()); add("Shape", std::make_unique()); add("Softmax", std::make_unique()); add("Sqrt", std::make_unique()); add("SquaredDifference", std::make_unique()); add("Squeeze", std::make_unique()); add("StopGradient", std::make_unique()); add("StridedSlice", std::make_unique()); add("Sub", std::make_unique()); add("Tanh", std::make_unique()); // Virtual node like `TFPush` need not to be added here } } // namespace moco