MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / GetDumpPath

Method GetDumpPath

paddle/fluid/framework/ps_gpu_trainer.cc:244–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244std::string PSGPUTrainer::GetDumpPath(int tid) {
245 if (user_define_dump_filename_ != "") {
246 return string::format_string("%s/part-%s-%05d",
247 dump_fields_path_.c_str(),
248 user_define_dump_filename_.c_str(),
249 tid);
250 }
251 return string::format_string(
252 "%s/part-%03d-%05d", dump_fields_path_.c_str(), mpi_rank_, tid);
253}
254
255void PSGPUTrainer::RegisterHeterCallback() {
256 /*

Callers

nothing calls this directly

Calls 2

format_stringFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected