tensorflow :: ops :: FusedBatchNorm

#include <nn_ops.h>

Normalisasi batch.

Ringkasan

Perhatikan bahwa ukuran Tensor 4D ditentukan oleh "NHWC" atau "NCHW". Ukuran Tensor 1D sesuai dengan dimensi C dari Tensor 4D.

Argumen:

  • scope: Objek Scope
  • x: Tensor 4D untuk input data.
  • scale: Tensor 1D untuk faktor penskalaan, untuk menskalakan x yang dinormalisasi.
  • offset: Tensor 1D untuk offset, untuk menggeser ke x yang dinormalisasi.
  • mean: Tensor 1D untuk mean populasi. Digunakan hanya untuk inferensi; harus kosong untuk pelatihan.
  • variance: Tensor 1D untuk varians populasi. Digunakan hanya untuk inferensi; harus kosong untuk pelatihan.

Atribut opsional (lihat Attrs ):

  • epsilon: Bilangan pelampung kecil ditambahkan ke varian x.
  • data_format: Format data untuk x dan y. Bisa "NHWC" (default) atau "NCHW".
  • is_training: Nilai bool untuk menunjukkan operasi untuk pelatihan (default) atau inferensi.

Pengembalian:

  • Output y: Tensor 4D untuk data keluaran.
  • Output batch_mean: Tensor 1D untuk mean batch yang dihitung, yang akan digunakan oleh TensorFlow untuk menghitung mean yang sedang berjalan.
  • Output batch_variance: Tensor 1D untuk varian batch yang dihitung, yang akan digunakan oleh TensorFlow untuk menghitung varian yang sedang berjalan.
  • Output reserve_space_1: Tensor 1D untuk rata-rata batch yang dihitung, untuk digunakan kembali dalam komputasi gradien.
  • Output reserve_space_2: Tensor 1D untuk varian batch yang dihitung (varian terbalik dalam case cuDNN), untuk digunakan kembali dalam komputasi gradien.

Pembuat dan Penghancur

FusedBatchNorm (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input scale, :: tensorflow::Input offset, :: tensorflow::Input mean, :: tensorflow::Input variance)
FusedBatchNorm (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input scale, :: tensorflow::Input offset, :: tensorflow::Input mean, :: tensorflow::Input variance, const FusedBatchNorm::Attrs & attrs)

Atribut publik

batch_mean
batch_variance
operation
reserve_space_1
reserve_space_2
y

Fungsi statis publik

DataFormat (StringPiece x)
Epsilon (float x)
ExponentialAvgFactor (float x)
IsTraining (bool x)

Structs

tensorflow :: ops :: FusedBatchNorm :: Attrs

Penyetel atribut opsional untuk FusedBatchNorm .

Atribut publik

batch_mean

::tensorflow::Output batch_mean

batch_variance

::tensorflow::Output batch_variance

operasi

Operation operation

reserve_space_1

::tensorflow::Output reserve_space_1

reserve_space_2

::tensorflow::Output reserve_space_2

y

::tensorflow::Output y

Fungsi publik

FusedBatchNorm

 FusedBatchNorm(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input scale,
  ::tensorflow::Input offset,
  ::tensorflow::Input mean,
  ::tensorflow::Input variance
)

FusedBatchNorm

 FusedBatchNorm(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input scale,
  ::tensorflow::Input offset,
  ::tensorflow::Input mean,
  ::tensorflow::Input variance,
  const FusedBatchNorm::Attrs & attrs
)

Fungsi statis publik

Format data

Attrs DataFormat(
  StringPiece x
)

Epsilon

Attrs Epsilon(
  float x
)

ExponentialAvgFactor

Attrs ExponentialAvgFactor(
  float x
)

IsTraining

Attrs IsTraining(
  bool x
)