MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / CreateBoxingLogger

Function CreateBoxingLogger

oneflow/core/graph/task_graph.cpp:270–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270std::unique_ptr<BoxingLogger> CreateBoxingLogger() {
271 if (Singleton<ResourceDesc, ForSession>::Get()->enable_debug_mode()) {
272 return std::unique_ptr<BoxingLogger>(
273 new CsvBoxingLogger(StrCat("boxing/log/", GlobalJobDesc().job_id()) + ".csv"));
274 } else {
275 return std::unique_ptr<BoxingLogger>(new NullBoxingLogger());
276 }
277}
278
279Maybe<void> MakeGetterTaskNode4MachineId7ThrdId(
280 const std::vector<CompTaskNode*>& task_nodes,

Callers 1

InitMethod · 0.85

Calls 4

GetFunction · 0.85
StrCatFunction · 0.85
enable_debug_modeMethod · 0.80
job_idMethod · 0.45

Tested by

no test coverage detected