[BUG]: pybind11::format_descriptor<float16_t>::format()
throws RuntimeError: NumPy type info missing for Dh
but should return e
#4998
Labels
triage
New bug, unverified
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.11.1
Problem description
when constructing a buffer format for a dtype
float16
array, I get:RuntimeError: NumPy type info missing for Dh
. Here is a full function to reproduce:float16_t
is defined astypedef __fp16 float16_t
inarm_fp16.h
running on MacOS.According to the python buffer protocol specs float16 should be represented as 'e'.
Numpy and tensor flow are following this convention:
Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered: