1 write to Host
Microsoft.ML.Data (1)
Transforms\RowToRowTransformerBase.cs (1)
68Host = host;
370 references to Host
Microsoft.ML.Data (133)
Prediction\CalibratorCatalog.cs (4)
270Host.CheckValue(ctx, nameof(ctx)); 273Host.Check(onnx.CanSaveOnnx(ctx), "Cannot be saved as ONNX."); 315Host.AssertValue(input); 318Host.Assert(input.IsColumnActive(input.Schema[_scoreColIndex]));
Transforms\ColumnConcatenatingTransformer.cs (4)
467throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", srcName); 490throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", srcName, itemType.ToString(), curType.ToString()); 883Host.CheckValue(ctx, nameof(ctx)); 902Host.CheckValue(ctx, nameof(ctx));
Transforms\ColumnCopying.cs (2)
215Host.AssertValue(input); 216Host.Assert(0 <= iinfo && iinfo < _columns.Length);
Transforms\FeatureContributionCalculationTransformer.cs (2)
182throw Host.ExceptSchemaMismatch(nameof(schema), "input", _parent.ColumnPairs[0].inputColumnName); 185throw Host.ExceptSchemaMismatch(nameof(schema), "feature", _parent.ColumnPairs[0].inputColumnName, "vector of Single", schema[_featureColumnIndex].Type.ToString());
Transforms\Hashing.cs (1)
1458Host.CheckValue(ctx, nameof(ctx));
Transforms\KeyToValue.cs (23)
185Host.CheckValue(ctx, nameof(ctx)); 214Host.AssertValue(input); 215Host.Assert(0 <= iinfo && iinfo < _types.Length); 231Host.Check(typeVals != null, "Metadata KeyValues does not exist"); 234Host.Check(typeVals.GetVectorSize() == srcItemType.GetKeyCountAsInt32(Host), "KeyValues metadata size does not match column type key count"); 250Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 251Host.AssertValue(typeKey); 252Host.AssertValue(typeVal); 255Host.Assert(keyItemType.RawType == typeof(TKey)); 256Host.Assert(valItemType.RawType == typeof(TValue)); 260Host.Check(keyMetadata.Length == keyItemType.GetKeyCountAsInt32(Host)); 293Parent.Host.AssertValue(typeVal); 294Parent.Host.Assert(0 <= iinfo && iinfo < Parent._types.Length); 319Parent.Host.Assert(values.IsDense); 320Parent.Host.Assert(typeKey.RawType == typeof(TKey)); 321Parent.Host.Assert(TypeOutput.RawType == typeof(TValue)); 365Parent.Host.AssertValue(input); 425Parent.Host.Assert(islot < srcCount); 428Parent.Host.Assert(slot < nextExplicitSlot); 432Parent.Host.Assert(slot < nextExplicitSlot); 447Parent.Host.Assert(islotSrc < srcCount);
Transforms\KeyToVector.cs (52)
258int keyCount = _infos[i].TypeSrc.GetItemType().GetKeyCountAsInt32(Host); 270throw Host.Except(errorMsg); 276Host.AssertValue(inputSchema); 281throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 295Host.Assert(colIndex >= 0); 317typeNames.Size != srcType.GetItemType().GetKeyCountAsInt32(Host)) 366Host.Assert(0 <= iinfo && iinfo < _infos.Length); 368Host.Assert(typeSrc != null && typeSrc.IsKnownSize); 372Host.Assert(typeSrc.Size > 1); 383Host.Check(namesSlotSrc.Length == typeSrc.Size); 388int keyCount = typeSrc.ItemType.GetKeyCountAsInt32(Host); 390Host.Assert(slotLim == (long)typeSrc.Size * keyCount); 395Host.Check(namesKeySrc.Length == keyCount); 421Host.Assert(slot == slotLim); 428Host.Assert(0 <= iinfo && iinfo < _infos.Length); 433Host.Assert(valueCount > 0); 436int size = info.TypeSrc.GetItemType().GetKeyCountAsInt32(Host); 451Host.AssertValue(input); 452Host.Assert(0 <= iinfo && iinfo < _infos.Length); 469Host.AssertValue(input); 471Host.Assert(keyTypeSrc != null); 472int size = keyTypeSrc.GetCountAsInt32(Host); 473Host.Assert(size == _types[iinfo].Size); 474Host.Assert(size > 0); 476Host.Assert(srcCol >= 0); 502Host.AssertValue(input); 505Host.Assert(srcVectorType != null); 508Host.Assert(keyTypeSrc != null); 509Host.Assert(_parent._columns[iinfo].OutputCountVector); 510int size = keyTypeSrc.GetCountAsInt32(Host); 511Host.Assert(size == _types[iinfo].Size); 512Host.Assert(size > 0); 515Host.Assert(cv >= 0); 517Host.Assert(srcCol >= 0); 527Host.Check(cv == 0 || src.Length == cv); 548Host.AssertValue(input); 551Host.Assert(srcVectorType != null); 554Host.Assert(keyTypeSrc != null); 555Host.Assert(!_parent._columns[iinfo].OutputCountVector); 557int size = keyTypeSrc.GetCountAsInt32(Host); 558Host.Assert(size > 0); 561Host.Assert(cv >= 0); 562Host.Assert(_types[iinfo].Size == size * cv); 571Host.Check(lenSrc == cv || cv == 0); 582Host.Assert(lenSrc == cntSrc); 585Host.Assert(count < cntSrc); 598Host.Assert(count < cntSrc); 616Host.CheckValue(ctx, nameof(ctx)); 633Host.CheckValue(ctx, nameof(ctx)); 670int keyCount = srcItemType.GetKeyCountAsInt32(Host); 671Host.Assert(keyCount > 0); 718var categoryRange = info.TypeSrc.GetItemType().GetKeyCountAsInt32(Host);
Transforms\Normalizer.cs (2)
764Host.CheckValue(ctx, nameof(ctx)); 786Host.CheckValue(ctx, nameof(ctx));
Transforms\SlotsDroppingTransformer.cs (32)
483throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 489throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 521Host.AssertValue(slotDropper); 522Host.AssertValue(input); 523Host.AssertNonEmpty(slotsMin); 524Host.AssertNonEmpty(slotsMax); 525Host.Assert(slotsMin.Length == slotsMax.Length); 526Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 542Host.Assert(vectorType.IsKnownSize); 552Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 570Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 571Host.Assert(slotsMax != null && slotsMin != null); 572Host.Assert(slotsMax.Length == slotsMin.Length); 721Host.AssertValue(input); 722Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 740Host.AssertValue(input); 741Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 742Host.Assert(!(_srcTypes[iinfo] is VectorDataViewType)); 743Host.Assert(_suppressed[iinfo]); 761Host.AssertValue(input); 762Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 764Host.Assert(_suppressed[iinfo]); 782Host.AssertValue(input); 783Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 785Host.Assert(!_suppressed[iinfo]); 809Host.AssertValue(input); 810Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 812Host.Assert(input.IsColumnActive(src)); 818Host.CheckValue(typeDst, nameof(typeDst)); 819Host.CheckValue(row, nameof(row)); 833Host.Assert(colIndex >= 0); 881Host.CheckValue(ctx, nameof(ctx));
Transforms\TypeConverting.cs (3)
402if (!CanConvertToType(Host, srcCol.Type, _parent._columns[i].OutputKind.ToInternalDataKind(), _parent._columns[i].OutputKeyCount, 405throw Host.ExceptParam(nameof(inputSchema), 479Host.CheckValue(ctx, nameof(ctx));
Transforms\ValueMapping.cs (4)
1050Host.AssertValue(input); 1051Host.Assert(0 <= iinfo && iinfo < _columns.Length); 1061Host.CheckValue(ctx, nameof(ctx)); 1069throw Host.ExceptSchemaMismatch(nameof(_inputSchema), "input", inputColumnName);
Transforms\ValueToKeyMappingTransformer.cs (4)
736_termMap[iinfo] = Bind(Host, inputSchema, _parent._unboundMaps[iinfo], _infos, _parent._textMetadata, iinfo); 746Host.Assert(colIndex >= 0); 904Host.CheckValue(ctx, nameof(ctx)); 926Host.CheckValue(ctx, nameof(ctx));
Microsoft.ML.ImageAnalytics (3)
ImagePixelExtractor.cs (1)
348Host.Check(src.Height == height && src.Width == width);
VectorToImageTransform.cs (2)
327Host.AssertValue(input); 328Host.Assert(0 <= iinfo && iinfo < _parent._columns.Length);
Microsoft.ML.Mkl.Components (15)
VectorWhitening.cs (15)
566throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 568ValidateModel(Host, _parent._models[i], _srcTypes[i]); 570ValidateModel(Host, _parent._invModels[i], _srcTypes[i]); 589Host.Assert(colIndex >= 0); 599Host.AssertValue(input); 600Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 604Host.Assert(ex.Kind == WhiteningKind.PrincipalComponentAnalysis || ex.Kind == WhiteningKind.ZeroPhaseComponentAnalysis); 617Host.Check(src.Length == cslotSrc, "Invalid column size."); 627Host.CheckValue(ctx, nameof(ctx)); 649Host.Assert(model.Length == dimension * dimension); 652Host.Assert(parameters.Kind == WhiteningKind.PrincipalComponentAnalysis || parameters.Kind == WhiteningKind.ZeroPhaseComponentAnalysis); 655Host.CheckParam(rank <= dimension, nameof(rank), "Rank must be at most the dimension of untransformed data."); 673Host.AssertValue(input); 674Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 676Host.Assert(input.IsColumnActive(srcCol));
Microsoft.ML.OnnxTransformer (8)
OnnxTransform.cs (8)
533throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.Inputs[i]); 550throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.Inputs[i], inputNodeInfo.DataViewType.GetItemType().ToString(), type.ToString()); 620Host.AssertValue(input); 711Host.AssertValue(input); 719throw Host.Except($"Output column {namedOnnxValue.Name} doesn't contain a DenseTensor of expected type {typeof(T)}"); 730Host.AssertValue(input); 739throw Host.Except($"Output column {namedOnnxValue.Name} doesn't contain a DenseTensor of expected type {typeof(string)}"); 754Host.AssertValue(input);
Microsoft.ML.PCA (5)
PcaTransformer.cs (5)
552ValidatePcaInput(Host, colPair.inputColumnName, colSchemaInfo.InputType); 555throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", colPair.inputColumnName, 581TransformFeatures(Host, in src, ref dst, _parent._transformInfos[iinfo]); 605Host.CheckValue(ctx, nameof(ctx)); 626Host.CheckValue(ctx, nameof(ctx));
Microsoft.ML.TensorFlow (7)
TensorflowTransform.cs (7)
545Host.CheckValue(parent, nameof(parent)); 553throw Host.ExceptSchemaMismatch(nameof(InputSchema), "source", _parent.Inputs[i]); 557throw Host.Except("Variable length input columns not supported"); 562throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.Inputs[i], expectedType.ToString(), type.ToString()); 643Host.AssertValue(input); 648Host.Assert(type == _parent.OutputTypes[iinfo].GetItemType().RawType); 703Host.AssertValue(input);
Microsoft.ML.TorchSharp (14)
AutoFormerV2\ObjectDetectionTrainer.cs (4)
739if (Host is IHostEnvironmentInternal hostInternal) 795var ch = Host.Start("Make Getter"); 878Host.AssertValue(input); 882var ch = Host.Start("Make Getters");
NasBert\NerTrainer.cs (1)
372var ch = Host.Start("Make Getter");
NasBert\SentenceSimilarityTrainer.cs (1)
266var ch = Host.Start("Make Getter");
NasBert\TextClassificationTrainer.cs (1)
309var ch = Host.Start("Make Getter");
Roberta\QATrainer.cs (4)
723if (Host is IHostEnvironmentInternal hostInternal) 766var ch = Host.Start("Make Getter"); 829Host.AssertValue(input); 833var ch = Host.Start("Make Getters");
TorchSharpBaseTrainer.cs (3)
462if (Host is IHostEnvironmentInternal hostInternal) 492Host.AssertValue(input); 496var ch = Host.Start("Make Getters");
Microsoft.ML.Transforms (177)
Dracula\CountTableTransformer.cs (6)
616Host.Check((long)valueCount * _parent.Featurizer.NumFeatures < int.MaxValue, "Too large output size"); 635Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 640Host.Assert(inputCol.HasSlotNames()); 646Host.Assert(inputSlotNames.Length == inputCol.Type.GetValueCount()); 682Host.Assert(_parent.Featurizer.SlotCount[iinfo] == 1); 701Host.Assert(_parent.Featurizer.SlotCount[iinfo] == n);
ExpressionTransformer.cs (1)
941throw Host.Except($"Column {inputColumnNames[j]} does not exist in the input schema");
GcnTransform.cs (13)
367Host.Assert(0 < ex.Scale && ex.Scale < float.PositiveInfinity); 368Host.Assert(_srcTypes[iinfo] is VectorDataViewType); 387FillValues(Host, in src, ref dst, divisor, scale, mean); 398FillValues(Host, in src, ref dst, divisor, scale, mean); 409FillValues(Host, in src, ref dst, divisor, scale, mean); 420FillValues(Host, in src, ref dst, divisor, scale, mean); 424Host.Assert(false, "Unsupported normalizer type"); 437FillValues(Host, in src, ref dst, divisor, scale); 446FillValues(Host, in src, ref dst, divisor, scale); 455FillValues(Host, in src, ref dst, divisor, scale); 464FillValues(Host, in src, ref dst, divisor, scale); 468Host.Assert(false, "Unsupported normalizer type"); 609Host.CheckValue(ctx, nameof(ctx));
KeyToVectorMapping.cs (24)
178Host.Assert(_bitsPerKey[i] > 0); 190Host.AssertValue(inputSchema); 195throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 209Host.Assert(colIndex >= 0); 230typeNames.Size != _infos[iinfo].TypeSrc.GetItemType().GetKeyCountAsInt32(Host)) 281Host.Assert(0 <= iinfo && iinfo < _infos.Length); 282Host.Assert(_types[iinfo].IsKnownSize); 287Host.Assert(srcVectorSize > 1); 299Host.Check(namesSlotSrc.Length == srcVectorSize); 305Host.Assert(slotLim == (long)srcVectorSize * _bitsPerKey[iinfo]); 331Host.Assert(slot == slotLim); 338Host.AssertValue(input); 339Host.Assert(0 <= iinfo && iinfo < _infos.Length); 353Host.AssertValue(input); 354Host.Assert(_infos[iinfo].TypeSrc is KeyDataViewType); 357Host.Assert(bitsPerKey == _types[iinfo].Size); 360Host.Assert(dstLength > 0); 362Host.Assert(srcCol >= 0); 383Host.AssertValue(input); 384Host.AssertValue(typeSrc); 385Host.Assert(typeSrc.ItemType is KeyDataViewType); 388Host.Assert(cv >= 0); 390Host.Assert(srcCol >= 0); 399Host.Check(src.Length == cv || cv == 0);
MissingValueDroppingTransformer.cs (10)
244Host.Assert(!isNA(in def)); 255Host.AssertValue(isNA); 264Host.Assert(newCount <= srcValues.Length); 277Host.Assert(dst.GetValues().Length == newCount); 292Host.Assert(iDst == newCount); 299Host.AssertValue(isNA); 308Host.Assert(newCount <= srcValues.Length); 334Host.Assert(iDst == newCount); 355Host.Assert(iDst == newCount); 356Host.Assert(offset == srcValues.Length - newCount);
MissingValueIndicatorTransformer.cs (19)
185Host.AssertValue(inputSchema); 190throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 209Host.Assert(colIndex >= 0); 237Host.AssertValue(input); 238Host.Assert(0 <= iinfo && iinfo < _infos.Length); 301Host.AssertValue(isNA); 302Host.AssertValue(indices); 373Host.Assert(dstCount <= srcLength); 391Host.Assert(0 <= i && i <= iNext); 392Host.Assert(iiSrc + iiDst == i); 395Host.Assert(iiDst < dstCount); 401Host.Assert(iiSrc + 1 < indices.Count); 402Host.Assert(iNext < indices[iiSrc + 1]); 406Host.Assert(srcLength == iiSrc + iiDst); 407Host.Assert(iiDst == dstCount); 423Host.Assert(0 <= i && i <= indices[ii]); 428Host.Assert(ii < indices.Count); 429Host.Assert(indices[ii - 1] < indices[ii]); 443Host.CheckValue(ctx, nameof(ctx));
MissingValueReplacing.cs (33)
574throw Host.ExceptParam(nameof(InputSchema), "Column '{0}' item type '{1}' does not match expected ColumnType of '{2}'", 580throw Host.ExceptParam(nameof(inputSchema), "Column '{0}' item type '{1}' cannot be a vector when Columntype is a scalar of type '{2}'", 583throw Host.ExceptParam(nameof(inputSchema), "Column '{0}' is unknown size vector '{1}' must be a scalar instead of type '{2}'", _infos[i].InputColumnName, type, parent._replaceTypes[i]); 585throw Host.ExceptParam(nameof(inputSchema), "Column '{0}' item type '{1}' must be a scalar or a vector of the same size as Columntype '{2}'", 595Host.AssertValue(inputSchema); 600throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 614Host.Assert(colIndex >= 0); 624Host.AssertValue(input); 625Host.Assert(0 <= iinfo && iinfo < _infos.Length); 647Host.Assert(_parent._repValues[iinfo] is T); 680Host.Assert(_parent._repValues[iinfo] is T); 692Host.Assert(_parent._repValues[iinfo] is T[]); 700Host.Check(src.Length == repArray.Length); 710Host.AssertValue(isNA); 725Host.Assert(srcSize == srcCount); 743Host.Assert(srcCount < srcSize); 750Host.Assert(iivDst <= iivSrc); 753Host.Assert(ivPrev < iv && iv < srcSize); 768Host.Assert(iivDst <= srcCount); 770Host.Assert(0 <= iivDst); 771Host.Assert(repIsDefault || iivDst == srcCount); 780Host.AssertValue(rep); 781Host.Assert(rep.Length == src.Length); 782Host.AssertValue(repIsDefault); 783Host.Assert(repIsDefault.Length == src.Length); 784Host.AssertValue(isNA); 799Host.Assert(srcSize == srcCount); 817Host.Assert(srcCount < srcSize); 824Host.Assert(iivDst <= iivSrc); 827Host.Assert(ivPrev < iv && iv < srcSize); 842Host.Assert(iivDst <= srcCount); 844Host.Assert(0 <= iivDst); 850Host.CheckValue(ctx, nameof(ctx));
RandomFourierFeaturizing.cs (1)
551Host.Check(src.Length == transformInfo.SrcDim, "column does not have the expected dimensionality.");
Text\LdaTransform.cs (2)
576throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 581throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName, "known-size vector of Single", srcCol.Type.ToString());
Text\NgramHashingTransformer.cs (5)
398throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", srcName); 401throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", srcName, NgramHashingEstimator.ExpectedColumnType, columnType.ToString()); 553Host.Assert(0 <= lim && lim <= Utils.Size(ngram)); 554Host.Assert(Utils.Size(ngram) == ngramLength); 555Host.Assert(icol >= 0);
Text\NgramTransform.cs (18)
527Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 528Host.Assert(InputSchema[_srcCols[iinfo]].HasKeyValues()); 533var keyCount = itemType.GetKeyCountAsInt32(Host); 535Host.Check(unigramNames.Length == keyCount); 547Host.Assert(n >= 0); 562Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 563Host.Assert(InputSchema[_srcCols[iinfo]].HasKeyValues()); 566var keyCount = itemType.GetKeyCountAsInt32(Host); 596Host.Assert(n >= 0); 634Host.AssertValue(sb); 635Host.AssertValue(ngram); 636Host.Assert(keyCount > 0); 661Host.Assert(0 < lim && lim <= Utils.Size(ngram)); 662Host.Assert(lim <= Utils.Size(_parent._transformInfos[iinfo].NonEmptyLevels)); 688Host.AssertValue(_parent._invDocFreqs[iinfo]); 705Host.AssertValue(_parent._invDocFreqs[iinfo]); 737throw Host.Except("Unsupported weighting criteria"); 746Host.CheckValue(ctx, nameof(ctx));
Text\StopWordsRemovingTransformer.cs (10)
369throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 375throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", parent._columns[i].InputColumnName, StopWordsRemovingEstimator.ExpectedColumnType, srcType.ToString()); 381throw Host.ExceptSchemaMismatch(nameof(inputSchema), "language", _parent._columns[i].LanguageColumn); 396Host.Assert(colIndex >= 0); 404Host.AssertValue(input); 405Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 1078throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", parent.ColumnPairs[i].inputColumnName, StopWordsRemovingEstimator.ExpectedColumnType, srcType.ToString()); 1090Host.Assert(colIndex >= 0); 1098Host.AssertValue(input); 1099Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
Text\TextNormalizing.cs (11)
220Host.CheckValue(ctx, nameof(ctx)); 263Host.Assert(colIndex >= 0); 328Host.AssertValue(input); 329Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 333Host.Assert(srcType.GetItemType() is TextDataViewType); 337Host.Assert(vectorType.Size >= 0); 347Host.AssertValue(getSrc); 361Host.AssertValue(getSrc); 385Host.AssertValue(buffer); 438Host.Assert(i == src.Length); 442Host.Assert(src.Length == len);
Text\TokenizingByCharacters.cs (8)
218Host.CheckValue(ctx, nameof(ctx)); 299Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 315Host.Assert(bldr.Length == boundaries[boundaries.Length - 1]); 323Host.AssertValue(keyValuesBoundaries); 466Host.AssertValue(input); 467Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 477Host.AssertValue(input); 506Host.AssertValue(input);
Text\WordEmbeddingsExtractor.cs (8)
316Host.CheckValue(inputSchema, nameof(inputSchema)); 317Host.CheckValue(parent, nameof(parent)); 545Host.AssertValue(input); 546Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 553Host.AssertValue(input); 554Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 557Host.Assert(column.Type is VectorDataViewType); 558Host.Assert(column.Type.GetItemType() is TextDataViewType);
Text\WordTokenizing.cs (8)
228Host.Assert(colIndex >= 0); 236Host.AssertValue(input); 237Host.Assert(0 <= iinfo && iinfo < _parent._columns.Length); 242Host.Assert(srcType.GetItemType() is TextDataViewType); 251Host.AssertValue(input); 277Host.AssertValue(input); 305Host.AssertNonEmpty(separators); 335Host.CheckValue(ctx, nameof(ctx));
Microsoft.ML.Vision (8)
DnnRetrainTransform.cs (8)
768Host.CheckValue(parent, nameof(parent)); 776throw Host.ExceptSchemaMismatch(nameof(InputSchema), "source", _parent._inputs[i]); 780throw Host.Except("Variable length input columns not supported"); 784throw Host.Except("Non-vector columns are not supported and should be loaded as vector columns of size 1"); 788throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent._inputs[i], expectedType.ToString(), type.ToString()); 858Host.AssertValue(input); 864Host.Assert(type == _parent._outputTypes[iinfo].GetItemType().RawType); 871Host.AssertValue(input);