Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: 장벽

#include <data_flow_ops.h>

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

요약

장벽은 각 키가 문자열이고 각 값이 텐서의 튜플 인 키-값 맵을 나타냅니다.

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

인수 :

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

선택적 속성 ( Attrs 참조) :

  • 모양 : 값에있는 각 구성 요소의 모양입니다. 각 모양은 첫 번째 차원에서 1이어야합니다. 이 속성의 길이는 component_types의 길이와 같아야합니다.
  • 용량 : 장벽의 용량입니다. 기본 용량은 기본 대기열의 최대 용량 인 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)

구조체

tensorflow :: ops :: Barrier :: Attrs

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 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

생산 능력

Attrs Capacity(
  int64 x
)

컨테이너

Attrs Container(
  StringPiece x
)

모양

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

SharedName

Attrs SharedName(
  StringPiece x
)