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

Function main

tensorflow/cc/framework/cc_op_gen_main.cc:58–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56} // namespace tensorflow
57
58int main(int argc, char* argv[]) {
59 tensorflow::port::InitMain(argv[0], &argc, &argv);
60 if (argc != 5) {
61 for (int i = 1; i < argc; ++i) {
62 fprintf(stderr, "Arg %d = %s\n", i, argv[i]);
63 }
64 fprintf(stderr,
65 "Usage: %s out.h out.cc include_internal "
66 "api_def_dirs1,api_def_dir2 ...\n"
67 " include_internal: 1 means include internal ops\n",
68 argv[0]);
69 exit(1);
70 }
71
72 bool include_internal = tensorflow::StringPiece("1") == argv[3];
73 std::vector<tensorflow::string> api_def_dirs = tensorflow::str_util::Split(
74 argv[4], ",", tensorflow::str_util::SkipEmpty());
75 tensorflow::PrintAllCCOps(argv[1], argv[2], include_internal, api_def_dirs);
76 return 0;
77}

Callers

nothing calls this directly

Calls 5

exitFunction · 0.85
SkipEmptyClass · 0.85
PrintAllCCOpsFunction · 0.85
InitMainFunction · 0.50
SplitFunction · 0.50

Tested by

no test coverage detected