tensorflow:: ops:: SparseConditionalAccumulator

#include <data_flow_ops.h>

Akumulator warunkowy służący do agregacji rzadkich 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.

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

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 settery atrybutów dla SparseConditionalAccumulator .

Atrybuty publiczne

uchwyt

::tensorflow::Output handle

działanie

Operation operation

Funkcje publiczne

SparseConditionalAccumulator

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

SparseConditionalAccumulator

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