tf.raw_ops.ResourceCountUpTo
Увеличивает переменную, на которую указывает 'resource', до тех пор, пока она не достигнет 'limit'.
tf.raw_ops.ResourceCountUpTo(
resource, limit, T, name=None
)
| Аргументы | |
|---|---|
resource | A Tensor типа resource. Должен быть из скалярного узла Variable. |
limit | Целое число. Если увеличение ref приведет к значению выше limit, вместо этого генерируется ошибка 'OutOfRange'. |
T | tf.DType из: tf.int32, tf.int64. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
A Tensor типа T. |
© 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/versions/r2.9/api_docs/python/tf/raw_ops/ResourceCountUpTo