- 当使用自定义训练时,构建数据集时不需要使用
repeat()
函数;当使用tensorflow
的compile()
和fit()
函数对样本进行训练时,需要使用repeat()
函数 - 当使用构造数据集时使用
repeat()
传递无限重复的数据集时,fit()
函数必须指定steps_per_epoch
参数。
Tensorflow 需要注意的几点
最新推荐文章于 2022-04-07 14:54:02 发布
repeat()
函数;当使用 tensorflow
的compile()
和 fit()
函数对样本进行训练时,需要使用 repeat()
函数repeat()
传递无限重复的数据集时, fit()
函数必须指定steps_per_epoch
参数。