Class HfPaddingAttribute
Identifies the parser for an implementation of IPadding
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization.Parsers.HuggingFace
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class HfPaddingAttribute : HfAttribute
Constructors
HfPaddingAttribute(string)
Initializes a new instance of the HfPaddingAttribute type.
Declaration
public HfPaddingAttribute(string strategy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | strategy | The strategy of the padding. It corresponds to the name in the Hugging Face JSON configuration. |
Fields
Strategy
The strategy of padding.
Declaration
public readonly string Strategy
Field Value
| Type | Description |
|---|---|
| string |