8 references to ToArray
Microsoft.ML.TorchSharp (8)
NasBert\NerTrainer.cs (2)
383var prediction = argmax.ToArray<long>(); 429var prediction = argmax.ToArray<long>();
NasBert\TextClassificationTrainer.cs (1)
335var values = (outputCacher as BertTensorCacher).Result.cpu().ToArray<float>();
Roberta\Models\RobertaModel.cs (1)
109var srcTokenArray = srcTokens[i].ToArray<int>();
Utils\MetricUtils.cs (4)
32var startScores = predictStartScores.ToArray<float>(); 33var endScores = predictEndScores.ToArray<float>(); 34var starts = predictStarts.ToArray<long>(); 35var ends = predictEnds.ToArray<long>();