docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Model

    Represents a Sentis neural network.

    Inheritance
    object
    Model
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Sentis
    Assembly: solution.dll
    Syntax
    public class Model

    Fields

    Name Description
    DefaultOpsetVersion

    The opset version number of the ONNX model, for the default domain.

    IrSource

    The metadata of the model, as a string.

    IrVersion

    The metadata of the ONNX model, as a string.

    OpsetDescriptions

    The opsets of the ONNX model.

    ProducerName

    The producer of the model, as a string.

    Version

    The version of the model. The value increments each time the data structure changes.

    constants

    The constants of the model.

    inputs

    The inputs of the model.

    layers

    The layers of the model.

    outputs

    The outputs of the model.

    Properties

    Name Description
    Metadata

    The metadata properties associated with the model.

    Warnings

    The warnings from the model importer.

    Methods

    Name Description
    AddConstant(Constant)

    Adds a constant to the model.

    AddInput(string, DataType, SymbolicTensorShape)

    Adds an input to the model with a symbolic tensor shape.

    AddInput(string, DataType, TensorShape)

    Adds an input to the model with a tensor shape.

    AddLayer(Layer)

    Appends a layer to the model.

    AddOutput(string)

    Adds an output called name to the model.

    ShallowCopy()

    Returns a shallow copy of the model.

    ToString()

    Returns a string that represents the Model.

    Extension Methods

    ModelExtensions.CreateWorker(Model, DeviceType, bool)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)