2 writes to shiftSize
Microsoft.ML.TorchSharp (2)
AutoFormerV2\AutoFormerV2Block.cs (2)
46this.shiftSize = shiftSize; 50this.shiftSize = 0;
6 references to shiftSize
Microsoft.ML.TorchSharp (6)
AutoFormerV2\AutoFormerV2Block.cs (6)
95if (this.useShiftWindow && this.shiftSize > 0) 97shiftedX = torch.roll(x, shifts: new long[] { -this.shiftSize, -this.shiftSize }, dims: new long[] { 1, 2 }); 113if (this.useShiftWindow && this.shiftSize > 0) 115x = torch.roll(shiftedX, shifts: new long[] { this.shiftSize, this.shiftSize }, dims: new long[] { 1, 2 });