tensorflow :: ops :: TemporaryVariable
#include <state_ops.h>
변형 될 수 있지만 단일 단계 내에서만 지속되는 텐서를 반환합니다.
요약
이것은 내부 용으로 만 실험적인 작업이며 안전하지 않은 방식으로이 작업을 사용할 수 있습니다. 위험을 완전히 이해하지 않는 한 사용하지 마십시오.
다른 모든 사용이 완료된 후 'ref'가 결국 일치하는 ' DestroyTemporaryVariable'op에 전달되도록하는 것은 호출자의 책임입니다.
참조를 텐서 상태로 출력하여 읽거나 수정할 수 있습니다.
예 : 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, var_name = var_name)
인수 :
- 범위 : 범위 개체
- shape : 가변 텐서의 모양.
- 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) |
구조체 | |
---|---|
tensorflow :: ops :: TemporaryVariable :: Attrs | TemporaryVariable에 대한 선택적 속성 setter입니다. |
공용 속성
조작
Operation operation
심판
::tensorflow::Output ref
공공 기능
TemporaryVariable
TemporaryVariable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype )
TemporaryVariable
TemporaryVariable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const TemporaryVariable::Attrs & attrs )
마디
::tensorflow::Node * node() const
연산자 :: tensorflow :: 입력
operator::tensorflow::Input() const
연산자 :: tensorflow :: 출력
operator::tensorflow::Output() const
공개 정적 함수
VarName
Attrs VarName( StringPiece x )