pybind/pybind11

[BUG]: NPY_HALF is not supported

Open

#4.061 geöffnet am 13. Juli 2022

Auf GitHub ansehen
 (2 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)C++ (2.005 Forks)batch import
help wanted

Repository-Metriken

Stars
 (14.677 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 2h) (10 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide