tensorflow::ops::DestroyTemporaryVariable

#include <state_ops.h>

Menghapus variabel sementara dan mengembalikan nilai akhirnya.

Ringkasan

Mengatur output ke nilai Tensor yang ditunjuk oleh 'ref', kemudian menghancurkan variabel sementara yang disebut 'var_name'. Semua penggunaan 'ref' lainnya harus telah dieksekusi sebelum operasi ini. Hal ini biasanya dicapai dengan merantai ref melalui setiap operasi penugasan, atau dengan menggunakan ketergantungan kontrol.

Menampilkan nilai akhir dari tensor yang ditunjuk oleh 'ref'.

Argumen:

  • Cakupan: Objek Cakupan
  • ref: Referensi ke variabel sementara tensor.
  • var_name: Nama variabel sementara, biasanya nama dari operasi ' TemporaryVariable ' yang sesuai.

Mengembalikan:

Konstruktor dan Destruktor

DestroyTemporaryVariable (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, StringPiece var_name)

Atribut publik

operation
value

Fungsi publik

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

Atribut publik

operasi

Operation operation

nilai

::tensorflow::Output value

Fungsi publik

HancurkanVariabelSementara

 DestroyTemporaryVariable(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  StringPiece var_name
)

simpul

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const