HiPipe  0.7.0
C++17 data pipeline with Python bindings.
load_graph.hpp
1 /****************************************************************************
2  * hipipe library
3  * Copyright (c) 2017, Cognexa Solutions s.r.o.
4  * Copyright (c) 2018, Iterait a.s.
5  * Author(s) Filip Matzner
6  *
7  * This file is distributed under the MIT License.
8  * See the accompanying file LICENSE.txt for the complete license agreement.
9  ****************************************************************************/
10 
11 #ifndef HIPIPE_TENSORFLOW_LOAD_GRAPH_HPP
12 #define HIPIPE_TENSORFLOW_LOAD_GRAPH_HPP
13 
14 #include <tensorflow/core/framework/tensor.h>
15 #include <tensorflow/core/public/session.h>
16 
17 #include <experimental/filesystem>
18 #include <memory>
19 
20 namespace hipipe::tensorflow {
21 
27 std::unique_ptr<::tensorflow::Session>
28 load_graph(std::experimental::filesystem::path graph_file_name);
29 
30 } // namespace hipipe::tensorflow
31 #endif
hipipe::tensorflow::load_graph
std::unique_ptr<::tensorflow::Session > load_graph(std::experimental::filesystem::path graph_file_name)
Make a session out of tensorflow frozen graph.