-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
dtype/alloc-zeros error #102
Comments
Yep definitely a bug |
Looking into this - alloc-zeros is guaranteed to return a native buffer and native buffers in general do not support boolean types as those are logical types with either 1 bit or 8 bit representations depending on context. The dtype/functional namespace in general does treat 0 as false and anything else as true in keeping with the 'c' semantics. So to make a long story a bit shorter I could alias allocating an int8 buffer with this and then return a custom reader or something like that - is this what you really want? |
My suggestion, what would have helped me in the situation, would be to throw an error for :boolean in alloc zeros that explains this. Then the user can chose int8. Yea I agree that the alias idea doesn't sound so great. It's nice that dtype is close to metal like this! |
Better error messages - where have I heard that before?? ;-) Good solution it makes great sense. |
Hi, I suppose this is a bug:
works with :int8.
More info:
The text was updated successfully, but these errors were encountered: