Class Cast
Represents an element-wise Cast layer: f(x) = (float)x or f(x) = (int)x depending on the value of toType.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class Cast : Layer
Constructors
| Name | Description |
|---|---|
| Cast(string, string, DataType) | Initializes and returns an instance of |
Fields
| Name | Description |
|---|---|
| toType | The data type to cast to 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. |