1 write to windowSize
Microsoft.ML.TorchSharp (1)
AutoFormerV2\BasicLayer.cs (1)
45
this.
windowSize
= windowSize;
11 references to windowSize
Microsoft.ML.TorchSharp (11)
AutoFormerV2\BasicLayer.cs (11)
66
int hp = (int)Math.Ceiling((double)h / this.
windowSize
) * this.
windowSize
;
67
int wp = (int)Math.Ceiling((double)w / this.
windowSize
) * this.
windowSize
;
69
List<int> hSlicesStartAndEnd = new List<int>() { 0, hp - this.
windowSize
, hp - this.
windowSize
, hp - this.shiftSize, hp - this.shiftSize, hp };
70
List<int> wSlicesStartAndEnd = new List<int>() { 0, wp - this.
windowSize
, wp - this.
windowSize
, wp - this.shiftSize, wp - this.shiftSize, wp };
92
var maskWindows = WindowPartition(imgMask, this.
windowSize
);
93
maskWindows = maskWindows.view(-1, this.
windowSize
* this.
windowSize
);