텐서플로우:: 연산:: 다항식
#include <random_ops.h>다항분포에서 표본을 추출합니다.
요약
논거:
- 범위: Scope 객체
- logits:
[batch_size, num_classes]형태의 2차원 텐서입니다 . 각 슬라이스[i, :]는 모든 클래스에 대한 정규화되지 않은 로그 확률을 나타냅니다. - num_samples: 0차원. 각 행 슬라이스에 대해 추출할 독립 샘플 수.
선택적 속성( Attrs 참조):
- seed: seed 또는 seed2가 0이 아닌 값으로 설정되면 내부 난수 생성기는 지정된 시드를 사용하여 초기화됩니다. 그렇지 않으면 임의의 시드를 사용합니다.
- seed2: 시드 충돌을 방지하기 위한 두 번째 시드입니다.
보고:
-
Output:[batch_size, num_samples]형태의 2차원 텐서 . 각 슬라이스[i, :]에는[0, num_classes)범위의 그려진 클래스 레이블이 포함됩니다.
생성자와 소멸자 | |
|---|---|
Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples) | |
Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples, const Multinomial::Attrs & attrs) |
공개 속성 | |
|---|---|
operation | |
output | |
공공 기능 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
공개 정적 함수 | |
|---|---|
OutputDtype (DataType x) | |
Seed (int64 x) | |
Seed2 (int64 x) | |
구조 | |
|---|---|
| 텐서플로우:: 연산:: 다항식:: 속성 | 다항식 에 대한 선택적 속성 설정기입니다. |
공개 속성
작업
Operation operation
산출
::tensorflow::Output output
공공 기능
다항식
Multinomial( const ::tensorflow::Scope & scope, ::tensorflow::Input logits, ::tensorflow::Input num_samples )
다항식
Multinomial( const ::tensorflow::Scope & scope, ::tensorflow::Input logits, ::tensorflow::Input num_samples, const Multinomial::Attrs & attrs )
마디
::tensorflow::Node * node() const
연산자::텐서플로우::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
출력D타입
Attrs OutputDtype( DataType x )
씨앗
Attrs Seed( int64 x )
시드2
Attrs Seed2( int64 x )