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)); 147throw _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));