We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_get_ndarray_c_version
1 parent fc3437f commit 2808634Copy full SHA for 2808634
pytensor/link/c/basic.py
@@ -1371,8 +1371,8 @@ def cmodule_key_(
1371
1372
# We must always add the numpy ABI version here as
1373
# DynamicModule always add the include <numpy/arrayobject.h>
1374
- if np.lib.NumpyVersion(np.__version__) < "1.16.0a":
1375
- ndarray_c_version = np.core.multiarray._get_ndarray_c_version()
+ if np.lib.NumpyVersion(np.__version__) >= "2.0.0rc":
+ ndarray_c_version = np._core._multiarray_umath._get_ndarray_c_version()
1376
else:
1377
ndarray_c_version = np.core._multiarray_umath._get_ndarray_c_version()
1378
sig.append(f"NPY_ABI_VERSION=0x{ndarray_c_version:X}")
0 commit comments