텐서플로우:: 연산:: 텐서어레이:: 속성
#include <data_flow_ops.h>TensorArray 에 대한 선택적 속성 설정기입니다.
요약
공개 속성 | |
|---|---|
clear_after_read_ = true | bool |
dynamic_size_ = false | bool |
element_shape_ = ::tensorflow::PartialTensorShape() | PartialTensorShape |
identical_element_shapes_ = false | bool |
tensor_array_name_ = "" | StringPiece |
공공 기능 | |
|---|---|
ClearAfterRead (bool x) | TF_MUST_USE_RESULT Attrs true(기본값)인 경우, TensorArray 의 텐서는 읽은 후 초기화됩니다. |
DynamicSize (bool x) | TF_MUST_USE_RESULT Attrs TensorArray 에 대한 쓰기 작업으로 인해 크기가 증가하는 것을 허용할지 여부를 결정하는 부울 값입니다. |
ElementShape (PartialTensorShape x) | TF_MUST_USE_RESULT Attrs 알려진 경우, 요소의 예상 모양. |
IdenticalElementShapes (bool x) | TF_MUST_USE_RESULT Attrs true로 설정하면(기본값은 false), TensorArray 의 모든 요소는 동일한 형태를 가져야 합니다. |
TensorArrayName (StringPiece x) | TF_MUST_USE_RESULT Attrs 임시 tensor_array 리소스에 사용되는 이름을 재정의합니다. |
공개 속성
읽기 후 지우기
bool tensorflow::ops::TensorArray::Attrs::clear_after_read_ = true
동적 크기_
bool tensorflow::ops::TensorArray::Attrs::dynamic_size_ = false
요소_형태_
PartialTensorShape tensorflow::ops::TensorArray::Attrs::element_shape_ = ::tensorflow::PartialTensorShape()
동일한 요소 모양
bool tensorflow::ops::TensorArray::Attrs::identical_element_shapes_ = false
텐서 배열 이름_
StringPiece tensorflow::ops::TensorArray::Attrs::tensor_array_name_ = ""
공공 기능
읽기 후 지우기
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::ClearAfterRead( bool x )
true(기본값)인 경우, TensorArray 의 텐서는 읽은 후 초기화됩니다.
이렇게 하면 다중 읽기 의미 체계가 비활성화되지만 메모리의 조기 해제가 허용됩니다.
기본값은 true입니다.
다이내믹사이즈
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::DynamicSize( bool x )
요소 모양
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::ElementShape( PartialTensorShape x )
알려진 경우, 요소의 예상 모양.
TensorArray 요소의 형태를 검증하는 데 사용됩니다. 형태가 완전히 지정되지 않은 경우, 크기가 0인 TensorArray를 수집하면 오류가 발생합니다.
기본값은 다음과 같습니다.
동일한 요소 모양
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::IdenticalElementShapes( bool x )
true로 설정하면(기본값은 false), TensorArray 의 모든 요소는 동일한 형태를 가져야 합니다.
이를 통해 쓰기 시 일관된 형태를 동적으로 확인하고, element_shape 속성이 완전히 정의되지 않은 경우에도 스택에 적절한 형태의 0 텐서를 채울 수 있는 등의 특정 동작이 가능해집니다.
기본값은 false입니다.
텐서 배열 이름
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::TensorArrayName( StringPiece x )