Searched refs:tf_env_var_val (Results 1 – 6 of 6) sorted by relevance
31 const char* tf_env_var_val = getenv(string(env_var_name).c_str()); in ReadBoolFromEnvVar() local32 if (tf_env_var_val == nullptr) { in ReadBoolFromEnvVar()35 string str_value = str_util::Lowercase(tf_env_var_val); in ReadBoolFromEnvVar()45 tf_env_var_val, ". Use the default value: ", default_val)); in ReadBoolFromEnvVar()51 const char* tf_env_var_val = getenv(string(env_var_name).c_str()); in ReadInt64FromEnvVar() local52 if (tf_env_var_val == nullptr) { in ReadInt64FromEnvVar()55 if (strings::safe_strto64(tf_env_var_val, value)) { in ReadInt64FromEnvVar()60 tf_env_var_val, ". Use the default value: ", default_val)); in ReadInt64FromEnvVar()65 const char* tf_env_var_val = getenv(string(env_var_name).c_str()); in ReadStringFromEnvVar() local66 if (tf_env_var_val != nullptr) { in ReadStringFromEnvVar()[all …]
72 int64_t LogLevelStrToInt(const char* tf_env_var_val) { in LogLevelStrToInt() argument73 if (tf_env_var_val == nullptr) { in LogLevelStrToInt()80 std::string min_log_level(tf_env_var_val); in LogLevelStrToInt()92 const char* tf_env_var_val = getenv("TF_CPP_MIN_LOG_LEVEL"); in MinLogLevelFromEnv() local93 return LogLevelStrToInt(tf_env_var_val); in MinLogLevelFromEnv()97 const char* tf_env_var_val = getenv("TF_CPP_MIN_VLOG_LEVEL"); in MinVLogLevelFromEnv() local98 return LogLevelStrToInt(tf_env_var_val); in MinVLogLevelFromEnv()
109 int64 LogLevelStrToInt(const char* tf_env_var_val) { in LogLevelStrToInt() argument110 if (tf_env_var_val == nullptr) { in LogLevelStrToInt()113 return ParseInteger(tf_env_var_val, strlen(tf_env_var_val)); in LogLevelStrToInt()195 const char* tf_env_var_val = getenv("TF_CPP_MIN_LOG_LEVEL"); in MinLogLevelFromEnv()196 return LogLevelStrToInt(tf_env_var_val); in MinLogLevelFromEnv()210 const char* tf_env_var_val = getenv("TF_CPP_MIN_VLOG_LEVEL"); in MinVLogLevelFromEnv()211 return LogLevelStrToInt(tf_env_var_val); in MinVLogLevelFromEnv()
83 int64 LogLevelStrToInt(const char* tf_env_var_val) { in LogLevelStrToInt() argument84 if (tf_env_var_val == nullptr) { in LogLevelStrToInt()87 return ParseInteger(tf_env_var_val, strlen(tf_env_var_val)); in LogLevelStrToInt()
82 const char* tf_env_var_val = getenv(env_var_name); in ReadBoolFromEnvVar() local83 if (tf_env_var_val != nullptr) { in ReadBoolFromEnvVar()84 StringPiece tf_env_var_val_str(tf_env_var_val); in ReadBoolFromEnvVar()
2500 const char* tf_env_var_val = getenv(EnvVar::kName); in IsEnabledImpl() local2501 if (tf_env_var_val != nullptr) { in IsEnabledImpl()2502 absl::string_view tf_env_var_val_str(tf_env_var_val); in IsEnabledImpl()