Class Layer
Represents the base class for all model layers.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: Unity.Sentis.dll
Syntax
public abstract class Layer
Constructors
Layer(string[], string[])
Declaration
protected Layer(string[] outputs, string[] inputs)
Parameters
Type | Name | Description |
---|---|---|
string[] | outputs | |
string[] | inputs |
Fields
inputs
The names to use for the input tensors for a layer.
Declaration
public string[] inputs
Field Value
Type | Description |
---|---|
string[] |
outputs
The names to use for all of the output tensors for a layer. This is null
if a layer has only one output.
Declaration
public string[] outputs
Field Value
Type | Description |
---|---|
string[] |
Methods
Execute(ExecutionContext)
Executes the layer using the operations and variables from the ExecutionContext
.
Declaration
public abstract void Execute(ExecutionContext ctx)
Parameters
Type | Name | Description |
---|---|---|
ExecutionContext | ctx | The execution context with the backend and variables for the execution. |
ToString()
Returns a string that represents the Layer
.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The string representation of the |