pybind/pybind11

[BUG]: NPY_HALF is not supported

Open

#4061 aperta il 13 lug 2022

Vedi su GitHub
 (2 commenti) (2 reazioni) (0 assegnatari)C++ (2005 fork)batch import
help wanted

Metriche repository

Star
 (14.677 star)
Metriche merge PR
 (Merge medio 5g 2h) (10 PR mergiate in 30 g)

Descrizione

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

Guida contributor