tensorflow::ops::TemporaryVariable

#include <state_ops.h>

Restituisce un tensore che può essere modificato, ma persiste solo per un singolo passaggio.

Riepilogo

Si tratta di un'operazione sperimentale destinata esclusivamente all'uso interno ed è possibile utilizzarla in modo non sicuro. NON UTILIZZARE se non si comprendono appieno i rischi.

È responsabilità del chiamante assicurarsi che 'ref' venga infine passato a un'operazione ' DestroyTemporaryVariable ' corrispondente dopo che tutti gli altri utilizzi sono stati completati.

Restituisce un riferimento allo stato del tensore in modo che possa essere letto o modificato.

Ad esempio, var = state_ops._temporary_variable([1, 2],types.float_) var_name = var.op.name var = state_ops.assign(var, [[4.0, 5.0]]) var = state_ops.assign_add(var, [[6.0, 7.0]]) final = state_ops._destroy_temporary_variable(var, nome_var=nome_var)

Argomentazioni:

  • ambito: un oggetto Scope
  • forma: La forma del tensore variabile.
  • dtype: Il tipo di elementi nel tensore delle variabili.

Attributi opzionali (vedere Attrs ):

  • var_name: Sovrascrive il nome utilizzato per la risorsa variabile temporanea. Il valore predefinito è il nome dell'operazione ' TemporaryVariable ' (che è garantito essere univoco).

Resi:

  • Output : Un riferimento al tensore delle variabili.

Costruttori e distruttori

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

attributi pubblici

operation
ref

Funzioni pubbliche

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

Funzioni statiche pubbliche

VarName (StringPiece x)

Strutture

tensorflow::ops::TemporaryVariable::Attrs

Impostatori di attributi opzionali per TemporaryVariable .

attributi pubblici

operazione

Operation operation

rif.

::tensorflow::Output ref

Funzioni pubbliche

Variabile Temporanea

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

Variabile Temporanea

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

nodo

::tensorflow::Node * node() const 

operatore::tensorflow::Input

 operator::tensorflow::Input() const 

operatore::tensoreflusso::output

 operator::tensorflow::Output() const 

Funzioni statiche pubbliche

Nome variabile

Attrs VarName(
  StringPiece x
)