2 writes to _ectx
Microsoft.ML.Core (2)
Data\ModelLoadContext.cs (2)
80
_ectx
= rep.ExceptionContext;
105
_ectx
= ectx;
27 references to _ectx
Microsoft.ML.Core (27)
Data\ModelLoadContext.cs (8)
82
_ectx
.CheckValue(ent, nameof(ent));
83
_ectx
.CheckValueOrNull(dir);
106
_ectx
.CheckValue(reader, nameof(reader));
116
_ectx
.Check(Reader.BaseStream.Position == FpMin + Header.FpModel);
121
_ectx
.Check(Reader.BaseStream.Position == FpMin + Header.FpModel);
141
_ectx
.CheckDecode(-1 <= id && id < Utils.Size(Strings));
164
_ectx
.CheckDecode(0 <= id && id < Utils.Size(Strings));
166
_ectx
.CheckDecode(str.Length > 0);
Data\ModelLoading.cs (19)
134
_ectx
.CheckValue(env, nameof(env));
135
_ectx
.Check(InRepository, "Can't load a sub-model when reading from a single stream");
145
_ectx
.CheckValue(env, nameof(env));
147
throw
_ectx
.ExceptDecode("Corrupt model file");
148
_ectx
.AssertValue(result);
243
_ectx
.AssertValue(env, "env");
244
_ectx
.Assert(Reader.BaseStream.Position == FpMin + Header.FpModel);
263
_ectx
.Assert(Reader.BaseStream.Position == FpMin + Header.FpModel);
277
_ectx
.Assert(Reader.BaseStream.Position == FpMin + Header.FpModel);
304
_ectx
.Check(InRepository, "Can't Load a sub-model when reading from a single stream");
305
_ectx
.CheckNonEmpty(dir, nameof(dir));
306
_ectx
.CheckValue(action, nameof(action));
316
_ectx
.Assert(ent.Stream.Position == 0);
328
_ectx
.Check(InRepository, "Can't Load a sub-model when reading from a single stream");
329
_ectx
.CheckNonEmpty(name, nameof(name));
330
_ectx
.CheckValue(action, nameof(action));
349
_ectx
.Check(InRepository, "Can't Load a sub-model when reading from a single stream");
350
_ectx
.CheckNonEmpty(name, nameof(name));
351
_ectx
.CheckValue(action, nameof(action));