Class OneHot
Represents a OneHot layer. This generates a one-hot tensor with a given depth, indices and values.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class OneHot : Layer
Constructors
| Name | Description |
|---|---|
| OneHot(string, string, string, string, int) | Initializes and returns an instance of |
Fields
| Name | Description |
|---|---|
| axis | The axis along which the layer adds the one-hot representation. |
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 |