Class Layer
Represents the base class for all model layers.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: Unity.Sentis.dll
Syntax
[Serializable]
public abstract class Layer
Fields
flags
The flags set on the layer.
Declaration
[NonSerialized]
public Flags flags
Field Value
Type | Description |
---|---|
Flags |
index
The name to use for the first output tensor for a layer.
Declaration
public string index
Field Value
Type | Description |
---|---|
string |
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 |