Class Model
Represents an Inference Engine neural network.
Inherited Members
Namespace: Unity.InferenceEngine
Assembly: Unity.InferenceEngine.dll
Syntax
[MovedFrom("Unity.Sentis")]
public class Model
  Fields
ProducerName
The producer of the model, as a string.
Declaration
public string ProducerName
  Field Value
| Type | Description | 
|---|---|
| string | 
Version
The version of the model. The value increments each time the data structure changes.
Declaration
public const int Version = 30
  Field Value
| Type | Description | 
|---|---|
| int | 
constants
The constants of the model.
Declaration
public List<Constant> constants
  Field Value
| Type | Description | 
|---|---|
| List<Constant> | 
inputs
The inputs of the model.
Declaration
public List<Model.Input> inputs
  Field Value
| Type | Description | 
|---|---|
| List<Model.Input> | 
layers
The layers of the model.
Declaration
public List<Layer> layers
  Field Value
| Type | Description | 
|---|---|
| List<Layer> | 
outputs
The outputs of the model.
Declaration
public List<Model.Output> outputs
  Field Value
| Type | Description | 
|---|---|
| List<Model.Output> | 
Methods
AddOutput(string, int)
Adds an output called name to the model.
Declaration
public void AddOutput(string name, int index)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | name | The name of the output.  | 
      
| int | index | The index of the output.  | 
      
ToString()
Returns a string that represents the Model.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| string | String representation of model.  |