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

Method SetLogging

tensorflow/core/distributed_runtime/session_mgr.cc:178–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void SessionMgr::SetLogging(bool active) {
179 mutex_lock l(mu_);
180 this->is_logging_active_ = active;
181 // Legacy Session
182 if (legacy_session_) {
183 auto* worker_cache = legacy_session_->worker_cache.get();
184 if (worker_cache) {
185 worker_cache->SetLogging(active);
186 }
187 }
188
189 for (const auto& session_kv : sessions_) {
190 auto session = session_kv.second.get();
191 if (session) {
192 auto* worker_cache = session->worker_cache.get();
193 if (worker_cache) {
194 worker_cache->SetLogging(active);
195 }
196 }
197 }
198}
199
200void SessionMgr::RetrieveLogs(tensorflow::int64 step_id,
201 LoggingResponse* response) {

Callers 2

SetRPCLoggingMethod · 0.45
CreateSessionMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected