def forward(self, x):
    (B, C, H, W) = x.shape
    x = self.proj(x).flatten(2).transpose(1, 2)
    return x
def forward(self, x):
    (B, C, H, W) = x.shape
    x = self.proj(x).flatten(2).transpose(1, 2)
    return x