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