docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DefaultPadding

    Placeholder padding processor. Does not apply in padding rules.

    Inheritance
    object
    DefaultPadding
    Implements
    IPadding
    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 DefaultPadding : IPadding

    Methods

    Pad(IReadOnlyList<IReadOnlyList<Token>>, Output<IEnumerable<Token>>)

    Applies a padding to sequences of tokens.

    Declaration
    public void Pad(IReadOnlyList<IReadOnlyList<Token>> sequences, Output<IEnumerable<Token>> output)
    Parameters
    Type Name Description
    IReadOnlyList<IReadOnlyList<Token>> sequences

    The sequences of tokens to pad.

    Output<IEnumerable<Token>> output

    The target container of padded sequences of tokens.

    Implements

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