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

Method InitRandomDumpConfig

paddle/fluid/framework/device_worker.cc:274–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void DeviceWorker::InitRandomDumpConfig(const TrainerDesc& desc) {
275 bool is_dump_in_simple_mode = desc.is_dump_in_simple_mode();
276 if (is_dump_in_simple_mode) {
277 dump_mode_ = 3;
278 dump_num_decimals_ = desc.dump_num_decimals();
279 return;
280 }
281 bool enable_random_dump = desc.enable_random_dump();
282 if (!enable_random_dump) {
283 dump_mode_ = 0;
284 } else {
285 if (desc.random_with_lineid()) {
286 dump_mode_ = 1;
287 } else {
288 dump_mode_ = 2;
289 }
290 }
291 dump_interval_ = desc.dump_interval();
292}
293
294void DeviceWorker::DumpField(
295 const Scope& scope,

Callers 3

InitializeMethod · 0.80
InitializeMethod · 0.80
InitializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected