-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array input with integers results in "value type not convertible" #194
Comments
I see this too. Thanks for the workaround! |
Faced the same error. I was able to resolve it by using float64 numpy array |
I'm fairly certain I read that CoreML has a max precision of 32. I had a PyTorch model that had input types of type
Doing so solved my issue |
With coremltools 6.0, the |
init pipeline once
float arithmetic might be wrong in some cases with large integer values (e.g. time series) |
+1 seems like this is still an issue? |
Repro steps:
Expected: something like
Actual:
Note that changing the input to
[1.0, 2, 3]
seems to fix the issue; so despite the multiArrayType being INT32, it only seems to allow float input (at least in some cases).The text was updated successfully, but these errors were encountered: