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