1 write to _slidingWindow
Microsoft.ML.GenAI.Core (1)
Utility\AttentionMaskConverter.cs (1)
22this._slidingWindow = slidingWindow;
5 references to _slidingWindow
Microsoft.ML.GenAI.Core (5)
Utility\AttentionMaskConverter.cs (5)
46if ((inputShape[^1] > 1 || this._slidingWindow is not null) && this._isCausal) 54causal4dMask = MakeCausalMask(inputShape, dType, attentionMask2d.device, pastKeyValuesLength, this._slidingWindow); 56else if (this._slidingWindow is not null) 89if (queryLength > 1 || this._slidingWindow is int) 91causal4DMask = MakeCausalMask(inputShape, dType, device, pastKeyValueLength, this._slidingWindow);