docs.unity3d.com
    Show / Hide Table of Contents

    Class ModelMetadataExtensions

    Model metadata extensions

    Inheritance
    Object
    ModelMetadataExtensions
    Namespace: Unity.Barracuda
    Syntax
    public static class ModelMetadataExtensions : object

    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
    Int32

    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
    Nullable<TensorShape>

    Tensor shape

    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

    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