add to_buffer at the end of data_iter

This commit is contained in:
sakares 2024-11-20 17:36:28 +08:00
parent bd6d910ca3
commit 04c18832ab

View File

@ -48,6 +48,7 @@ def prepare_dataset(batch_size, split, root=None):
.batch(batch_size)
.to_stream()
.prefetch(4, 4)
.to_buffer()
)
return data_iter