텐서플로우:: 연산:: 장벽

#include <data_flow_ops.h>

서로 다른 그래프 실행 간에 유지되는 장벽을 정의합니다.

요약

배리어는 키-값 맵을 나타내며, 각 키는 문자열이고 각 값은 텐서 튜플입니다.

실행 시, 배리어는 '완료된' 요소와 '미완료된' 요소를 포함합니다. 완료된 요소는 값 튜플의 모든 구성 요소에 대한 텐서가 정의되어 있으며, BarrierTakeMany를 사용하여 접근할 수 있습니다. 미완료된 요소는 값 튜플에 정의되지 않은 구성 요소가 일부 포함되어 있으며, BarrierInsertMany를 사용하여 업데이트할 수 있습니다.

논거:

  • 범위: Scope 객체
  • component_types: 값에 포함된 각 구성 요소의 유형입니다.

선택적 속성( Attrs 참조):

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

보고:

  • Output : 장벽의 손잡이.

생성자와 소멸자

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)

구조

텐서플로우:: 연산:: 장벽:: 속성

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
)