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