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

tensorflow :: ops :: RandomGamma

#include <random_ops.h>

알파로 설명되는 감마 분포에서 임의의 값을 출력합니다.

요약

이 작업은 Marsaglia 등의 알고리즘을 사용합니다. 균일 및 정규 랜덤 변수 쌍에서 변환 거부를 통해 샘플을 수집합니다. http://dl.acm.org/citation.cfm?id=358414 참조

인수 :

  • 범위 : 범위 개체
  • 모양 : 1 차원 정수 텐서. 알파로 주어진 모양 매개 변수로 설명되는 각 분포에서 추출 할 독립 샘플의 모양입니다.
  • alpha : 각 스칼라가 관련 감마 분포를 설명하는 "모양"매개 변수 인 텐서.

선택적 속성 ( Attrs 참조) :

  • seed : seed 또는 seed2 가 0이 아닌 값으로 설정된 경우, 난수 생성기는 주어진 seed에 의해 seed됩니다. 그렇지 않으면 임의의 시드로 시드됩니다.
  • seed2 : 시드 충돌을 피하기위한 두 번째 시드.

보고:

  • Output : shape shape + shape(alpha) 텐서. 각 슬라이스 [:, ..., :, i0, i1, ...iN] 에는 alpha[i0, i1, ...iN] 대해 그려진 샘플이 포함됩니다. 출력의 dtype은 알파의 dtype과 일치합니다.

생성자와 소멸자

RandomGamma (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input alpha)
RandomGamma (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input alpha, const RandomGamma::Attrs & attrs)

공용 속성

operation
output

공공 기능

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

공개 정적 함수

Seed (int64 x)
Seed2 (int64 x)

구조체

tensorflow :: ops :: RandomGamma :: Attrs

RandomGamma에 대한 선택적 속성 setter입니다.

공용 속성

조작

Operation operation

산출

::tensorflow::Output output

공공 기능

RandomGamma

 RandomGamma(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  ::tensorflow::Input alpha
)

RandomGamma

 RandomGamma(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  ::tensorflow::Input alpha,
  const RandomGamma::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

Attrs Seed(
  int64 x
)

Seed2

Attrs Seed2(
  int64 x
)