def METHOD_NAME(self, blocks, x):
    h = x
    for l, (layer, block) in enumerate(zip(self.layers, blocks)):
        h = layer(block, h)
        if l != len(self.layers) - 1:
            h = F.relu(h)
            h = self.dropout(h)
    return h