Class Model
Represents a Sentis neural network.
Inherited Members
Namespace: Unity.Sentis
Syntax
public class Model
Fields
constants
The constants of the model.
Declaration
public List<Constant> constants
Field Value
Type | Description |
---|---|
List<Constant> |
DefaultOpsetVersion
The opset version number of the ONNX model, for the default domain.
Declaration
public long DefaultOpsetVersion
Field Value
Type | Description |
---|---|
Int64 |
inputs
The inputs of the model.
Declaration
public List<Model.Input> inputs
Field Value
Type | Description |
---|---|
List<Model.Input> |
IrSource
The metadata of the model, as a string.
Declaration
public string IrSource
Field Value
Type | Description |
---|---|
String |
IrVersion
The metadata of the ONNX model, as a string.
Declaration
public long IrVersion
Field Value
Type | Description |
---|---|
Int64 |
layers
The layers of the model.
Declaration
public List<Layer> layers
Field Value
Type | Description |
---|---|
List<Layer> |
OpsetDescriptions
The opsets of the ONNX model.
Declaration
public List<Model.OpsetDescription> OpsetDescriptions
Field Value
Type | Description |
---|---|
List<Model.OpsetDescription> |
outputs
The outputs of the model.
Declaration
public List<string> outputs
Field Value
Type | Description |
---|---|
List<String> |
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 = 26
Field Value
Type | Description |
---|---|
Int32 |
Properties
Metadata
The metadata properties associated with the model.
Declaration
public Dictionary<string, string> Metadata { get; }
Property Value
Type | Description |
---|---|
Dictionary<String, String> |
Warnings
The warnings from the model importer.
Declaration
public List<Model.ImporterWarning> Warnings { get; }
Property Value
Type | Description |
---|---|
List<Model.ImporterWarning> |
Methods
AddConstant(Constant)
Adds a constant
to the model.
Declaration
public void AddConstant(Constant constant)
Parameters
Type | Name | Description |
---|---|---|
Constant | constant |
AddInput(String, DataType, SymbolicTensorShape)
Adds an input called name
to the model.
Declaration
public void AddInput(string name, DataType dataType, SymbolicTensorShape shape)
Parameters
Type | Name | Description |
---|---|---|
String | name | |
DataType | dataType | |
SymbolicTensorShape | shape |
AddLayer(Layer)
Adds a layer
to the model.
Declaration
public void AddLayer(Layer layer)
Parameters
Type | Name | Description |
---|---|---|
Layer | layer |
AddOutput(String)
Adds an output called name
to the model.
Declaration
public void AddOutput(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name |
ShallowCopy()
Returns a shallow copy of the model.
Declaration
public Model ShallowCopy()
Returns
Type | Description |
---|---|
Model |
ToString()
Returns a string that represents the Model
.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |