Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Whitespace fixes
  • Loading branch information
inducer committed Aug 18, 2015
1 parent 4660145 commit 440936b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycuda/gpuarray.py
Expand Up @@ -745,11 +745,11 @@ def view(self, dtype=None):
def squeeze(self):
"""
Returns a view of the array with dimensions of
length 1 removed
length 1 removed.
"""
new_shape = tuple([dim for dim in self.shape if dim > 1])
new_strides = tuple([self.strides[i]
for i, dim in enumerate(self.shape) if dim > 1])
for i, dim in enumerate(self.shape) if dim > 1])

return GPUArray(
shape=new_shape,
Expand Down

0 comments on commit 440936b

Please sign in to comment.