pybind/pybind11

[BUG]: NPY_HALF is not supported

Open

#4,061 建立於 2022年7月13日

在 GitHub 查看
 (2 留言) (2 反應) (0 負責人)C++ (14,677 star) (2,005 fork)batch import
help wanted

描述

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

貢獻者指南

[BUG]: NPY_HALF is not supported · pybind/pybind11#4061 | Good First Issue