4 implementations of Type
Microsoft.ML.Data (4)
DataLoadSave\Binary\Codecs.cs (4)
116public DataViewType Type { get; } 784public DataViewType Type { get { return _type; } } 1184public DataViewType Type { get { return _type; } } 1281public DataViewType Type { get { return _type; } }
23 references to Type
Microsoft.ML.Data (23)
DataLoadSave\Binary\BinaryLoader.cs (3)
157Type = Codec?.Type; 505var type = codec.Type; 659metadataBuilder.Add(loadedMetadataColumn.Kind, loadedMetadataColumn.Codec.Type, metadataGetter);
DataLoadSave\Binary\BinarySaver.cs (6)
97Type writePipeType = typeof(WritePipe<>).MakeGenericType(col.Codec.Type.RawType); 722_host.Assert(type.Equals(codec.Type)); 754methInfo.MakeGenericMethod(col.Codec.Type.RawType).Invoke(this, args); 836return codec.Type; 894type = codec.Type; 904_host.Assert(typeof(T) == codec.Type.RawType);
DataLoadSave\Binary\Codecs.cs (6)
792Contracts.Assert(innerCodec.Type == type.ItemType); 1128var itemType = innerCodec.Type as PrimitiveDataViewType; 1192Contracts.Assert(innerCodec.Type.RawType == type.RawType); 1241var itemType = innerCodec.Type as PrimitiveDataViewType; 1289Contracts.Assert(innerCodec.Type.RawType == type.RawType); 1338var itemType = innerCodec.Type as PrimitiveDataViewType;
Transforms\InvertHashUtils.cs (2)
360if (!(codec.Type is VectorDataViewType vectorType)) 395VectorDataViewType vectorType = (VectorDataViewType)codec.Type;
Transforms\ValueToKeyMappingTransformerImpl.cs (6)
533ectx.CheckDecode(codec.Type is PrimitiveDataViewType); 536return Utils.MarshalInvoke(LoadCodecCore<int>, codec.Type.RawType, ctx, ectx, codec, count); 550ectx.Assert(codec.Type is PrimitiveDataViewType); 573return new HashArrayImpl<T>((PrimitiveDataViewType)codec.Type, values); 704host.Assert(codec.Type.Equals(ItemType)); 705host.Assert(codec.Type is PrimitiveDataViewType);