Base:
method
Decode
Microsoft.ML.Tokenizers.Tokenizer.Decode(System.Collections.Generic.IEnumerable<System.Int32>, System.Span<System.Char>, out System.Int32, out System.Int32)
6 references to Decode
Microsoft.ML.Tokenizers.Tests (6)
LlamaTests.cs (6)
310
status = tokenizer.
Decode
(ids, destinationBuffer.AsSpan().Slice(0, i), out idsConsumed, out charactersWritten);
320
status = tokenizer.
Decode
(ids, destinationBuffer.AsSpan(), out idsConsumed, out charactersWritten);
848
Assert.Equal(OperationStatus.DestinationTooSmall, tokenizer.
Decode
(ids, destinationBuffer.AsSpan().Slice(0, i), out idsConsumed, out charactersWritten));
853
Assert.Equal(OperationStatus.Done, tokenizer.
Decode
(ids, destinationBuffer.AsSpan(), out idsConsumed, out charactersWritten));
887
Assert.Equal(OperationStatus.DestinationTooSmall, tokenizerWithSuffix.
Decode
(ids, destinationBuffer.AsSpan().Slice(0, i), out idsConsumed, out charactersWritten));
892
Assert.Equal(OperationStatus.Done, tokenizerWithSuffix.
Decode
(ids, destinationBuffer.AsSpan(), out idsConsumed, out charactersWritten));