Class Layer
Represents the base class for all model layers.
Inherited Members
Namespace: Unity.InferenceEngine
Assembly: Unity.InferenceEngine.dll
Syntax
[MovedFrom("Unity.Sentis")]
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[] | 
Properties
opName
Returns a string that represents the operation of the Layer.
Declaration
public abstract string opName { get; }
  Property Value
| Type | Description | 
|---|---|
| string | 
profilerMarker
ProfilerMarker for this layer
Declaration
public abstract ProfilerMarker profilerMarker { get; }
  Property Value
| Type | Description | 
|---|---|
| ProfilerMarker | 
Methods
ToString()
Returns a string that represents the Layer.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| string | The string representation of the   |