diff --git a/paddle/fluid/framework/device_worker.cc b/paddle/fluid/framework/device_worker.cc index e3115b58f1fb1912b5f47e3265975a2d60b1f272..4aa1690030eab5d957f3d13154a41db97167265a 100644 --- a/paddle/fluid/framework/device_worker.cc +++ b/paddle/fluid/framework/device_worker.cc @@ -458,6 +458,7 @@ void DeviceWorker::DumpField(const Scope& scope, } writer_ << ars[i]; } + writer_.Flush(); } } // namespace framework