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._isCasual) 54casual4dMask = MakeCasualMask(inputShape, dType, attentionMask2d.device, pastKeyValuesLength, this._slidingWindow); 56else if (this._slidingWindow is not null) 89if (queryLength > 1 || this._slidingWindow is int) 91causal4DMask = MakeCasualMask(inputShape, dType, device, pastKeyValueLength, this._slidingWindow);