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

Function ReadStringFromEnvVar

tensorflow/core/util/env_var.cc:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63Status ReadStringFromEnvVar(StringPiece env_var_name, StringPiece default_val,
64 string* value) {
65 const char* tf_env_var_val = getenv(string(env_var_name).c_str());
66 if (tf_env_var_val != nullptr) {
67 *value = tf_env_var_val;
68 } else {
69 *value = string(default_val);
70 }
71 return Status::OK();
72}
73
74} // namespace tensorflow

Callers 15

InitMethod · 0.85
UpdateServerDefMethod · 0.85
cuda_dnn.ccFile · 0.85
GetBlacklistedDynamicOpsFunction · 0.85
GpuGraphCaptureEnabledFunction · 0.85
SegmentGraphFunction · 0.85
SSDHashKVMethod · 0.85
UpdateListMethod · 0.85
IsPseudoFastMathMethod · 0.85
PrintDebugLogsMethod · 0.85
OptimizeMethod · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected