pybind/pybind11

[BUG]: NPY_HALF is not supported

Open

#4.061 aberto em 13 de jul. de 2022

Ver no GitHub
 (2 comments) (2 reactions) (0 assignees)C++ (2.005 forks)batch import
help wanted

Métricas do repositório

Stars
 (14.677 stars)
Métricas de merge de PR
 (Mesclagem média 5d 2h) (10 fundiu PRs em 30d)

Description

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

Guia do colaborador