1 write to Layers
Microsoft.ML.TorchSharp (1)
NasBert\Models\NasBertEncoder.cs (1)
117Layers = new ModuleList<TransformerCell>(layers);
7 references to Layers
Microsoft.ML.TorchSharp (7)
NasBert\Models\NasBertEncoder.cs (7)
139ModelUtils.FreezeModuleParams(Layers); 150ModelUtils.FreezeModuleParams(Layers[i]); 181var blockPerLayer = Layers.Count / DistillBlocks; 183for (var i = 0; i < Layers.Count; ++i) 231var layer = Layers[i]; 282foreach (var layer in Layers) 300Layers.Dispose();