1 write to Options
Microsoft.ML.TorchSharp (1)
NasBert\Models\BaseModel.cs (1)
27Options = options ?? throw new ArgumentNullException(nameof(options));
21 references to Options
Microsoft.ML.TorchSharp (21)
NasBert\Models\BaseModel.cs (2)
13public BertModelType EncoderType => Options.ModelType; 15public BertTaskType HeadType => Options.TaskType;
NasBert\Models\ModelPrediction.cs (2)
23inputDim: Options.EncoderOutputDim, 25dropoutRate: Options.PoolerDropout);
NasBert\Models\NasBertModel.cs (13)
25dropout: Options.Dropout, 26attentionDropout: Options.AttentionDropout, 27activationDropout: Options.ActivationDropout, 28activationFn: Options.ActivationFunction, 29dynamicDropout: Options.DynamicDropout, 30maxSeqLen: Options.MaxSequenceLength, 31embedSize: Options.EmbeddingDim, 32arches: Options.Arches?.ToList(), 34encoderNormalizeBefore: Options.EncoderNormalizeBefore, 35numEncoderLayers: Options.EncoderLayers, 37freezeTransfer: Options.FreezeTransfer); 42if (Options.FreezeEncoder) 60if (!Options.LayerNormTraining)
NasBert\Models\NerModel.cs (2)
22inputDim: Options.EncoderOutputDim, 24dropoutRate: Options.PoolerDropout);
Roberta\Models\RobertaModelForQA.cs (2)
25inputDim: Options.EncoderOutputDim, 27dropoutRate: Options.PoolerDropout);