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

Function main

tensorflow/core/platform/platform_strings_test.cc:132–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132int main(int argc, char *argv[]) {
133 tensorflow::Env *env = tensorflow::Env::Default();
134 static const char usage[] = "usage: platform_strings_test [file...]";
135 int rc = 0;
136 tensorflow::port::InitMain(usage, &argc, &argv);
137 if (argc == 1) {
138 printf("rc=%d\n", PrintStrings(env->GetExecutablePath()));
139 rc = RunTest(env->GetExecutablePath());
140 } else {
141 for (int argn = 1; argn != argc; argn++) {
142 rc |= PrintStrings(argv[argn]);
143 }
144 }
145 return rc;
146}

Callers

nothing calls this directly

Calls 5

DefaultFunction · 0.85
PrintStringsFunction · 0.85
GetExecutablePathMethod · 0.80
RunTestFunction · 0.70
InitMainFunction · 0.50

Tested by

no test coverage detected