TFRecords and record shuffling

前端 未结 2 1831
一整个雨季
一整个雨季 2021-02-19 07:15

My understanding is that it is good practice to shuffle training samples for each epoch so that each mini-batch contains a nice random sample of the entire dataset. If I convert

2条回答
  •  旧时难觅i
    2021-02-19 07:27

    Actually now you don't have to worry about shuffling before saving to TFRecords. It's because (currently) recommended method to read TFRecords uses tf.data.TFRecordDataset which implements .shuffle() method.

提交回复
热议问题