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

Function Hostname

tensorflow/core/platform/posix/port.cc:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56void InitMain(const char* usage, int* argc, char*** argv) {}
57
58string Hostname() {
59 char hostname[1024];
60 gethostname(hostname, sizeof hostname);
61 hostname[sizeof hostname - 1] = 0;
62 return string(hostname);
63}
64
65int NumSchedulableCPUs() {
66#if defined(__linux__) && !defined(__ANDROID__)

Callers 7

LookUpSlowMethod · 0.50
LookUpMethod · 0.50
CreateUniqueFileNameMethod · 0.50
CreateContextMethod · 0.50
ExecuteOpMethod · 0.50
InitIfNeededMethod · 0.50
TFE_NewOpFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected