1 instantiation of BertTensorCacher
Microsoft.ML.TorchSharp (1)
NasBert\NasBertTrainer.cs (1)
579return new BertTensorCacher();
8 references to BertTensorCacher
Microsoft.ML.TorchSharp (8)
NasBert\NasBertTrainer.cs (2)
614var cache = outputCache as BertTensorCacher;
NasBert\NerTrainer.cs (2)
382var argmax = (outputCacher as BertTensorCacher).Result.argmax(-1); 428var argmax = (outputCacher as BertTensorCacher).Result.argmax(-1);
NasBert\SentenceSimilarityTrainer.cs (2)
281var cacher = outputCacher as BertTensorCacher;
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;