Skip to content

Commit

Permalink
Merge pull request fastmachinelearning#1172 from calad0i/np2.0
Browse files Browse the repository at this point in the history
remove np.float_ (deprecated in numpy>=2.0)
  • Loading branch information
jmitrevs authored Jan 22, 2025
2 parents 92c8880 + e49f288 commit 267c0c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hls4ml/model/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def _get_top_function(self, x):
if x0.dtype in [np.single, np.float32]:
top_function = getattr(self._top_function_lib, self.config.get_project_name() + '_float')
ctype = ctypes.c_float
elif x0.dtype in [np.double, np.float64, np.float_]:
elif x0.dtype in [np.double, np.float64]:
top_function = getattr(self._top_function_lib, self.config.get_project_name() + '_double')
ctype = ctypes.c_double
else:
Expand Down

0 comments on commit 267c0c2

Please sign in to comment.