Skip to content

Commit 1666cf9

Browse files
committed
update by comment
1 parent 8855d4a commit 1666cf9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/fluid/howto/cluster/fluid_recordio.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ as follows:
2323
fluid.recordio_writer.convert_reader_to_recordio_file('./mnist.recordio', reader, feeder)
2424
```
2525

26-
The above codes would generate a RecordIO `./mnist.recordio` on your host.
26+
The above code snippet would generate a RecordIO `./mnist.recordio` on your host.
27+
28+
**NOTE**: we recommend users to set `batch_size=1` when generating the recordio files so that users can
29+
adjust it flexibly while reading it.
2730

2831
## Use the RecordIO file in a Local Training Job
2932

@@ -96,7 +99,7 @@ The above codes would generate multiple RecordIO files on your host like:
9699
|-mnist-00004.recordio
97100
```
98101

99-
1. open multiple RecordIO files by `fluid.layers.io.open_files`
102+
2. open multiple RecordIO files by `fluid.layers.io.open_files`
100103

101104
For a distributed training job, the distributed operator system will schedule trainer process on multiple nodes,
102105
each trainer process reads parts of the whole training data, we usually take the following approach to make the training

0 commit comments

Comments
 (0)