3 writes to _host
Microsoft.ML.Data (3)
DataLoadSave\Transpose\TransposeLoader.cs (3)
398
_host
= env.Register(LoadName);
428
_host
= host;
461
_host
= host;
39 references to _host
Microsoft.ML.Data (39)
DataLoadSave\Transpose\TransposeLoader.cs (39)
145
private IHost Host { get { return _parent.
_host
; } }
399
_host
.CheckValue(args, nameof(args));
400
_host
.CheckValue(file, nameof(file));
401
_host
.Check(file.Count == 1, "Transposed loader accepts a single file only");
429
_host
.CheckValue(file, nameof(file));
430
_host
.Check(file.Count == 1, "Transposed loader accepts a single file only");
437
_host
.CheckDecode(_threads >= 0);
462
_host
.CheckValue(schemaView, nameof(schemaView));
469
_host
.CheckDecode(_threads >= 0);
476
_host
.Assert(_schemaEntry.GetViewOrNull() == schemaView);
481
_host
.Assert(_entries[c].GetViewOrNull() == null);
483
_host
.Assert(HasRowData);
520
_host
.CheckValue(ctx, nameof(ctx));
528
_host
.Assert(_threads >= 0);
531
SaveSchema(
_host
, ctx, Schema);
563
throw
_host
.ExceptDecode("Read only {0} bytes in file, expected header size of {1}",
575
_host
.CheckDecode(header.Signature == Header.SignatureValue,
581
throw
_host
.ExceptDecode("Compatibility version {0} cannot be greater than file version {1}",
587
throw
_host
.ExceptDecode("Unexpected version {0} encountered, earliest expected here was {1}",
592
throw
_host
.Except("Cannot read version {0} data, latest that can be handled is {1}",
596
_host
.CheckDecode(header.RowCount >= 0, "Row count cannot be negative");
597
_host
.CheckDecode(header.ColumnCount >= 0, "Column count cannot be negative");
600
throw
_host
.ExceptDecode("Table of contents offset {0} less than header size, impossible", header.SubIdvTableOffset);
604
throw
_host
.ExceptDecode("Tail offset {0} less than header size, impossible", header.TailOffset);
607
_host
.CheckDecode(tailSig == Header.TailSignatureValue, "Incorrect tail signature");
624
_host
.CheckValueOrNull(rand);
639
_host
.CheckParam(0 <= col && col < _header.ColumnCount, nameof(col));
643
throw
_host
.ExceptParam(nameof(col), "Bad call to GetSlotCursor on untransposable column '{0}'",
646
_host
.CheckParam(0 <= col && col < _header.ColumnCount, nameof(col));
677
: base(parent.
_host
)
720
_host
.Assert(0 <= col && col < _header.ColumnCount);
722
_host
.Assert(!HasRowData);
732
_host
.AssertValue(view);
733
_host
.Assert(view.Schema.Count == 1);
734
var trans = _colTransposers[col] = Transposer.Create(
_host
, view, false, new int[] { 0 });
736
_host
.Assert(trans.Schema.Count == 1);
738
_host
.Assert((trans as ITransposeDataView)?.GetSlotType(0).GetValueCount() == Schema[col].Type.GetValueCount());
742
_host
.AssertValue(_colTransposers[col]);
760
: base(parent.
_host
)