docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FixedPaddingSizeProvider

    Gives a fixed padding length.

    Inheritance
    object
    FixedPaddingSizeProvider
    Implements
    IPaddingSizeProvider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.InferenceEngine.Tokenization.Padding
    Assembly: Unity.InferenceEngine.Tokenization.dll
    Syntax
    public class FixedPaddingSizeProvider : IPaddingSizeProvider

    Constructors

    FixedPaddingSizeProvider(int)

    Initializes a new instance of the FixedPaddingSizeProvider type.

    Declaration
    public FixedPaddingSizeProvider(int size)
    Parameters
    Type Name Description
    int size

    The target padding size.

    Methods

    GetPaddingSize(IReadOnlyList<int>)

    Computes the size of the padded sequence of tokens.

    Declaration
    public int GetPaddingSize(IReadOnlyList<int> _)
    Parameters
    Type Name Description
    IReadOnlyList<int> _
    Returns
    Type Description
    int

    The size of the padded sequence of tokens.

    Implements

    IPaddingSizeProvider
    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)