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