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

Method GetDumpPath

paddle/fluid/framework/multi_trainer.cc:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79std::string MultiTrainer::GetDumpPath(int tid) {
80 if (!user_define_dump_filename_.empty()) {
81 return string::format_string("%s/part-%s-%05d",
82 dump_fields_path_.c_str(),
83 user_define_dump_filename_.c_str(),
84 tid);
85 }
86 return string::format_string(
87 "%s/part-%03d-%05d", dump_fields_path_.c_str(), mpi_rank_, tid);
88}
89
90void MultiTrainer::InitDumpEnv() {
91 queue_ = paddle::framework::MakeChannel<std::string>();

Callers

nothing calls this directly

Calls 3

format_stringFunction · 0.85
c_strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected