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)
143Contracts.AssertValue(parent._host, "parent"); 145_ectx = _parent._host; 178Contracts.AssertValue(parent._host, "parent"); 180_ectx = _parent._host; 310using (var ch = _parent._host.Start("Metadata TOC Read")) 484Contracts.AssertValue(parent._host, "parent"); 500Contracts.AssertValue(parent._host, "parent"); 501IExceptionContext 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"); 775using (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"); 839using (var ch = _host.Start("Initializing")) 869_factory = new CodecFactory(_host); 942_host.CheckValue(ctx, nameof(ctx)); 946_host.Assert(_threads >= 1); 950SaveSchema(_host, ctx, Schema, out unsavable); 951_host.Assert(Utils.Size(unsavable) == 0); 1035throw _host.ExceptDecode("Read only {0} bytes in file, expected header size of {1}", 1047_host.CheckDecode(header.Signature == Header.SignatureValue, 1053throw _host.ExceptDecode("Compatibility version {0} cannot be greater than file version {1}", 1059throw _host.ExceptDecode("Unexpected version {0} encountered, earliest expected here was {1}", 1068throw _host.Except("Cannot read version {0} data, earliest that can be handled is {1}", 1073throw _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"); 1081throw _host.ExceptDecode("Table of contents offset {0} less than header size, impossible", header.TableOfContentsOffset); 1085throw _host.ExceptDecode("Tail offset {0} less than header size, impossible", header.TailOffset); 1088_host.CheckDecode(tailSig == Header.TailSignatureValue, "Incorrect tail signature"); 1197return RowShufflingTransformer.GetShuffledCursor(_host, _randomShufflePoolRows, cursor, rand); 1204_host.CheckValueOrNull(rand); 1210_host.CheckValueOrNull(rand); 1247: base(parent._host)