텐서플로우:: 작전:: 장벽

#include <data_flow_ops.h>

다양한 그래프 실행에서 지속되는 장벽을 정의합니다.

요약

장벽은 키-값 맵을 나타내며, 여기서 각 키는 문자열이고 각 값은 텐서의 튜플입니다.

런타임 시 장벽에는 '완전' 및 '불완전' 요소가 포함됩니다. 완전한 요소는 해당 값 튜플의 모든 구성 요소에 대해 텐서를 정의했으며 BarrierTakeMany를 사용하여 액세스할 수 있습니다. 불완전한 요소의 값 튜플에는 정의되지 않은 일부 구성 요소가 있으며 BarrierInsertMany를 사용하여 업데이트될 수 있습니다.

인수:

  • 범위: 범위 개체
  • component_types: 값의 각 구성 요소 유형입니다.

선택적 속성( Attrs 참조):

  • 모양: 값의 각 구성 요소 모양입니다. 각 모양은 첫 번째 차원에서 1이어야 합니다. 이 속성의 길이는 component_types의 길이와 동일해야 합니다.
  • 용량: 장벽의 용량입니다. 기본 용량은 기본 대기열의 최대 용량인 MAX_INT32입니다.
  • 컨테이너: 비어 있지 않은 경우 이 장벽은 지정된 컨테이너에 배치됩니다. 그렇지 않으면 기본 컨테이너가 사용됩니다.
  • shared_name: 비어 있지 않은 경우 이 장벽은 여러 세션에서 지정된 이름으로 공유됩니다.

보고:

생성자와 소멸자

Barrier (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types)
Barrier (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types, const Barrier::Attrs & attrs)

공개 속성

handle
operation

공공 기능

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

공개 정적 함수

Capacity (int64 x)
Container (StringPiece x)
Shapes (const gtl::ArraySlice< PartialTensorShape > & x)
SharedName (StringPiece x)

구조체

텐서플로우:: ops:: 장벽:: 속성

Barrier 에 대한 선택적 속성 설정자입니다.

공개 속성

핸들

::tensorflow::Output handle

작업

Operation operation

공공 기능

장벽

 Barrier(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & component_types
)

장벽

 Barrier(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & component_types,
  const Barrier::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

공개 정적 함수

용량

Attrs Capacity(
  int64 x
)

컨테이너

Attrs Container(
  StringPiece x
)

모양

Attrs Shapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)

공유 이름

Attrs SharedName(
  StringPiece x
)