Spec-Zone.ru › TensorFlow C++ 1.15

tensorflow::ops::ScatterSub

#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. Возвращается для удобства операций, которые хотят использовать обновлённые значения после завершения обновления.
Конструкторы и деструкторы
ScatterSub(const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates)
ScatterSub(const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterSub::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::ScatterSub::Attrs

Дополнительные атрибуты-сеттеры для ScatterSub.

Публичные атрибуты

operation

Operation operation

output_ref

::tensorflow::Output output_ref

Публичные функции

ScatterSub

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

ScatterSub

 ScatterSub(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates,
  const ScatterSub::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
)

© 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/r1.15/api_docs/cc/class/tensorflow/ops/scatter-sub

Spec-Zone.ru

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