Class Model
Represents a Sentis neural network.
Inherited Members
Namespace: Unity.Sentis
Assembly: Unity.Sentis.dll
Syntax
public class Model
Fields
DefaultOpsetVersion
The opset version number of the ONNX model, for the default domain.
Declaration
public long DefaultOpsetVersion
Field Value
Type | Description |
---|---|
long |
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, string)
Adds an output called name
to the model.
Declaration
public void AddOutput(string name, string index)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the input. |
string | 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. |