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

Function ParamFromEnvWithDefault

tensorflow/core/framework/run_handler_util.cc:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace tensorflow {
24
25double ParamFromEnvWithDefault(const std::string& var_name,
26 double default_value) {
27 const char* val = std::getenv(var_name.c_str());
28 double num;
29 return (val && strings::safe_strtod(val, &num)) ? num : default_value;
30}
31
32void ComputeInterOpSchedulingRanges(int num_active_requests, int num_threads,
33 int min_threads_per_request,

Callers 2

EnqueueTaskMethod · 0.85

Calls 2

safe_strtodFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected