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