tensorflow:: ops:: ConditionalAccumulator

#include <data_flow_ops.h>

Akumulator warunkowy do agregacji gradientów.

Streszczenie

Akumulator akceptuje gradienty oznaczone parametrem local_step, które są większe lub równe najnowszemu global_step znanemu akumulatorowi. Średnią można wyliczyć z akumulatora, pod warunkiem zgromadzenia wystarczającej liczby gradientów. Wyliczenie średniej automatycznie resetuje agregat do 0 i zwiększa global_step zarejestrowany przez akumulator.

Argumenty:

  • zakres: obiekt zakresu
  • dtype: Typ gromadzonej wartości.
  • kształt: Kształt wartości może być [], w takim przypadku kształt jest nieznany.

Atrybuty opcjonalne (patrz Attrs ):

  • Kontener: Jeśli nie jest pusty, ten akumulator jest umieszczany w podanym kontenerze. W przeciwnym razie używany jest kontener domyślny.
  • shared_name: Jeśli nie jest pusty, ten akumulator będzie współdzielony pod podaną nazwą w wielu sesjach.

Zwroty:

  • Output : Uchwyt 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 settery atrybutów dla ConditionalAccumulator .

Atrybuty publiczne

uchwyt

::tensorflow::Output handle

działanie

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::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Publiczne funkcje statyczne

Pojemnik

Attrs Container(
  StringPiece x
)

Typ redukcji

Attrs ReductionType(
  StringPiece x
)

SharedName

Attrs SharedName(
  StringPiece x
)