tensorflow 学习笔记-- tf.data.Dataset

参考博客:TensorFlow全新的数据读取方式:Dataset API入门教程

1、创建Dataset的函数:

 tf.data.Dataset.from_tensor_slices

2、对Dataset中的元素做变换

  • map、batch、shuffle、repeat等
  • 3、创建Iterator的方法:
  • 通过dataset.make_one_shot_iterator()来创建一个one shot iterator


猜你喜欢

转载自blog.csdn.net/qq_28808697/article/details/80701338
今日推荐