Method Multinomial
Multinomial(TensorFloat, int, float?)
Represents a Multinomial random layer. This generates an output tensor with values from a multinomial distribution according to the probabilities given by the input tensor.
Declaration
public TensorInt Multinomial(TensorFloat X, int count, float? seed)
Parameters
| Type | Name | Description |
|---|---|---|
| TensorFloat | X | The input tensor. |
| int | count | The number of times to sample the input. |
| float? | seed | The optional seed to use for the random number generation. If this is |
Returns
| Type | Description |
|---|---|
| TensorInt | The computed output tensor. |