TensorFlow 1 version | View source on GitHub |
Returns an Optional
that contains the next value from the iterator.
tf.data.experimental.get_next_as_optional(
iterator
)
If iterator
has reached the end of the sequence, the returned Optional
will have no value.
Args | |
---|---|
iterator
|
An iterator for an instance of tf.data.Dataset .
|
Returns | |
---|---|
An Optional object representing the next value from the iterator (if it
has one) or no value.
|