We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b48d5 commit 5a1a8f1Copy full SHA for 5a1a8f1
segmentation_models_pytorch/decoders/segformer/decoder.py
@@ -15,7 +15,7 @@ def forward(self, x: torch.Tensor):
15
batch, _, height, width = x.shape
16
x = x.flatten(2).transpose(1, 2)
17
x = self.linear(x)
18
- x = x.transpose(1, 2).reshape(batch, -1, height, width).contiguous()
+ x = x.transpose(1, 2).reshape(batch, -1, height, width)
19
return x
20
21
0 commit comments