mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 18:26:37 +08:00
add to_buffer at the end of data_iter
This commit is contained in:
parent
bd6d910ca3
commit
04c18832ab
@ -48,6 +48,7 @@ def prepare_dataset(batch_size, split, root=None):
|
|||||||
.batch(batch_size)
|
.batch(batch_size)
|
||||||
.to_stream()
|
.to_stream()
|
||||||
.prefetch(4, 4)
|
.prefetch(4, 4)
|
||||||
|
.to_buffer()
|
||||||
)
|
)
|
||||||
return data_iter
|
return data_iter
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user