36 references to DataViewTypeManager
Microsoft.ML.Core.Tests (22)
UnitTests\TestCustomTypeRegister.cs (22)
62
DataViewTypeManager
.Register(new DataViewAlienBodyType(RaceId), typeof(AlienBody), this);
263
DataViewTypeManager
.Register(a, typeof(AlienBody));
264
DataViewTypeManager
.Register(a, typeof(AlienBody));
265
DataViewTypeManager
.Register(b, typeof(AlienBody));
266
DataViewTypeManager
.Register(b, typeof(AlienBody));
269
Assert.True(
DataViewTypeManager
.Knows(a));
270
Assert.True(
DataViewTypeManager
.Knows(b));
271
Assert.True(
DataViewTypeManager
.Knows(typeof(AlienBody)));
272
Assert.Equal(a,
DataViewTypeManager
.GetDataViewType(typeof(AlienBody)));
273
Assert.Equal(b,
DataViewTypeManager
.GetDataViewType(typeof(AlienBody)));
281
DataViewTypeManager
.Register(a, typeof(AlienBody), c);
295
DataViewTypeManager
.Register(new DataViewAlienBodyType(5566), typeof(AlienBody));
306
DataViewTypeManager
.Register(e, typeof(AlienBody), f);
307
Assert.True(
DataViewTypeManager
.Knows(e));
308
Assert.True(
DataViewTypeManager
.Knows(typeof(AlienBody), new[] { f }));
310
Assert.Equal(e,
DataViewTypeManager
.GetDataViewType(typeof(AlienBody), new[] { f }));
312
Assert.NotEqual(a,
DataViewTypeManager
.GetDataViewType(typeof(AlienBody), new[] { f }));
324
DataViewTypeManager
.Register(a, typeof(AlienBody), b);
325
Assert.True(
DataViewTypeManager
.Knows(a));
326
Assert.True(
DataViewTypeManager
.Knows(typeof(AlienBody), new Attribute[] { b, c }));
328
Assert.Equal(a,
DataViewTypeManager
.GetDataViewType(typeof(AlienBody), new Attribute[] { b, c }));
329
Assert.Throws<ArgumentOutOfRangeException>(() =>
DataViewTypeManager
.Knows(typeof(AlienBody), new Attribute[] { b, d }));
Microsoft.ML.Data (8)
Data\DataViewTypeManager.cs (1)
47
/// The lock that one should acquire if the state of <see cref="
DataViewTypeManager
"/> will be accessed or modified.
Data\SchemaDefinition.cs (2)
434
if (!
DataViewTypeManager
.Knows(dataType, customAttributes))
467
columnType =
DataViewTypeManager
.GetDataViewType(dataType, customAttributes);
DataView\DataViewConstructionUtils.cs (1)
293
else if (
DataViewTypeManager
.Knows(colType))
DataView\InternalSchemaDefinition.cs (1)
199
if (!itemType.TryGetDataKind(out _) && !
DataViewTypeManager
.Knows(itemType, attributes))
DataView\TypedCursor.cs (2)
248
if (!actualType.TryGetDataKind(out _) && !
DataViewTypeManager
.Knows(actualType, customAttributes))
408
else if (
DataViewTypeManager
.Knows(colType))
Utils\ApiUtils.cs (1)
42
t == typeof(DataViewRowId) ||
DataViewTypeManager
.Knows(t, attributes))
Microsoft.ML.ImageAnalytics (1)
ImageType.cs (1)
66
DataViewTypeManager
.Register(new ImageDataViewType(Height, Width), typeof(MLImage), this);
Microsoft.ML.OnnxTransformer (4)
OnnxMapType.cs (2)
27
DataViewTypeManager
.Register(this, RawType, new OnnxMapTypeAttribute(keyType, valueType));
98
DataViewTypeManager
.Register(new OnnxMapType(_keyType, _valueType), type, this);
OnnxSequenceType.cs (2)
33
DataViewTypeManager
.Register(this, RawType, new OnnxSequenceTypeAttribute(elementType));
102
DataViewTypeManager
.Register(new OnnxSequenceType(_elemType), type, this);
Microsoft.ML.Samples (1)
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (1)
103
DataViewTypeManager
.Register(new DataViewAlienBodyType(RaceId),