这篇博客讲的很清楚。
注:buffer_size表示在shuffle时缓冲池的大小,影响随机顺序。
The buffer_size in Dataset.shuffle() can affect the randomness of your dataset, and hence the order in which elements are produced.
tensorflow.data.dataset
最新推荐文章于 2025-01-05 09:11:59 发布

这篇博客讲的很清楚。
注:buffer_size表示在shuffle时缓冲池的大小,影响随机顺序。
The buffer_size in Dataset.shuffle() can affect the randomness of your dataset, and hence the order in which elements are produced.