10 references to IsNotNull
Microsoft.ML.TorchSharp (10)
NasBert\Models\NasBertEncoder.cs (1)
210
if (SegmentEmbedding != null && segmentLabels.
IsNotNull
())
NasBert\Modules\MultiHeadAttention.cs (4)
243
Debug.Assert(k.
IsNotNull
() && v.
IsNotNull
());
267
if (attentionMaskPad.
IsNotNull
())
272
if (keyPaddingMaskPad.
IsNotNull
())
NasBert\Optimizers\BaseOptimizer.cs (2)
67
.Where(grad => grad.
IsNotNull
()) // parameters unused have no gradient
86
if (grad.
IsNotNull
())
Roberta\Models\RobertaEncoder.cs (1)
49
if (linearModule.bias.
IsNotNull
())
Roberta\Models\RobertaModel.cs (1)
71
if (linearModule.bias.
IsNotNull
())
Roberta\Modules\AttentionSelf.cs (1)
59
if (attentionMask.
IsNotNull
())