tf.data.experimental.take_while

View source on GitHub

A transformation that stops dataset iteration based on a predicate.

tf.data.experimental.take_while(
    predicate
)

Args:

Returns:

A Dataset transformation function, which can be passed to tf.data.Dataset.apply.