tf.raw_ops.ResourceScatterUpdate
Применяет разреженные обновления к переменной, на которую ссылается resource.
tf.raw_ops.ResourceScatterUpdate(
resource, indices, updates, name=None
)
Эта операция вычисляет
# Scalar indices ref[indices, ...] = updates[...] # Vector indices (for each i) ref[indices[i], ...] = updates[i, ...] # High rank indices (for each i, ..., j) ref[indices[i, ..., j], ...] = updates[i, ..., j, ...]
| Аргументы | |
|---|---|
resource | Tensor типа resource. Должен поступать из узла Variable. |
indices | Tensor. Допустимые типы: int32, int64. Тензор индексов в первом измерении ref. |
updates | Tensor. Тензор обновлённых значений, которые нужно добавить к ref. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
| Созданная операция. |
© 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/raw_ops/ResourceScatterUpdate