Class Layer
Represents the base class for all model layers.
Inherited Members
Namespace: Unity.Sentis
Assembly: Unity.Sentis.dll
Syntax
public abstract class Layer
Constructors
Layer(int[], int[])
Initializes and returns a Layer
from given arrays of input and output indices
Declaration
protected Layer(int[] outputs, int[] inputs)
Parameters
Type | Name | Description |
---|---|---|
int[] | outputs | The indices array representing the outputs of this layer. |
int[] | inputs | The indices array representing the inputs of this layer. |
Fields
inputs
The indices to use for the input tensors for a layer.
Declaration
public int[] inputs
Field Value
Type | Description |
---|---|
int[] |
outputs
The indices to use for all of the output tensors for a layer.
Declaration
public int[] outputs
Field Value
Type | Description |
---|---|
int[] |
Methods
ToString()
Returns a string that represents the Layer
.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The string representation of the |