Skip to content

Commit 8c70183

Browse files
committed
Polish function names
1 parent b789a3a commit 8c70183

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

paddle/fluid/operators/reader/buffered_reader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class BufferedReader : public framework::DecoratedReader {
5353

5454
// The buffer for reading data.
5555
// NOTE: the simplest way to implement buffered reader is do not use any
56-
// buffer, just async read and create futures as buffer size. However, to
57-
// malloc Tensor every time is extremely slow. Here we store all data in
56+
// buffer, just read async and create futures as buffer size. However, to
57+
// malloc tensors every time is extremely slow. Here we store all data in
5858
// buffers and prevent alloc every time.
5959
std::vector<TensorVec> cpu_buffer_;
6060
std::vector<TensorVec> gpu_buffer_;

paddle/fluid/operators/reader/open_files_op.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class PreemptiveReaderContainer : public IReaderContainer {
134134
} else {
135135
*out = item.data_;
136136
// continue read async
137-
AsyncRead(item.reader_it_, &future_it);
137+
ReadAsync(item.reader_it_, &future_it);
138138
}
139139
} else {
140140
out->clear();
@@ -151,10 +151,10 @@ class PreemptiveReaderContainer : public IReaderContainer {
151151
auto future_it = futures_.end();
152152
--future_it;
153153

154-
AsyncRead(reader_it, &future_it);
154+
ReadAsync(reader_it, &future_it);
155155
}
156156

157-
void AsyncRead(const ReaderList::iterator& reader_it,
157+
void ReadAsync(const ReaderList::iterator& reader_it,
158158
FutureList::iterator* future_it_ptr) {
159159
auto& future_it = *future_it_ptr;
160160
*future_it = pool_.enqueue([reader_it, future_it, this] {

0 commit comments

Comments
 (0)