tensorflow :: ops :: TensorArray
#include <data_flow_ops.h>
주어진 크기의 텐서 배열.
요약
Write를 통해 데이터를 쓰고 Read 또는 Pack을 통해 읽습니다.
인수 :
- 범위 : 범위 개체
- 크기 : 배열의 크기.
- dtype : tensor_array에있는 요소의 유형입니다.
선택적 속성 ( Attrs
참조) :
- element_shape : 알려진 경우 요소의 예상 모양. TensorArray 요소의 모양을 확인하는 데 사용됩니다. 이 모양이 완전히 지정되지 않은 경우 크기가 0 인 TensorArray를 수집하는 것은 오류입니다.
- dynamic_size : TensorArray 에 대한 쓰기가 크기를 늘릴 수 있는지 여부를 결정하는 부울입니다. 기본적으로 이것은 허용되지 않습니다.
- clear_after_read : true (기본값)이면 TensorArray의 Tensor 를 읽은 후 지 웁니다 . 이것은 다중 읽기 의미를 비활성화하지만 메모리의 조기 릴리스를 허용합니다.
- same_element_shapes : true (기본값은 false)이면 TensorArray의 모든 요소가 동일한 모양을 가질 것으로 예상됩니다. 이를 통해 쓰기시 일관된 모양을 동적으로 확인하고 element_shape 속성이 완전히 정의되지 않은 경우에도 스택에서 올바른 모양의 0 텐서를 채울 수있는 것과 같은 특정 동작을 허용합니다.
- tensor_array_name : 임시 tensor_array 리소스에 사용되는 이름을 재정의합니다. 기본값은 ' TensorArray'op 의 이름입니다 (고유하게 보장됨).
보고:
-
Output
핸들 : TensorArray에 대한 핸들입니다. -
Output
흐름 : 기울기 흐름을 제어하는 데 사용되는 스칼라입니다.
생성자와 소멸자 | |
---|---|
TensorArray (const :: tensorflow::Scope & scope, :: tensorflow::Input size, DataType dtype) | |
TensorArray (const :: tensorflow::Scope & scope, :: tensorflow::Input size, DataType dtype, const TensorArray::Attrs & attrs) |
공용 속성 | |
---|---|
flow | |
handle | |
operation |
공개 정적 함수 | |
---|---|
ClearAfterRead (bool x) | |
DynamicSize (bool x) | |
ElementShape (PartialTensorShape x) | |
IdenticalElementShapes (bool x) | |
TensorArrayName (StringPiece x) |
구조체 | |
---|---|
tensorflow :: ops :: TensorArray :: Attrs | TensorArray에 대한 선택적 속성 설정자. |
공용 속성
흐름
::tensorflow::Output flow
핸들
::tensorflow::Output handle
조작
Operation operation
공공 기능
TensorArray
TensorArray( const ::tensorflow::Scope & scope, ::tensorflow::Input size, DataType dtype )
TensorArray
TensorArray( const ::tensorflow::Scope & scope, ::tensorflow::Input size, DataType dtype, const TensorArray::Attrs & attrs )
공개 정적 함수
ClearAfterRead
Attrs ClearAfterRead( bool x )
DynamicSize
Attrs DynamicSize( bool x )
ElementShape
Attrs ElementShape( PartialTensorShape x )
IdenticalElementShapes
Attrs IdenticalElementShapes( bool x )
TensorArrayName
Attrs TensorArrayName( StringPiece x )