Search Results for

    Show / Hide Table of Contents

    Class SkipIfUniformAttribute

    The result is uniform (or an exception would be thrown) whenever this parameter is uniform, hence the function call can be skipped.

    Inheritance
    Object
    Attribute
    SkipIfUniformAttribute
    Inherited Members
    Attribute.Equals(Object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, Boolean)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, Boolean)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, Boolean)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, Boolean)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, Boolean)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, Boolean)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, Boolean)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, Boolean)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, Boolean)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, Boolean)
    Attribute.Match(Object)
    Attribute.TypeId
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Microsoft.ML.Probabilistic.Factors.Attributes
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    public class SkipIfUniformAttribute : Attribute
    Remarks

    Applies to message function parameters. This annotation is optional and allows the inference engine to skip unnecessary function calls, i.e. ones which would produce a uniform result or throw an exception. For LogAverageFactor and AverageLogFactor, SkipIfUniform means the result would be 0.

    When applied to an array parameter, this attribute means the result is uniform (or an exception would be thrown) whenever all dependent elements in the array are uniform. For example:

    • f([AllExceptIndex,SkipIfUniform] Message[] array, int resultIndex)f depends on all elements other than resultIndex, and can be skipped if all of these are uniform. f does not depend on array[resultIndex] and the uniformity of this element is ignored.

    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.