Spec-Zone.ru › TensorFlow

tf.compat.v1.train.limit_epochs

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

tf.compat.v1.train.limit_epochs(
    tensor, num_epochs=None, name=None
)
Deprecated: 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
tensor Any Tensor.
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 if num_epochs is invalid.

© 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/compat/v1/train/limit_epochs

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API