diff --git a/doc/design/cpp_data_feeding.md b/doc/design/cpp_data_feeding.md index 0d2b571d1e..6f7713d949 100644 --- a/doc/design/cpp_data_feeding.md +++ b/doc/design/cpp_data_feeding.md @@ -6,7 +6,7 @@ In this document, we show the fundamental design of a C++ data feeding process, ## Overview -![](images/readers.pdf) +![](images/readers.png) ## Reader @@ -85,7 +85,7 @@ All `FileReader` binds with a single file and are single-threaded. However, some So `MultipleReader` is introduced. It is also derived from `ReaderBase`. A `MultipleReader` holds several prefetching `FileReaders` and these readers run concurrently. Another pivotal part of a `MultipleReader` is a buffer channel. The channel collects data yield by all prefetching readers and makes subsequent OPs or decorated readers be able to fetch data without concerning about multiple readers scheduling. -![](images/multiple_reader.pdf) +![](images/multiple_reader.png) This graph shows how a `MultipleReader` works with three prefetching file readers and two GPUs. There is a queue of files which are going to be read. Each time when a prefetching file reader is free(complete reading from one file), it fetches a new file from the queue. Each prefetching file reader runs in a separated prefetch thread and dumps their outputs to the same channel. diff --git a/doc/design/images/multiple_reader.pdf b/doc/design/images/multiple_reader.pdf deleted file mode 100644 index 61d01617cb..0000000000 Binary files a/doc/design/images/multiple_reader.pdf and /dev/null differ diff --git a/doc/design/images/multiple_reader.png b/doc/design/images/multiple_reader.png new file mode 100644 index 0000000000..b22126b31d Binary files /dev/null and b/doc/design/images/multiple_reader.png differ diff --git a/doc/design/images/readers.pdf b/doc/design/images/readers.pdf deleted file mode 100644 index e2c1988cbd..0000000000 Binary files a/doc/design/images/readers.pdf and /dev/null differ diff --git a/doc/design/images/readers.png b/doc/design/images/readers.png new file mode 100644 index 0000000000..fd59168ce1 Binary files /dev/null and b/doc/design/images/readers.png differ