Theano/Theano — pull request #1051 by jlowin (2012-11-03 23:23:26+00:00)
Title: Allow integer axes when keepdims == True

Reduction ops fail when keepdims == True and the axis argument is an int, meaning this is ok:
```python
tt.sum(x, axis = 1) #works
```
but this is not:
```python
tt.sum(x, axis = 1, keepdims = True) #fails
```
Numpy allows integer axes with keepdims == True and this PR allows it in Theano as well.