Skip to content

Commit

Permalink
fix dump field (PaddlePaddle#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmxdream authored Oct 26, 2022
1 parent 0e31882 commit cff4bea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions paddle/fluid/framework/data_feed.h
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ class DataFeed {
return ins_content_vec_;
}
virtual int GetCurBatchSize() { return batch_size_; }
virtual void SetCurBatchSize(const int batch_size) { batch_size_ = batch_size; }
virtual void LoadIntoMemory() {
PADDLE_THROW(platform::errors::Unimplemented(
"This function(LoadIntoMemory) is not implemented."));
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/framework/ps_gpu_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ void PSGPUWorker::TrainFiles() {
if (cur_batch <= 0) {
break;
}

device_reader_->SetCurBatchSize(cur_batch);
total_ins_num += cur_batch;

if (shape_check_flag_.load()) {
Expand Down

0 comments on commit cff4bea

Please sign in to comment.