If you're going to torture somebody because they're a troublesome inmate that needs punishing, that's one debate and I can imagine some arguments for that.
If you're going to torture somebody who hasn't even been found guilty yet, that's a different story.