Spec-Zone.ru › TensorFlow C++

tensorflow::ops::SparseConditionalAccumulator

#include <data_flow_ops.h>

Условный аккумулятор для агрегирования разреженных градиентов.

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

Аккумулятор принимает градиенты, помеченные значением local_step, большим или равным последнему global_step, известному аккумулятору. Среднее можно извлечь из аккумулятора, если в нём накоплено достаточное количество градиентов. Извлечение среднего автоматически сбрасывает агрегат до 0 и увеличивает значение global_step, сохранённое аккумулятором.

Аргументы:

  • scope: объект Scope
  • dtype: тип накапливаемого значения.
  • shape: форма значений.

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

  • container: если не пустой, этот аккумулятор помещается в указанный контейнер. В противном случае используется контейнер по умолчанию.
  • shared_name: если не пустой, этот аккумулятор будет доступен под указанным именем в нескольких сеансах.

Возвращает:

  • Output: дескриптор аккумулятора.
Конструкторы и деструкторы
SparseConditionalAccumulator(const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape)
SparseConditionalAccumulator(const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const SparseConditionalAccumulator::Attrs & attrs)
Публичные атрибуты
handle
::tensorflow::Output
operation
Operation
Публичные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Публичные статические функции
Container(StringPiece x)
Attrs
ReductionType(StringPiece x)
Attrs
SharedName(StringPiece x)
Attrs
Структуры
tensorflow::ops::SparseConditionalAccumulator::Attrs

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

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

handle

::tensorflow::Output handle

operation

Operation operation

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

SparseConditionalAccumulator

 SparseConditionalAccumulator(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  PartialTensorShape shape
)

SparseConditionalAccumulator

 SparseConditionalAccumulator(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  PartialTensorShape shape,
  const SparseConditionalAccumulator::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

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

Container

Attrs Container(
  StringPiece x
)

ReductionType

Attrs ReductionType(
  StringPiece x
)

SharedName

Attrs SharedName(
  StringPiece 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/sparse-conditional-accumulator

Spec-Zone.ru

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