- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do i read the datas from the file train.pb in current c++ code? I followed some tutorial on tensorflow and understood till this much lines, but after this i cant find exact correct way to read the datas(multidimensional array values) inside the c++ code. i'm studked in my project cas of this.
Session* session;
Status status = NewSession(SessionOptions(), &session);
if (!status.ok()) {
std::cout << status.ToString() << "\n";
return 1;
}
// Read in the protobuf graph we exported
// (The path seems to be relative to the cwd. Keep this in mind
// when using `bazel run` since the cwd isn't where you call
// `bazel run` but from inside a temp folder.)
GraphDef graph_def;
status = ReadBinaryProto(Env::Default(), "models/train.pb", &graph_def);
if (!status.ok()) {
std::cout << status.ToString() << "\n";
return 1;
}
// Add the graph to the session
status = session->Create(graph_def);
if (!status.ok()) {
std::cout << status.ToString() << "\n";
return 1;
}
std::vector<std::pair<string, tensorflow::Tensor>> inputs = " what is here?"
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dinesh,
There is a detailed example with code in the following blog post: https://medium.com/jim-fleming/loading-a-tensorflow-graph-with-the-c-api-4caaff88463f#.6wx20arc1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dinesh,
If you are working with TensorFlow, there is going to be a TensorFlow on Modern Intel® Architectures Webinar in May 9, 2017. The following link provides detailed information about the TensorFlow* on Modern Intel® Architectures Webinar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The speaker for this webinar is ElMoustapha Ould-Ahmed-Vall, Senior Principal Engineer in Artificial Intelligence Products Group (AIPG)

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page