przepływ tensorowy:: ops:: Akumulator warunkowy

#include <data_flow_ops.h>

Akumulator warunkowy do agregacji 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 może wynosić [], w którym to przypadku kształt jest nieznany.

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

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

Opcjonalne moduły ustawiające atrybuty dla ConditionalAccumulator .

Atrybuty publiczne

uchwyt

::tensorflow::Output handle

operacja

Operation operation

Funkcje publiczne

Akumulator warunkowy

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

Akumulator warunkowy

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