| 47 | namespace { |
| 48 | |
| 49 | bool ReadBoolFromEnvVar(StringPiece env_var_name, bool default_val) { |
| 50 | bool val; |
| 51 | if (tensorflow::ReadBoolFromEnvVar(env_var_name, default_val, &val).ok()) { |
| 52 | return val; |
| 53 | } |
| 54 | return default_val; |
| 55 | } |
| 56 | |
| 57 | auto* eager_context_created = |
| 58 | monitoring::Gauge<bool, 0>::New("/tensorflow/core/eager_context_created", |
no test coverage detected