Class Bernoulli
Represents a Bernoulli random layer. This generates an output tensor with values 0 or 1 from a Bernoulli distribution. The input tensor contains the probabilities used for generating the output values.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class Bernoulli : RandomLayerConstructors
| Name | Description | 
|---|---|
| Bernoulli(string, string, DataType, float?) | Initializes and returns an instance of  | 
Fields
| Name | Description | 
|---|---|
| dataType | The data type of the output as a  | 
Methods
| Name | Description | 
|---|---|
| Execute(Tensor[], ExecutionContext) | Executes the layer using the operations and variables from the  If the layer has more than one output, output tensors are saved to variables. | 
| ToString() | Returns a string that represents the  |