docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Model

    Neural Net Model data structure

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

    Fields

    IrSource

    Model source metadata string

    Declaration
    public string IrSource
    Field Value
    Type Description
    string

    IrVersion

    Model ONNX version metadata string

    Declaration
    public string IrVersion
    Field Value
    Type Description
    string

    ProducerName

    Model producer metadata string

    Declaration
    public string ProducerName
    Field Value
    Type Description
    string

    Version

    Model version, incremented with each data structure change

    Declaration
    public const int Version = 17
    Field Value
    Type Description
    int

    inputs

    All model inputs

    Declaration
    public List<Model.Input> inputs
    Field Value
    Type Description
    List<Model.Input>

    layers

    All model layers

    Declaration
    public List<Layer> layers
    Field Value
    Type Description
    List<Layer>

    layout

    Model layout

    Declaration
    public string layout
    Field Value
    Type Description
    string

    memories

    All model memories

    Declaration
    public List<Model.Memory> memories
    Field Value
    Type Description
    List<Model.Memory>

    outputs

    All model outputs

    Declaration
    public List<string> outputs
    Field Value
    Type Description
    List<string>

    Properties

    Warnings

    Model import warnings

    Declaration
    public List<Model.ImporterWarning> Warnings { get; }
    Property Value
    Type Description
    List<Model.ImporterWarning>

    Methods

    ShallowCopy()

    Build shallow copy of the model

    Declaration
    public Model ShallowCopy()
    Returns
    Type Description
    Model

    shallow copy of the model

    ToString()

    Model summary string

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Model summary string

    Overrides
    object.ToString()

    Extension Methods

    ModelExtensions.CreateWorker(Model, string[], string[], WorkerFactory.Device, bool)
    ModelExtensions.CreateWorker(Model, WorkerFactory.Device, bool)
    ModelMetadataExtensions.GetDownStreamLayersCount(Model, string)
    ModelMetadataExtensions.GetShapeByName(Model, string)
    ModelMetadataExtensions.GetTensorByName(Model, string)
    In This Article
    Back to top
    Copyright © 2025 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)