5 types derived from DataViewTypeAttribute
Microsoft.ML.Core.Tests (1)
UnitTests\TestCustomTypeRegister.cs (1)
45private sealed class AlienTypeAttributeAttribute : DataViewTypeAttribute
Microsoft.ML.ImageAnalytics (1)
ImageType.cs (1)
16public sealed class ImageTypeAttribute : DataViewTypeAttribute
Microsoft.ML.OnnxTransformer (2)
OnnxMapType.cs (1)
50public sealed class OnnxMapTypeAttribute : DataViewTypeAttribute
OnnxSequenceType.cs (1)
56public sealed class OnnxSequenceTypeAttribute : DataViewTypeAttribute
Microsoft.ML.Samples (1)
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (1)
89private sealed class AlienTypeAttributeAttribute : DataViewTypeAttribute
34 references to DataViewTypeAttribute
Microsoft.ML.Core.Tests (3)
UnitTests\TestCustomTypeRegister.cs (3)
43/// <see cref="DataViewTypeAttribute"/> applied to class <see cref="AlienBody"/> members. 50/// Create an <see cref="DataViewTypeAttribute"/> from <paramref name="raceId"/> to a <see cref="AlienBody"/>. 65public override bool Equals(DataViewTypeAttribute other)
Microsoft.ML.Data (19)
Data\DataViewTypeManager.cs (15)
57DataViewTypeAttribute typeAttr = null; 60typeAttributes = typeAttributes.Where(attr => attr.GetType().IsSubclassOf(typeof(DataViewTypeAttribute))); 64type.Name, typeAttributes, typeof(DataViewTypeAttribute)); 68typeAttr = typeAttributes.First() as DataViewTypeAttribute; 92DataViewTypeAttribute typeAttr = null; 95typeAttributes = typeAttributes.Where(attr => attr.GetType().IsSubclassOf(typeof(DataViewTypeAttribute))); 99type.Name, typeAttributes, typeof(DataViewTypeAttribute)); 103typeAttr = typeAttributes.First() as DataViewTypeAttribute; 147DataViewTypeAttribute typeAttr = null; 157if (!attr.GetType().IsSubclassOf(typeof(DataViewTypeAttribute))) 163typeAttr = attr as DataViewTypeAttribute; 175/// <param name="typeAttribute">The <see cref="DataViewTypeAttribute"/> attached to <paramref name="type"/>.</param> 176public static void Register(DataViewType dataViewType, Type type, DataViewTypeAttribute typeAttribute = null) 231private readonly DataViewTypeAttribute _associatedAttribute; 233public TypeWithAttributes(Type type, DataViewTypeAttribute attribute)
Data\SchemaDefinition.cs (4)
391var customTypeAttributes = customAttributes.Where(x => x is DataViewTypeAttribute); 394memberInfo.Name, customTypeAttributes, typeof(DataViewTypeAttribute)); 397var customTypeAttribute = (DataViewTypeAttribute)customTypeAttributes.First();
Microsoft.ML.DataView (4)
DataViewType.cs (4)
470/// <see cref="DataViewTypeAttribute"/> should be used to decorated class properties and fields, if that class' instances will be loaded as ML.NET <see cref="IDataView"/>. 476public abstract class DataViewTypeAttribute : Attribute, IEquatable<DataViewTypeAttribute> 486/// <param name="other">Another <see cref="DataViewTypeAttribute"/> to be compared with <see langword="this"/>.</param> 487public abstract bool Equals(DataViewTypeAttribute other);
Microsoft.ML.ImageAnalytics (1)
ImageType.cs (1)
49public override bool Equals(DataViewTypeAttribute other)
Microsoft.ML.OnnxTransformer (6)
OnnxMapType.cs (3)
48/// from <see cref="DataViewTypeAttribute"/>. 76public override bool Equals(DataViewTypeAttribute other) 92/// An implementation of <see cref="DataViewTypeAttribute.Register"/>.
OnnxSequenceType.cs (3)
54/// from <see cref="DataViewTypeAttribute"/>. 80public override bool Equals(DataViewTypeAttribute other) 96/// An implementation of <see cref="DataViewTypeAttribute.Register"/>.
Microsoft.ML.Samples (1)
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (1)
107public override bool Equals(DataViewTypeAttribute other)