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

Function TimestampFor

tensorflow/compiler/xla/service/dump.cc:297–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295} // namespace
296
297string TimestampFor(const HloModule& module) {
298 if (!module.config().debug_options().xla_dump_include_timestamp()) {
299 return "";
300 }
301 tensorflow::mutex_lock lock(mu);
302 auto timestamp_emplace = module_id_to_timestamp.try_emplace(
303 module.unique_id(), tensorflow::Env::Default()->NowMicros());
304 return std::to_string(timestamp_emplace.first->second);
305}
306
307string FilenameFor(const HloModule& module, string_view prefix,
308 string_view suffix) {

Calls 5

DefaultFunction · 0.85
to_stringFunction · 0.85
configMethod · 0.45
unique_idMethod · 0.45
NowMicrosMethod · 0.45

Tested by

no test coverage detected