2 writes to Annotations
Microsoft.ML.DataView (2)
DataViewSchema.cs (2)
155
Annotations
= annotations ?? Annotations.Empty;
165
Annotations
= column.Annotations;
24 references to Annotations
Microsoft.ML.DataView (1)
DataViewSchema.cs (1)
423
AddColumn(column.Name, column.Type, column.
Annotations
);
Microsoft.ML.TorchSharp (23)
AutoFormerV2\ObjectDetectionTrainer.cs (8)
547
var labelAnnotationsColumn = new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.SlotNames].Type, false);
625
var labelColType = LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
636
ValueGetter<VBuffer<T>> getter = LabelColumn.
Annotations
.GetGetter<VBuffer<T>>(LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues]);
642
var labelColType = LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
755
var keyType = _parent.LabelColumn.
Annotations
.Schema.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
778
return labelCol.
Annotations
.GetGetter<VBuffer<T>>(labelCol.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues]);
NasBert\NasBertTrainer.cs (5)
436
var labelAnnotationsColumn = new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.SlotNames].Type, false);
520
var keyType = Parent.LabelColumn.
Annotations
.Schema.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
542
var keyType = Parent.LabelColumn.
Annotations
.Schema.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
563
return labelCol.
Annotations
.GetGetter<VBuffer<T>>(labelCol.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues]);
NasBert\NerTrainer.cs (4)
281
var labelColType = LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
287
ValueGetter<VBuffer<T>> getter = LabelColumn.
Annotations
.GetGetter<VBuffer<T>>(LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues]);
293
var labelColType = LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
NasBert\TextClassificationTrainer.cs (4)
217
var labelColType = LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
223
ValueGetter<VBuffer<T>> getter = LabelColumn.
Annotations
.GetGetter<VBuffer<T>>(LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues]);
229
var labelColType = LabelColumn.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
TorchSharpBaseTrainer.cs (2)
452
return labelCol.
Annotations
.GetGetter<VBuffer<T>>(labelCol.
Annotations
.Schema[AnnotationUtils.Kinds.KeyValues]);