Closed vade closed 2 months ago
We are looking into adding the support for numpy 2.0
. Until then, please try to build from the source which pins the version of numpy to be less than 2.0.
This issue should be fixed in 8.0b2
, @vade please give it a try :)
Since the issue is resolved, let me close the issue.
@vade Please try with the latest coremltools,
pip install coremltools==8.0b2
If the issue still persists, please feel free to re-open the issue.
🐞Describing the bug
CoreMLTools 8.0 b1 is incompatible with a subtle change in Numpy 2.x
Stack Trace
AttributeError:
np.issubclass_
was removed in the NumPy 2.0 release. Useissubclass
builtin instead.To Reproduce
Install numpy 2.x Attempt any model conversion.
System environment (please complete the following information):
Additional context