1 write to Options
Microsoft.ML.TorchSharp (1)
Roberta\QATrainer.cs (1)
577Options = options;
25 references to Options
Microsoft.ML.TorchSharp (25)
Roberta\QATrainer.cs (25)
606outColumns[Options.PredictedAnswerColumnName] = new SchemaShape.Column(Options.PredictedAnswerColumnName, SchemaShape.Column.VectorKind.VariableVector, 609outColumns[Options.ScoreColumnName] = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector, 617if (!inputSchema.TryFindColumn(Options.ContextColumnName, out var contextCol)) 618throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Context", Options.ContextColumnName); 620throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Context", Options.ContextColumnName, 623if (!inputSchema.TryFindColumn(Options.QuestionColumnName, out var questionCol)) 624throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Question", Options.QuestionColumnName); 626throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Question", Options.QuestionColumnName, 655ctx.SaveNonEmptyString(Options.ContextColumnName); 656ctx.SaveNonEmptyString(Options.QuestionColumnName); 657ctx.SaveNonEmptyString(Options.PredictedAnswerColumnName); 658ctx.SaveNonEmptyString(Options.ScoreColumnName); 659ctx.Writer.Write(Options.TopKAnswers); 718if (inputSchema.TryGetColumnIndex(parent.Options.ContextColumnName, out var col)) 720if (inputSchema.TryGetColumnIndex(parent.Options.QuestionColumnName, out col)) 746info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedAnswerColumnName, new VectorDataViewType(TextDataViewType.Instance)); 748info[1] = new DataViewSchema.DetachedColumn(_parent.Options.ScoreColumnName, new VectorDataViewType(NumberDataViewType.Single), meta.ToAnnotations()); 781getContext = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.ContextColumnName]); 782getQuestion = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.QuestionColumnName]); 808getContext = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.ContextColumnName]); 809getQuestion = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.QuestionColumnName]); 832TensorCacher outputCacher = new TensorCacher(_parent.Options.TopKAnswers); 920var topKSpans = MetricUtils.ComputeTopKSpansWithScore(logits, _parent.Options.TopKAnswers, questionLength, contextLength);