tensorflow::ops::SparseConditionalAccumulator
#include <data_flow_ops.h>
Условный накопитель для агрегирования разреженных градиентов.
Summary
Накопитель принимает градиенты, помеченные local_step, большим или равным последнему известному глобальному шагу накопителя. Среднее значение можно извлечь из накопителя, если были накоплены достаточные градиенты. Извлечение среднего значения автоматически сбрасывает агрегат в 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 | |
operation | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
Container(StringPiece x) | |
ReductionType(StringPiece x) | |
SharedName(StringPiece x) | |
| Структуры | |
|---|---|
| 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 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-conditional-accumulator