przepływ tensorowy:: ops:: Rozrzedzony akumulator warunkowy

#include <data_flow_ops.h>

Akumulator warunkowy do agregowania rzadkich gradientów.

Streszczenie

Akumulator akceptuje gradienty oznaczone parametrem local_step większym lub równym najnowszemu globalnemu krokowi znanemu akumulatorowi. Średnią można pobrać z akumulatora, pod warunkiem, że zgromadzono wystarczające gradienty. Wyodrębnienie średniej automatycznie resetuje agregat do 0 i zwiększa krok globalny zarejestrowany przez akumulator.

Argumenty:

  • zakres: Obiekt Scope
  • dtype: Typ gromadzonej wartości.
  • kształt: Kształt wartości.

Opcjonalne atrybuty (patrz Attrs ):

  • pojemnik: Jeśli nie jest pusty, akumulator ten umieszcza się w danym pojemniku. W przeciwnym razie używany jest kontener domyślny.
  • wspólna_nazwa: Jeśli nie jest pusta, ten akumulator będzie udostępniany pod podaną nazwą w wielu sesjach.

Zwroty:

  • Output : Uchwyt do akumulatora.

Konstruktory i destruktory

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

Atrybuty publiczne

handle
operation

Funkcje publiczne

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Publiczne funkcje statyczne

Container (StringPiece x)
ReductionType (StringPiece x)
SharedName (StringPiece x)

Struktury

tensorflow:: ops:: SparseConditionalAccumulator:: Attrs

Opcjonalne moduły ustawiające atrybuty dla SparseConditionalAccumulator .

Atrybuty publiczne

uchwyt

::tensorflow::Output handle

operacja

Operation operation

Funkcje publiczne

Rozrzedzony akumulator warunkowy

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

Rozrzedzony akumulator warunkowy

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

węzeł

::tensorflow::Node * node() const 

operator::tensorflow::Wejście

 operator::tensorflow::Input() const 

operator::tensorflow::Wyjście

 operator::tensorflow::Output() const 

Publiczne funkcje statyczne

Pojemnik

Attrs Container(
  StringPiece x
)

Typ redukcji

Attrs ReductionType(
  StringPiece x
)

Wspólna nazwa

Attrs SharedName(
  StringPiece x
)