`dim` will never be a tuple - it's always an integer.