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 | A Tensor типа resource. Должен быть из узла Variable |
indices | A Tensor. Должен быть одного из следующих типов: int32, int64. Массив индексов в первом измерении ref. |
updates | A Tensor. Массив обновленных значений для добавления к ref. |
name | Имя операции (необязательно). |
| Возвращаемые значения | |
|---|---|
| Созданная операция. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/raw_ops/ResourceScatterUpdate