tf.train.limit_epochs(
tensor,
num_epochs=None,
name=None
)
Defined in tensorflow/python/training/input.py
.
Returns tensor num_epochs
times and then raises an OutOfRange
error. (deprecated)
Args:
tensor
: AnyTensor
.num_epochs
: A positive integer (optional). If specified, limits the number of steps the output tensor may be evaluated.name
: A name for the operations (optional).
Returns:
tensor or OutOfRange
.
Raises:
ValueError
: ifnum_epochs
is invalid.