Skip to content

Commit 267c0c2

Browse files
authored
Merge pull request #1172 from calad0i/np2.0
remove np.float_ (deprecated in numpy>=2.0)
2 parents 92c8880 + e49f288 commit 267c0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hls4ml/model/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def _get_top_function(self, x):
732732
if x0.dtype in [np.single, np.float32]:
733733
top_function = getattr(self._top_function_lib, self.config.get_project_name() + '_float')
734734
ctype = ctypes.c_float
735-
elif x0.dtype in [np.double, np.float64, np.float_]:
735+
elif x0.dtype in [np.double, np.float64]:
736736
top_function = getattr(self._top_function_lib, self.config.get_project_name() + '_double')
737737
ctype = ctypes.c_double
738738
else:

0 commit comments

Comments
 (0)