OnnxMapTypeAttribute Class

Definition

To declare OnnxMapType column in IDataView as a field in a class, the associated field should be marked with OnnxMapTypeAttribute. Its uses are similar to those of VectorTypeAttribute and other classes derived from DataViewTypeAttribute.

public sealed class OnnxMapTypeAttribute : Microsoft.ML.Data.DataViewTypeAttribute
type OnnxMapTypeAttribute = class
    inherit DataViewTypeAttribute
Public NotInheritable Class OnnxMapTypeAttribute
Inherits DataViewTypeAttribute
Inheritance
OnnxMapTypeAttribute

Constructors

OnnxMapTypeAttribute()

Create a map (aka dictionary) type.

OnnxMapTypeAttribute(Type, Type)

Create a map (aka dictionary) type. A map is a collection of key-value pairs. keyType specifies the type of keys and valueType is the type of values.

Methods

Equals(DataViewTypeAttribute)

Map types with the same key type and the same value type should be equal.

GetHashCode()

Produce the same hash code for map types with the same key type and the same value type.

Register()

An implementation of Register().

Applies to