Class ModelOptimizer | Barracuda | 0.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class ModelOptimizer

    Inheritance
    Object
    ModelOptimizer
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public class ModelOptimizer

    Methods

    FuseActivations(Model)

    Declaration
    public static void FuseActivations(Model model)
    Parameters
    Type Name Description
    Model model

    IsActivationFusable(Layer.Activation)

    Declaration
    public static bool IsActivationFusable(Layer.Activation activationType)
    Parameters
    Type Name Description
    Layer.Activation activationType
    Returns
    Type Description
    Boolean

    IsLayerSupportingActivationFusing(Layer.Type)

    Declaration
    public static bool IsLayerSupportingActivationFusing(Layer.Type layerType)
    Parameters
    Type Name Description
    Layer.Type layerType
    Returns
    Type Description
    Boolean

    Optimize(Model, Boolean, HashSet<String>)

    Declaration
    public static Model Optimize(Model model, bool allowFusing, HashSet<string> keepLayers = null)
    Parameters
    Type Name Description
    Model model
    Boolean allowFusing
    HashSet<String> keepLayers
    Returns
    Type Description
    Model

    RemoveNoop(Model)

    Declaration
    public static Model RemoveNoop(Model model)
    Parameters
    Type Name Description
    Model model
    Returns
    Type Description
    Model
    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