Interface IPadding
Applies a padding to sequences of tokens.
Namespace: Unity.InferenceEngine.Tokenization.Padding
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
public interface IPadding
Methods
Pad(IReadOnlyList<IReadOnlyList<Token>>, Output<IEnumerable<Token>>)
Applies a padding to sequences of tokens.
Declaration
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. |