nouiz/Theano — comment on commit bbf3f5dd42ca254cd85133228ff3039355d37943
File: theano/tensor/basic.py line 1892
By delallea:

Wouldn't have it been simpler to just add before the if:

```python
if axis is None:
axis = range(x.type.ndim)
```

(keeping the previous code the same)