tensorflow :: ops :: Akumulator Bersyarat
#include <data_flow_ops.h>
Akumulator bersyarat untuk menggabungkan gradien.
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.
- shape: Bentuk nilai, bisa [], dalam hal ini shape tidak diketahui.
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 | |
---|---|
ConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape) | |
ConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const ConditionalAccumulator::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 :: ConditionalAccumulator :: Attrs | Penyetel atribut opsional untuk ConditionalAccumulator . |
Atribut publik
menangani
::tensorflow::Output handle
operasi
Operation operation
Fungsi publik
Akumulator Bersyarat
ConditionalAccumulator( const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape )
Akumulator Bersyarat
ConditionalAccumulator( const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const ConditionalAccumulator::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 )