Multinomial#

Multinomial - 7#

Version

  • name: Multinomial (GitHub)

  • domain: main

  • since_version: 7

  • function:

  • support_level: SupportType.COMMON

  • shape inference: True

This version of the operator has been available since version 7.

Summary

Attributes

  • dtype - INT : (Optional) The data type for the elements of the output tensor, if not specified, we will use int32.

  • sample_size - INT : Number of times to sample.

  • seed - FLOAT : (Optional) Seed to the random generator, if not specified we will auto generate one.

Inputs

  • input (heterogeneous) - T1:

Outputs

  • output (heterogeneous) - T2:

Type Constraints

  • T1 in ( tensor(double), tensor(float), tensor(float16) ): Constrain input types to float tensors.

  • T2 in ( tensor(int32), tensor(int64) ): Constrain output types to integral tensors.

Examples