2 writes to _host
Microsoft.ML.Data (2)
DataLoadSave\Binary\BinaryLoader.cs (2)
766
_host
= host;
826
_host
= host;
43 references to _host
Microsoft.ML.Data (43)
DataLoadSave\Binary\BinaryLoader.cs (43)
143
Contracts.AssertValue(parent.
_host
, "parent");
145
_ectx = _parent.
_host
;
178
Contracts.AssertValue(parent.
_host
, "parent");
180
_ectx = _parent.
_host
;
310
using (var ch = _parent.
_host
.Start("Metadata TOC Read"))
484
Contracts.AssertValue(parent.
_host
, "parent");
500
Contracts.AssertValue(parent.
_host
, "parent");
501
IExceptionContext ectx = parent.
_host
;
768
_host
.CheckValue(args, nameof(args));
769
_host
.CheckValue(stream, nameof(stream));
770
_host
.CheckParam(stream.CanRead, nameof(stream), "input stream must be readable");
771
_host
.CheckParam(stream.CanSeek, nameof(stream), "input stream must be seekable");
772
_host
.CheckParam(stream.Position == 0, nameof(stream), "input stream must be at head");
773
_host
.CheckUserArg(0 <= args.PoolBlocks, nameof(args.PoolBlocks), "must be non-negative");
775
using (var ch =
_host
.Start("Initializing"))
779
_factory = new CodecFactory(
_host
);
786
_host
.Assert(_outputSchema.Count == Utils.Size(_aliveColumns));
828
_host
.AssertValue(ctx);
829
_host
.CheckValue(stream, nameof(stream));
830
_host
.CheckParam(stream.CanRead, nameof(stream), "input stream must be readable");
831
_host
.CheckParam(stream.CanSeek, nameof(stream), "input stream must be seekable");
832
_host
.CheckParam(stream.Position == 0, nameof(stream), "input stream must be at head");
839
using (var ch =
_host
.Start("Initializing"))
869
_factory = new CodecFactory(
_host
);
942
_host
.CheckValue(ctx, nameof(ctx));
946
_host
.Assert(_threads >= 1);
950
SaveSchema(
_host
, ctx, Schema, out unsavable);
951
_host
.Assert(Utils.Size(unsavable) == 0);
1035
throw
_host
.ExceptDecode("Read only {0} bytes in file, expected header size of {1}",
1047
_host
.CheckDecode(header.Signature == Header.SignatureValue,
1053
throw
_host
.ExceptDecode("Compatibility version {0} cannot be greater than file version {1}",
1059
throw
_host
.ExceptDecode("Unexpected version {0} encountered, earliest expected here was {1}",
1068
throw
_host
.Except("Cannot read version {0} data, earliest that can be handled is {1}",
1073
throw
_host
.Except("Cannot read version {0} data, latest that can be handled is {1}",
1077
_host
.CheckDecode(header.RowCount >= 0, "Row count cannot be negative");
1078
_host
.CheckDecode(header.ColumnCount >= 0, "Column count cannot be negative");
1081
throw
_host
.ExceptDecode("Table of contents offset {0} less than header size, impossible", header.TableOfContentsOffset);
1085
throw
_host
.ExceptDecode("Tail offset {0} less than header size, impossible", header.TailOffset);
1088
_host
.CheckDecode(tailSig == Header.TailSignatureValue, "Incorrect tail signature");
1197
return RowShufflingTransformer.GetShuffledCursor(
_host
, _randomShufflePoolRows, cursor, rand);
1204
_host
.CheckValueOrNull(rand);
1210
_host
.CheckValueOrNull(rand);
1247
: base(parent.
_host
)