You have a small typo in the code here:
        x = self.LeakyRelu(x)
        x = self.dropout
        x = self.conv5(x)

forgot to call self.dropout(x) and are passing the Dropout module to self.conv5.