1 instantiation of TensorCacher
Microsoft.ML.TorchSharp (1)
5 references to TensorCacher
Microsoft.ML.TorchSharp (5)
Roberta\QATrainer.cs (5)
771private Delegate CreateGetter(DataViewRow input, int iinfo, TensorCacher outputCacher)
780private Delegate MakeScoreGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher)
807private Delegate MakePredictedAnswerGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher)
839TensorCacher outputCacher = new TensorCacher(_parent.Options.TopKAnswers);
916private protected void UpdateCacheIfNeeded(long position, TensorCacher outputCache, ref ReadOnlyMemory<char> context, ref ReadOnlyMemory<char> question, ref ValueGetter<ReadOnlyMemory<char>> getContext, ref ValueGetter<ReadOnlyMemory<char>> getQuestion)