> ## Content Index
> Fetch the complete content index at: https://yinguobing.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# 如何保存TensorFlow数据集进度
- URL: https://yinguobing.com/blog/how-to-checkpoint-tensorflow-dataset/
- Published: 2021-02-05T06:57:59.000Z
- Updated: 2022-05-29T05:13:53.000Z
- Description: 如何在TensorFlow 2中保存训练数据集的消耗进度，以便训练中断后恢复。
- Author: 尹国冰
- Tags: TensorFlow

TensorFlow中的Checkpoint除了可以保存模型权重参数外，还可以保存数据集的消耗进度。

假设你有一个包含300个顺序自然数的数据集，当训练数据读取到150时程序意外中止。如何保存该数据集，以便下一次恢复训练时直接从150开始读取数据？

答案在视频中：

[TensorFlow 2如何保存训练数据集进度\_哔哩哔哩\_bilibili如何在TensorFlow 2中保存训练数据集的消耗进度，以便训练中断后恢复。![](http://i0.hdslb.com/bfs/archive/7d03a5b62366dd69545a9f0b94069143e3d21e3c.jpg@57w_57h_1c.png)真诚友善硬核的流浪AI![](http://i0.hdslb.com/bfs/archive/7d03a5b62366dd69545a9f0b94069143e3d21e3c.jpg)](https://www.bilibili.com/video/BV1yf4y167gr/?ref=yinguobing.com)

更多TensorFlow技巧，敬请关注\~