1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Don't use no-longer-existing np.bool
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1028359
Forwarded: no
--- a/pygpu/dtypes.py
+++ b/pygpu/dtypes.py
@@ -71,7 +71,7 @@ def register_dtype(dtype, c_names):
def _fill_dtype_registry():
- register_dtype(np.bool, ["ga_bool", "bool"])
+ register_dtype(bool, ["ga_bool", "bool"])
register_dtype(np.int8, ["ga_byte", "char", "signed char"])
register_dtype(np.uint8, ["ga_ubyte", "unsigned char"])
register_dtype(np.int16, ["ga_short", "short", "signed short",
|