Class CastLike
Represents an element-wise CastLike layer: f(x) = (float)x or f(x) = (int)x depending on the data type of the targetType tensor.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class CastLike : LayerConstructors
| Name | Description | 
|---|---|
| CastLike(string, string, string) | Initializes and returns an instance of  | 
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. |