Skip to content

Commit 6572d18

Browse files
committed
Fix typos/errors.
1 parent 8dd3be8 commit 6572d18

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pygpu/reduction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ def __init__(self, context, dtype_out, neutral, reduce_expr, redux,
150150
else:
151151
self.arguments = arguments
152152

153-
if (self.dtype_out == np.dtype('float16') or
153+
if (self.dtype_out == numpy.dtype('float16') or
154154
any(ar.dtype == numpy.dtype('float16')
155155
for ar in self.arguments)):
156-
raise UnsupportedError('float16 not supported for the reduction interface')
156+
raise NotImplementedError('float16 not supported for the reduction interface')
157157

158158
self.reduce_expr = reduce_expr
159159
if map_expr is None:

0 commit comments

Comments
 (0)