Spec-Zone.ru › TensorFlow C++ 2.4

tensorflow::ops::SparseConditionalAccumulator

#include <data_flow_ops.h>

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

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

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

Аргументы:

  • 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
)

Тип_редукции

Attrs ReductionType(
  StringPiece x
)

Идентификатор_совместного_использования

Attrs SharedName(
  StringPiece x
)

© 2020 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/versions/r2.4/api_docs/cc/class/tensorflow/ops/sparse-conditional-accumulator

Spec-Zone.ru

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