Searched refs:tf_env_var_val (Results 1 – 5 of 5) 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 = absl::AsciiStrToLower(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()66 const char* tf_env_var_val = getenv(string(env_var_name).c_str()); in ReadFloatFromEnvVar() local67 if (tf_env_var_val == nullptr) { in ReadFloatFromEnvVar()[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()
187 int64 LogLevelStrToInt(const char* tf_env_var_val) { in LogLevelStrToInt() argument188 if (tf_env_var_val == nullptr) { in LogLevelStrToInt()191 return ParseInteger(tf_env_var_val, strlen(tf_env_var_val)); in LogLevelStrToInt()262 const char* tf_env_var_val = getenv("TF_CPP_LOG_THREAD_ID"); in EmitThreadIdFromEnv() local263 return tf_env_var_val == nullptr in EmitThreadIdFromEnv()265 : ParseInteger(tf_env_var_val, strlen(tf_env_var_val)) != 0; in EmitThreadIdFromEnv()280 const char* tf_env_var_val = getenv("TF_CPP_MIN_LOG_LEVEL"); in MinLogLevelFromEnv()281 return LogLevelStrToInt(tf_env_var_val); in MinLogLevelFromEnv()295 const char* tf_env_var_val = getenv("TF_CPP_MAX_VLOG_LEVEL"); in MaxVLogLevelFromEnv()296 return LogLevelStrToInt(tf_env_var_val); in MaxVLogLevelFromEnv()
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()
2884 const char* tf_env_var_val = getenv(EnvVar::kName); in IsEnabledImpl() local2885 if (tf_env_var_val != nullptr) { in IsEnabledImpl()2886 absl::string_view tf_env_var_val_str(tf_env_var_val); in IsEnabledImpl()