tensorflow::ops::Placeholder

#include <array_ops.h>

Sebuah operasi placeholder untuk nilai yang akan dimasukkan ke dalam perhitungan.

Ringkasan

Catatan: Operasi ini akan gagal dengan kesalahan jika dijalankan. Ini dimaksudkan sebagai cara untuk merepresentasikan nilai yang akan selalu dimasukkan, dan untuk menyediakan atribut yang memungkinkan nilai yang dimasukkan diperiksa saat runtime.

Argumen:

  • Cakupan: Objek Cakupan
  • dtype: Tipe elemen dalam tensor.

Atribut opsional (lihat Attrs ):

  • bentuk: (Opsional) Bentuk tensor. Jika bentuk memiliki 0 dimensi, bentuk tersebut tidak dibatasi.

Mengembalikan:

  • Output : Sebuah tensor placeholder yang harus diganti menggunakan mekanisme feed.

Konstruktor dan Destruktor

Placeholder (const :: tensorflow::Scope & scope, DataType dtype)
Placeholder (const :: tensorflow::Scope & scope, DataType dtype, const Placeholder::Attrs & attrs)

Atribut publik

operation
output

Fungsi publik

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

Fungsi statis publik

Shape (PartialTensorShape x)

Struktur

tensorflow::ops::Placeholder::Attrs

Pengaturan atribut opsional untuk Placeholder .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

Placeholder

 Placeholder(
  const ::tensorflow::Scope & scope,
  DataType dtype
)

Placeholder

 Placeholder(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  const Placeholder::Attrs & attrs
)

simpul

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Fungsi statis publik

Membentuk

Attrs Shape(
  PartialTensorShape x
)