Skip to content
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

[BUG]: NPY_HALF is not supported #4061

Open
3 tasks done
jchen351 opened this issue Jul 13, 2022 · 2 comments
Open
3 tasks done

[BUG]: NPY_HALF is not supported #4061

jchen351 opened this issue Jul 13, 2022 · 2 comments

Comments

@jchen351
Copy link

jchen351 commented Jul 13, 2022

Required prerequisites

Problem description

NPY_HALF is supported by Numpy but not yet supported by pybind11.

From numpy/ndarraytypes.h there is enum NPY_TYPES { ... NPY_HALF, ...}.
However, from pybind11/numpy.h

struct npy_api {
    enum constants { ... } 

, it doesn't have NPY_HALF_

Reproducible example code

No response

@jchen351 jchen351 added the triage New bug, unverified label Jul 13, 2022
@Skylion007 Skylion007 added help wanted and removed triage New bug, unverified labels Jul 13, 2022
@Skylion007
Copy link
Collaborator

There is a workaround here: #1776 Since we don't support any versions of Numpy that don't have np.half anymore, I would welcome a PR that added these additions to the master.

@swillisart
Copy link

I'm working on a PR for this and have some questions. See discussion #4627 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants