텐서플로우:: ops:: 임시변수

#include <state_ops.h>

변경될 수 있지만 단일 단계 내에서만 유지되는 텐서를 반환합니다.

요약

이 작업은 내부 사용만을 위한 실험적인 작업이며, 안전하지 않은 방식으로 사용될 가능성이 있습니다. 위험성을 완전히 이해하지 못한 경우에는 절대 사용하지 마십시오.

호출자는 다른 모든 사용이 완료된 후 'ref'가 일치하는 ' DestroyTemporaryVariable ' 작업에 전달되도록 보장해야 할 책임이 있습니다.

텐서 상태에 대한 참조를 출력하여 읽거나 수정할 수 있도록 합니다.

예: var = state_ops._temporary_variable([1, 2], type.float_) var_name = var.op.name var = state_ops.ass(var, [[4.0, 5.0]]) var = state_ops.sign_add(var, [[6.0, 7.0]]) final = state_ops._destroy_temporary_variable(var, var_name=var_name)

논거:

  • 범위: Scope 객체
  • 형태: 변수 텐서의 형태.
  • dtype: 변수 텐서의 요소 유형입니다.

선택적 속성( Attrs 참조):

  • var_name: 임시 변수 리소스에 사용되는 이름을 재정의합니다. 기본값은 ' TemporaryVariable ' 연산의 이름이며, 이는 고유성이 보장됩니다.

보고:

  • Output : 변수 텐서에 대한 참조입니다.

생성자와 소멸자

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

공개 속성

operation
ref

공공 기능

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

공개 정적 함수

VarName (StringPiece x)

구조

텐서플로우:: ops:: 임시변수:: 속성

TemporaryVariable 에 대한 선택적 속성 설정기입니다.

공개 속성

작업

Operation operation

참고

::tensorflow::Output ref

공공 기능

임시변수

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

임시변수

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

마디

::tensorflow::Node * node() const 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const 

공개 정적 함수

변수 이름

Attrs VarName(
  StringPiece x
)