You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user provides a Features type value to datasets.Dataset with members having Array2D with a value for dtype, it is not respected during with_format("numpy") which should return a np.array with dtype that the user provided for Array2D. It seems for floats, it will be set to float32 and for ints it will be set to int64
Describe the bug
If the user provides a
Features
type value todatasets.Dataset
with members havingArray2D
with a value fordtype
, it is not respected duringwith_format("numpy")
which should return anp.array
withdtype
that the user provided forArray2D
. It seems for floats, it will be set tofloat32
and for ints it will be set toint64
Steps to reproduce the bug
Output:
Expected behavior
It should return a
np.array
withdtype
that the user provided for the corresponding member in theFeatures
type valueEnvironment info
datasets
version: 3.0.2huggingface_hub
version: 0.26.1fsspec
version: 2024.5.0The text was updated successfully, but these errors were encountered: