Spec-Zone.ru › TensorFlow C++

tensorflow::ops::ConditionalAccumulator

#include <data_flow_ops.h>

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

Сводка

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

Аргументы:

  • scope: объект Scope
  • dtype: тип накапливаемого значения.
  • shape: форма значений; может быть [], в этом случае форма неизвестна.

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

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

Возвращает:

  • Output: дескриптор аккумулятора.
Конструкторы и деструкторы
ConditionalAccumulator(const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape)
ConditionalAccumulator(const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const ConditionalAccumulator::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::ConditionalAccumulator::Attrs

Методы задания необязательных атрибутов для ConditionalAccumulator.

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

handle

::tensorflow::Output handle

operation

Operation operation

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

ConditionalAccumulator

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

ConditionalAccumulator

 ConditionalAccumulator(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  PartialTensorShape shape,
  const ConditionalAccumulator::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/conditional-accumulator

Spec-Zone.ru

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