11 references to HiddenSizeChoices
Microsoft.ML.TorchSharp (11)
NasBert\Modules\EmbedTransfer.cs (7)
32var hiddenTransfer = SearchSpace.HiddenSizeChoices.Where((source, index) => index != SearchSpace.HiddenSizeChoices.Length - 1) 33.Select(hidden => torch.nn.Linear(hidden, SearchSpace.HiddenSizeChoices[SearchSpace.HiddenSizeChoices.Length - 1])) 42if (hiddenSize == SearchSpace.HiddenSizeChoices[SearchSpace.HiddenSizeChoices.Length - 1]) return x; 43var index = SearchSpace.HiddenSizeChoices.ToList().IndexOf(hiddenSize);
NasBert\Modules\Layers\FeedForwardLayer.cs (4)
36SearchSpace.HiddenSizeChoices[SearchSpace.HiddenSizeChoices.Length - 1]); 38SearchSpace.HiddenSizeChoices[SearchSpace.HiddenSizeChoices.Length - 1]);