Class ModelOptimizer | Barracuda | 1.0.4
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 20 October 2020