2 writes to _ectx
Microsoft.ML.Core (2)
Data\ModelSaveContext.cs (2)
89
_ectx
= rep.ExceptionContext;
124
_ectx
= ectx;
18 references to _ectx
Microsoft.ML.Core (18)
Data\ModelSaveContext.cs (14)
91
_ectx
.CheckValueOrNull(dir);
92
_ectx
.CheckNonEmpty(name, nameof(name));
125
_ectx
.CheckValue(writer, nameof(writer));
139
_ectx
.Check(Writer.BaseStream.Position == FpMin + Header.FpModel);
157
_ectx
.Check(InRepository, "Can't save a text stream when writing to a single stream");
158
_ectx
.CheckNonEmpty(name, nameof(name));
159
_ectx
.CheckValue(action, nameof(action));
173
_ectx
.Check(InRepository, "Can't save a text stream when writing to a single stream");
174
_ectx
.CheckNonEmpty(name, nameof(name));
175
_ectx
.CheckValue(action, nameof(action));
206
_ectx
.CheckValue(str, nameof(str));
223
_ectx
.CheckParam(!string.IsNullOrEmpty(str), nameof(str));
240
_ectx
.Check(Header.ModelSignature != 0, "ModelSignature not specified!");
250
_ectx
.Assert((_ent == null) == !InRepository);
Data\ModelSaving.cs (4)
21
_ectx
.Check(InRepository, "Can't save a sub-model when writing to a single stream");
80
_ectx
.Check(InRepository, "Can't save a sub-model when writing to a single stream");
81
_ectx
.CheckNonEmpty(dir, nameof(dir));
82
_ectx
.CheckValue(fn, nameof(fn));