Spec-Zone.ru › TensorFlow C++

tensorflow::ops::ConditionalAccumulator

#include <data_flow_ops.h>

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

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

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

Аргументы:

  • 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 

Общедоступные статические функции

Контейнер

Attrs Container(
  StringPiece x
)

ТипСведения

Attrs ReductionType(
  StringPiece x
)

ИмяДляОбмена

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