MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / main

Function main

serving/processor/tests/graph_optimizer_test.cc:50–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48} // namespace
49
50extern "C" int main(int argc, char** argv) {
51 // TODO: For testing
52 // Please download saved_model.pbtxt from oss.
53 // then copy the saved_model.pbtxt to /tmp/saved_model.pbtxt
54 // at last, compile and run it!
55 std::string saved_model_dir(
56 "/tmp/saved_model.pbtxt");
57 SavedModel saved_model;
58 if (!tensorflow::protobuf::TextFormat::ParseFromString(ReadFileIntoString(saved_model_dir), &saved_model)) {
59 LOG(FATAL) << "Can not parse saved model from text.";
60 }
61 std::string tag("serve");
62 ClusteredGraphInfo cgi = ClusteringGraphDef(tag, saved_model);
63
64 //LOG(INFO) << cgi.tf_saved_model.DebugString() << "\n";
65 //LOG(INFO) << cgi.iree_saved_model.DebugString() << "\n";
66
67 return 0;
68}
69
70
71} // namespace processor

Callers

nothing calls this directly

Calls 2

ClusteringGraphDefFunction · 0.85
ReadFileIntoStringFunction · 0.70

Tested by

no test coverage detected