ValueError->TypeError in _new_like_order_and_strides
@@ -66,7 +66,7 @@ def _new_like_order_and_strides(a, dtype, order):
memptr = cupy.empty(a.size, dtype=dtype).data
return order, strides, memptr
else:
- raise ValueError("unknown order, {}".format(order))
+ raise TypeError('order not understood: {}'.format(order))
def empty_like(a, dtype=None, order='K'):
