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

Function GetEnvVar

tensorflow/core/platform/cloud/gcs_file_system.h:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55// value of type T.
56template <typename T>
57bool GetEnvVar(const char* varname, bool (*convert)(StringPiece, T*),
58 T* value) {
59 const char* env_value = std::getenv(varname);
60 if (env_value == nullptr) {
61 return false;
62 }
63 return convert(env_value, value);
64}
65
66/// GcsStatsInterface allows for instrumentation of the GCS file system.
67///

Callers 1

GcsFileSystemMethod · 0.70

Calls 1

convertFunction · 0.50

Tested by

no test coverage detected