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