How can I use tf.data Datasets in eager execution mode?

后端 未结 2 568
日久生厌
日久生厌 2021-01-02 01:56

In the tf.data talk at the TensorFlow Dev Summit 2018, Derek Murray presented a way to combine the tf.data API with TensorFlow\'s eager execution mode (at 10:54). I tried ou

2条回答
  •  自闭症患者
    2021-01-02 02:19

    With TF 2.1,

    You can create an iterator like so:

    iterator = iter(dataset)
    

    And get the next batch of values:

    batch = iterator.get_next()
    

提交回复
热议问题