File: numpy1p24.patch

package info (click to toggle)
libgpuarray 0.7.6-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,176 kB
  • sloc: ansic: 19,235; python: 4,591; makefile: 208; javascript: 71; sh: 15
file content (17 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
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",