def forward(self, x):
    out = self.embedding(x)
    out = out.permute(0, 2, 3, 1).view(x.size(0), (- 1), self.dims)
    for layer in self.layers:
        out = layer(out)
    out = out.mean(dim=1)
    out = self.fc(out)
    return out
def forward(self, x):
    out = self.embedding(x)
    out = out.permute(0, 2, 3, 1).view(x.size(0), (- 1), self.dims)
    for layer in self.layers:
        out = layer(out)
    out = out.mean(dim=1)
    out = self.fc(out)
    return out