1 write to Parent
Microsoft.ML.TorchSharp (1)
TorchSharpBaseTrainer.cs (1)
147
Parent
= parent;
14 references to Parent
Microsoft.ML.TorchSharp (14)
NasBert\NasBertTrainer.cs (1)
180
public new NasBertTrainer<TLabelCol, TTargetsCol> Parent => base.
Parent
as NasBertTrainer<TLabelCol, TTargetsCol>;
TorchSharpBaseTrainer.cs (13)
159
Device = TorchUtils.InitializeDevice(
Parent
.Host);
171
var destDir = Path.Combine(((IHostEnvironmentInternal)
Parent
.Host).TempFilePath, "mlnet");
179
using (var ch = (
Parent
.Host as IHostEnvironment).Start("Ensuring model file is present."))
181
var ensureModel = ResourceManagerUtils.Instance.EnsureResourceAsync(
Parent
.Host, ch, modelUrl, destFileName, destDir, timeout);
197
var validationSet =
Parent
.Option.ValidationSet;
203
var labelGetter = cursor.GetGetter<TLabelCol>(validationSet.Schema[
Parent
.Option.LabelColumnName]);
206
List<Tensor> inputTensors = new List<Tensor>(
Parent
.Option.BatchSize);
207
List<TTargetsCol> targets = new List<TTargetsCol>(
Parent
.Option.BatchSize);
237
for (int i = 0; i <
Parent
.Option.BatchSize && cursorValid; i++)
275
var labelGetter = cursor.GetGetter<TLabelCol>(input.Schema[
Parent
.Option.LabelColumnName]);
278
List<Tensor> inputTensors = new List<Tensor>(
Parent
.Option.BatchSize);
279
List<TTargetsCol> targets = new List<TTargetsCol>(
Parent
.Option.BatchSize);
310
for (int i = 0; i <
Parent
.Option.BatchSize && cursorValid; i++)