Path: blob/master/modules/dnn/src/tensorflow/tf_graph_simplifier.hpp
16339 views
// This file is part of OpenCV project.1// It is subject to the license terms in the LICENSE file found in the top-level directory2// of this distribution and at http://opencv.org/license.html.34// Copyright (C) 2018, Intel Corporation, all rights reserved.5// Third party copyrights are property of their respective owners.67#ifndef __OPENCV_DNN_TF_SIMPLIFIER_HPP__8#define __OPENCV_DNN_TF_SIMPLIFIER_HPP__910#include "../precomp.hpp"1112#ifdef HAVE_PROTOBUF1314#include "tf_io.hpp"1516namespace cv { namespace dnn {17CV__DNN_INLINE_NS_BEGIN1819void RemoveIdentityOps(tensorflow::GraphDef& net);2021void simplifySubgraphs(tensorflow::GraphDef& net);2223Mat getTensorContent(const tensorflow::TensorProto &tensor);2425void releaseTensor(tensorflow::TensorProto* tensor);2627void sortByExecutionOrder(tensorflow::GraphDef& net);2829CV__DNN_INLINE_NS_END30}} // namespace dnn, namespace cv3132#endif // HAVE_PROTOBUF33#endif // __OPENCV_DNN_TF_SIMPLIFIER_HPP__343536