docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IPaddingSizeProvider

    Computes the size of the padded sequence of tokens.

    Namespace: Unity.InferenceEngine.Tokenization.Padding
    Assembly: Unity.InferenceEngine.Tokenization.dll
    Syntax
    public interface IPaddingSizeProvider

    Methods

    GetPaddingSize(IReadOnlyList<int>)

    Computes the size of the padded sequence of tokens.

    Declaration
    int GetPaddingSize(IReadOnlyList<int> sizes)
    Parameters
    Type Name Description
    IReadOnlyList<int> sizes

    The size of all the sequences of tokens to pad.

    Returns
    Type Description
    int

    The size of the padded sequence of tokens.

    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)