buffered

paddle.fluid.io.buffered(reader, size)[source]

Creates a buffered data reader.

The buffered data reader will read and save data entries into a buffer. Reading from the buffered data reader will proceed as long as the buffer is not empty.

Parameters
  • reader (callable) – the data reader to read from.

  • size (int) – max buffer size.

Returns

the buffered data reader.