docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ModelMetadataExtensions

    Model metadata extensions

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

    Methods

    GetDownStreamLayersCount(Model, string)

    Get count of layers that directly depend on specified input

    Declaration
    public static int GetDownStreamLayersCount(this Model model, string name)
    Parameters
    Type Name Description
    Model model

    Model

    string name

    input name

    Returns
    Type Description
    int

    count of layers that directly depend on specified input

    GetShapeByName(Model, string)

    Get model tensor shape by name

    Declaration
    public static TensorShape? GetShapeByName(this Model model, string name)
    Parameters
    Type Name Description
    Model model

    Model

    string name

    Tensor name

    Returns
    Type Description
    TensorShape?

    Tensor shape

    Exceptions
    Type Condition
    KeyNotFoundException

    GetTensorByName(Model, string)

    Get model tensor by name

    Declaration
    public static Tensor GetTensorByName(this Model model, string name)
    Parameters
    Type Name Description
    Model model

    Model

    string name

    Tensor name

    Returns
    Type Description
    Tensor

    Tensor

    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)