Class Range
Represents a Range
layer. This generates a 1D output tensor where the values form an arithmetic progression defined by the start
, limit
and delta
scalar input tensors.
Inherited Members
Namespace: Unity.Sentis.Layers
Syntax
[Serializable]
public class Range : Layer
Constructors
Range(String, String, String, String)
Initializes and returns an instance of Range
layer.
Declaration
public Range(string name, string start, string limit, string delta)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name to use for the output tensor of the layer. |
String | start | The name to use for the scalar start value tensor of the layer. |
String | limit | The name to use for the scalar limit value tensor of the layer. |
String | delta | The name to use for the scalar delta value tensor of the layer. |
Methods
Execute(Tensor[], ExecutionContext)
Executes the layer using the operations and variables from the ExecutionContext
and returns the output tensor.
If the layer has more than one output, output tensors are saved to variables.
Declaration
public override Tensor Execute(Tensor[] inputTensors, ExecutionContext ctx)
Parameters
Type | Name | Description |
---|---|---|
Tensor[] | inputTensors | |
ExecutionContext | ctx |
Returns
Type | Description |
---|---|
Tensor |