tensorflow :: ops :: SparseConditionalAccumulator

#include <data_flow_ops.h>

Akumulator bersyarat untuk menggabungkan gradien renggang.

Ringkasan

Akumulator menerima gradien yang ditandai dengan local_step yang lebih besar atau sama dengan global_step terbaru yang diketahui akumulator. Rata-rata dapat diekstraksi dari akumulator, asalkan gradien yang cukup telah diakumulasikan. Mengekstrak rata-rata secara otomatis menyetel ulang agregat ke 0, dan menambah global_step yang direkam oleh akumulator.

Argumen:

  • scope: Objek Scope
  • dtype: Jenis nilai yang diakumulasikan.
  • bentuk: Bentuk nilai.

Atribut opsional (lihat Attrs ):

  • container: Jika tidak kosong, akumulator ini ditempatkan di container yang diberikan. Jika tidak, penampung default digunakan.
  • shared_name: Jika tidak kosong, akumulator ini akan dibagikan dengan nama yang diberikan di beberapa sesi.

Pengembalian:

  • Output : Pegangan ke akumulator.

Pembuat dan Penghancur

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

Atribut publik

handle
operation

Fungsi publik

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

Fungsi statis publik

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

Structs

tensorflow :: ops :: SparseConditionalAccumulator :: Attrs

Penyetel atribut opsional untuk SparseConditionalAccumulator .

Atribut publik

menangani

::tensorflow::Output handle

operasi

Operation operation

Fungsi publik

SparseConditionalAccumulator

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

SparseConditionalAccumulator

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

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

Wadah

Attrs Container(
  StringPiece x
)

ReductionType

Attrs ReductionType(
  StringPiece x
)

SharedName

Attrs SharedName(
  StringPiece x
)