2 references to ConvertOccurrenceRanksToIds
Microsoft.ML.Tokenizers.Tests (1)
EnglishRobertaTests.cs (1)
284
Assert.Equal(encodingIds, robertaModel!.
ConvertOccurrenceRanksToIds
(robertaModel!.ConvertIdsToOccurrenceRanks(encodingIds)));
Microsoft.ML.TorchSharp (1)
Roberta\QATrainer.cs (1)
927
outputCache.PredictedAnswersBuffer[index] = new ReadOnlyMemory<char>(_parent.Tokenizer.Decode(_parent.Tokenizer.RobertaModel().
ConvertOccurrenceRanksToIds
(contextIds).ToArray().AsSpan(predictStart - questionLength - 2, predictEnd - predictStart).ToArray()).Trim().ToCharArray());