31 tensorflow::GraphDef graph_def;
37 google::protobuf::io::IstreamInputStream is{ioconfig->in()};
38 google::protobuf::io::CodedInputStream coded_is{&is};
40 if (!graph_def.ParseFromCodedStream(&coded_is))
42 std::cerr <<
"ERROR: Failed to parse tensorflow model" << std::endl;
46 google::protobuf::io::OstreamOutputStream os{ioconfig->out()};
47 google::protobuf::TextFormat::Print(graph_def, &os);