Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/dnn/src/tensorflow/tf_graph_simplifier.hpp
16339 views
1
// This file is part of OpenCV project.
2
// It is subject to the license terms in the LICENSE file found in the top-level directory
3
// of this distribution and at http://opencv.org/license.html.
4
5
// Copyright (C) 2018, Intel Corporation, all rights reserved.
6
// Third party copyrights are property of their respective owners.
7
8
#ifndef __OPENCV_DNN_TF_SIMPLIFIER_HPP__
9
#define __OPENCV_DNN_TF_SIMPLIFIER_HPP__
10
11
#include "../precomp.hpp"
12
13
#ifdef HAVE_PROTOBUF
14
15
#include "tf_io.hpp"
16
17
namespace cv { namespace dnn {
18
CV__DNN_INLINE_NS_BEGIN
19
20
void RemoveIdentityOps(tensorflow::GraphDef& net);
21
22
void simplifySubgraphs(tensorflow::GraphDef& net);
23
24
Mat getTensorContent(const tensorflow::TensorProto &tensor);
25
26
void releaseTensor(tensorflow::TensorProto* tensor);
27
28
void sortByExecutionOrder(tensorflow::GraphDef& net);
29
30
CV__DNN_INLINE_NS_END
31
}} // namespace dnn, namespace cv
32
33
#endif // HAVE_PROTOBUF
34
#endif // __OPENCV_DNN_TF_SIMPLIFIER_HPP__
35
36