tensorflow:: ops:: Zmienna

#include <state_ops.h>

Przechowuje stan w formie tensora, który jest zachowywany w kolejnych krokach.

Streszczenie

Wyświetla odwołanie do stanu tensora, który można odczytać lub zmodyfikować. TODO(zhifengc/mrry): Dodaje wskaźnik do bardziej szczegółowego dokumentu na temat udostępniania stanów w tensorflow.

Argumenty:

  • zakres: obiekt zakresu
  • kształt: Kształt tensora zmiennego.
  • dtype: Typ elementów w zmiennej tensor.

Atrybuty opcjonalne (patrz Attrs ):

  • kontener: Jeśli nie jest pusty, ta zmienna jest umieszczana w podanym kontenerze. W przeciwnym razie używany jest kontener domyślny.
  • shared_name: Jeśli nie jest pusta, ta zmienna jest nazywana w danym kontenerze tą nazwą shared_name. W przeciwnym razie używana jest nazwa węzła.

Zwroty:

  • Output : Odwołanie do zmiennej tensora.

Konstruktory i destruktory

Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype)
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs)

Atrybuty publiczne

operation
ref

Funkcje publiczne

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

Publiczne funkcje statyczne

Container (StringPiece x)
SharedName (StringPiece x)

Struktury

tensorflow:: ops:: Zmienna:: Atrybuty

Opcjonalne ustawiacze atrybutów dla zmiennej .

Atrybuty publiczne

działanie

Operation operation

odniesienie

::tensorflow::Output ref

Funkcje publiczne

Zmienny

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype
)

Zmienny

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype,
  const Variable::Attrs & attrs
)

węzeł

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Publiczne funkcje statyczne

Pojemnik

Attrs Container(
  StringPiece x
)

SharedName

Attrs SharedName(
  StringPiece x
)