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

Method SaveThreadName

tensorflow/core/common_runtime/step_stats_collector.cc:431–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void StepStatsCollector::SaveThreadName(const string& device,
432 const uint32 thread_id,
433 const string& thread_name) {
434 VLOG(1) << "Save dev " << device << " thread id " << thread_id << " name "
435 << thread_name;
436 {
437 mutex_lock l(mu_);
438 if (finalized_) {
439 LOG(WARNING) << "thread_name saved after finalize will not be collected.";
440 }
441 auto& thread_names_map = thread_names_[device];
442 thread_names_map[thread_id] = thread_name;
443 }
444}
445
446NodeExecStatsInterface* StepStatsCollector::CreateNodeExecStats(
447 const NodeDef* node) {

Callers 1

CollectDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected