tensorflow :: ops :: BiasAdd

#include <nn_ops.h>

Menambahkan bias pada value .

Ringkasan

Ini adalah kasus khusus tf.add mana bias dibatasi menjadi 1-D. Penyiaran didukung, jadi value dapat memiliki sejumlah dimensi.

Argumen:

  • scope: Objek Scope
  • Nilai: Setiap sejumlah dimensi.
  • bias: 1-D dengan ukuran dimensi value .

Atribut opsional (lihat Attrs ):

  • data_format: Menentukan format data dari data masukan dan keluaran. Dengan format default "NHWC", tensor bias akan ditambahkan ke dimensi terakhir dari nilai tensor. Alternatifnya, formatnya bisa "NCHW", urutan penyimpanan data: [batch, in_channels, in_height, in_width]. Tensor akan ditambahkan ke "in_channels", dimensi ketiga hingga terakhir.

Pengembalian:

  • Output : Jumlah value dan bias disiarkan.

Pembangun dan Penghancur

BiasAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input value, :: tensorflow::Input bias)
BiasAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input value, :: tensorflow::Input bias, const BiasAdd::Attrs & attrs)

Atribut publik

operation
output

Fungsi publik

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

Fungsi statis publik

DataFormat (StringPiece x)

Structs

tensorflow :: ops :: BiasAdd :: Attrs

Penyetel atribut opsional untuk BiasAdd .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

BiasAdd

 BiasAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  ::tensorflow::Input bias
)

BiasAdd

 BiasAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  ::tensorflow::Input bias,
  const BiasAdd::Attrs & attrs
)

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

Format data

Attrs DataFormat(
  StringPiece x
)