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

tensorflow :: ops :: 다항식

#include <random_ops.h>

다항 분포에서 표본을 가져옵니다.

요약

인수 :

  • 범위 : 범위 개체
  • 로짓 : [batch_size, num_classes] 모양의 2 차원 텐서 . 각 슬라이스 [i, :] 는 모든 클래스에 대한 정규화되지 않은 로그 확률을 나타냅니다.
  • num_samples : 0-D. 각 행 조각에 대해 그릴 독립 샘플 수입니다.

선택적 속성 ( Attrs 참조) :

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

보고:

  • Output : [batch_size, num_samples] 모양의 2-D Tensor . 각 슬라이스 [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)

구조체

tensorflow :: ops :: 다항식 :: Attrs

Multinomial에 대한 선택적 속성 설정자.

공용 속성

조작

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 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

OutputDtype

Attrs OutputDtype(
  DataType x
)

Attrs Seed(
  int64 x
)

Seed2

Attrs Seed2(
  int64 x
)