2 writes to Result
Microsoft.ML.TorchSharp (2)
NasBert\NasBertTrainer.cs (1)
618cache.Result = PrepAndRunModel(PrepInputTokens(ref sentence1, ref sentence2, ref getSentence1, ref getSentence2, tokenizer));
TorchSharpBaseTrainer.cs (1)
536Result = default;
8 references to Result
Microsoft.ML.TorchSharp (8)
NasBert\NasBertTrainer.cs (3)
573Result?.Dispose(); 617cache.Result?.Dispose(); 619cache.Result.MoveToOuterDisposeScope();
NasBert\NerTrainer.cs (2)
382var argmax = (outputCacher as BertTensorCacher).Result.argmax(-1); 428var argmax = (outputCacher as BertTensorCacher).Result.argmax(-1);
NasBert\SentenceSimilarityTrainer.cs (1)
287dst = cacher.Result.squeeze().cpu().item<float>();
NasBert\TextClassificationTrainer.cs (2)
334var values = (outputCacher as BertTensorCacher).Result.cpu().ToArray<float>(); 364dst = (UInt32)(outputCacher as BertTensorCacher).Result.argmax(-1).cpu().item<long>() + 1;