tf.data.experimental.get_next_as_optional
Возвращает tf.experimental.Optional с следующим элементом итератора. (устарело)
tf.data.experimental.get_next_as_optional(
iterator
)
Если итератор достиг конца последовательности, возвращаемый tf.experimental.Optional не будет содержать значения.
| Аргументы | |
|---|---|
iterator | A tf.data.Iterator. |
| Возвращаемое значение | |
|---|---|
Объект tf.experimental.Optional, который либо содержит следующий элемент итератора (если он существует), либо не содержит значения. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/data/experimental/get_next_as_optional