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

Function DebugOptionsPassThroughEnabled

tensorflow/compiler/xrt/xrt_util.cc:110–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108};
109
110bool DebugOptionsPassThroughEnabled() {
111 const char* env = getenv("TF_XLA_DEBUG_OPTIONS_PASSTHROUGH");
112 bool enabled =
113 env != nullptr && (strcmp(env, "1") == 0 || strcmp(env, "true") == 0);
114 if (enabled) {
115 LOG(WARNING) << "Passing through XLA debug options!";
116 } else {
117 LOG(WARNING) << "TF_XLA_DEBUG_OPTIONS_PASSTHROUGH not set, not all options "
118 "will be retained";
119 }
120 return enabled;
121}
122
123string SafeDebugPath(const string& path) {
124 if (path.empty() || path.compare(0, 5, "gs://") == 0 ||

Callers 1

BuildXlaDebugOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected