tf.compat.v1.train.limit_epochs

View source on GitHub

Returns tensor num_epochs times and then raises an OutOfRange error. (deprecated)

tf.compat.v1.train.limit_epochs(
    tensor, num_epochs=None, name=None
)

Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensors(tensor).repeat(num_epochs).

Note: creates local counter epochs. Use local_variables_initializer() to initialize local variables.

Args:

Returns:

tensor or OutOfRange.

Raises: