docs.unity3d.com
    Show / Hide Table of Contents

    Class Model

    Neural Net Model data structure

    Inheritance
    Object
    Model
    Namespace: Unity.Barracuda
    Syntax
    public class Model : object

    Fields

    inputs

    All model inputs

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

    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

    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>

    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 = null
    Field Value
    Type Description
    Int32

    Properties

    Metadata

    Metadata properties associated with the model

    Declaration
    public Dictionary<string, string> Metadata { get; }
    Property Value
    Type Description
    Dictionary<String, String>

    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

    Extension Methods

    ModelExtensions.CreateWorker(Model, WorkerFactory.Device, Boolean)
    ModelExtensions.CreateWorker(Model, String[], String[], WorkerFactory.Device, Boolean)
    ModelMetadataExtensions.GetTensorByName(Model, String)
    ModelMetadataExtensions.GetShapeByName(Model, String)
    ModelMetadataExtensions.GetDownStreamLayersCount(Model, String)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023