2 writes to ContextColumnName
Microsoft.ML.TorchSharp (2)
13 references to ContextColumnName
Microsoft.ML.TorchSharp (13)
Roberta\QATrainer.cs (13)
106Contracts.AssertValue(options.ContextColumnName);
272DataViewRowCursor cursor = input.GetRowCursor(input.Schema[Parent.Option.ContextColumnName], input.Schema[Parent.Option.QuestionColumnName], input.Schema[Parent.Option.TrainingAnswerColumnName], input.Schema[Parent.Option.AnswerIndexStartColumnName]);
274var contextGetter = cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.Option.ContextColumnName]);
531if (!inputSchema.TryFindColumn(Option.ContextColumnName, out var contextCol))
532throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Context", Option.ContextColumnName);
534throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Context", Option.ContextColumnName,
617if (!inputSchema.TryFindColumn(Options.ContextColumnName, out var contextCol))
618throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Context", Options.ContextColumnName);
620throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Context", Options.ContextColumnName,
655ctx.SaveNonEmptyString(Options.ContextColumnName);
718if (inputSchema.TryGetColumnIndex(parent.Options.ContextColumnName, out var col))
781getContext = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.ContextColumnName]);
808getContext = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.ContextColumnName]);