Spec-Zone.ru › TensorFlow C++

tensorflow::ops::ScatterMul

#include <state_ops.h>

Умножает разреженные обновления на ссылку на переменную.

Краткое описание

Эта операция вычисляет

# 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, ...]

После выполнения обновления эта операция возвращает ref. Это упрощает объединение в цепочку операций, которым требуется использовать сброшенное значение.

Повторяющиеся записи обрабатываются корректно: если несколько indices ссылаются на одно и то же расположение, их значения перемножаются.

Требуется updates.shape = indices.shape + ref.shape[1:] или updates.shape = [].

Аргументы:

  • scope: объект Scope
  • ref: Должен поступать из узла Variable.
  • indices: Тензор индексов первого измерения ref.
  • updates: Тензор обновлённых значений, которые нужно умножить на ref.

Необязательные атрибуты (см. Attrs):

  • use_locking: Если задано значение True, операция будет защищена блокировкой; в противном случае поведение не определено, но конкуренция за ресурс может быть ниже.

Возвращает:

  • Output: = То же, что и ref. Возвращается для удобства операций, которым нужно использовать обновлённые значения после завершения обновления.
Конструкторы и деструкторы
ScatterMul(const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates)
ScatterMul(const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterMul::Attrs & attrs)
Открытые атрибуты
operation
Operation
output_ref
::tensorflow::Output
Открытые функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Открытые статические функции
UseLocking(bool x)
Attrs
Структуры
tensorflow::ops::ScatterMul::Attrs

Настройки необязательных атрибутов для ScatterMul.

Открытые атрибуты

operation

Operation operation

output_ref

::tensorflow::Output output_ref

Открытые функции

ScatterMul

 ScatterMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates
)

ScatterMul

 ScatterMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates,
  const ScatterMul::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Открытые статические функции

UseLocking

Attrs UseLocking(
  bool x
)

© 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/cc/class/tensorflow/ops/scatter-mul

Spec-Zone.ru

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