텐서플로우:: ops:: 랜덤감마
#include <random_ops.h>알파로 설명된 감마 분포에서 무작위 값을 출력합니다.
요약
이 작업은 Marsaglia 등이 개발한 알고리즘을 사용하여 균일 분포 및 정규 분포 확률 변수 쌍에서 변환 거부를 통해 샘플을 추출합니다. 자세한 내용 은 http://dl.acm.org/citation.cfm?id=358414를 참조하십시오.
논거:
- 범위: Scope 객체
- shape: 1차원 정수 텐서. 각 분포에서 추출할 독립 샘플의 모양은 alpha에 주어진 모양 매개변수로 설명됩니다.
- 알파: 각 스칼라가 관련 감마 분포를 설명하는 "형태" 매개변수인 텐서입니다.
선택적 속성( Attrs 참조):
- seed:
seed또는seed20이 아닌 값으로 설정되면, 지정된 시드를 사용하여 난수 생성기를 초기화합니다. 그렇지 않으면 임의의 시드를 사용합니다. - seed2: 시드 충돌을 방지하기 위한 두 번째 시드입니다.
보고:
-
Output: shapeshape + shape(alpha)의 텐서입니다. 각 슬라이스[:, ..., :, i0, i1, ...iN]에는alpha[i0, i1, ...iN]에 대해 추출된 샘플이 포함됩니다. 출력의 데이터 유형은 alpha의 데이터 유형과 일치합니다.
생성자와 소멸자 | |
|---|---|
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) | |
구조 | |
|---|---|
| 텐서플로우:: ops:: RandomGamma:: Attrs | RandomGamma 에 대한 선택적 속성 설정기입니다. |
공개 속성
작업
Operation operation
산출
::tensorflow::Output output
공공 기능
랜덤감마
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 )
마디
::tensorflow::Node * node() const
연산자::텐서플로우::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
씨앗
Attrs Seed( int64 x )
시드2
Attrs Seed2( int64 x )