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