Dataset.with_format
behaves inconsistently with documentation
#6950
Labels
documentation
Improvements or additions to documentation
Describe the bug
The actual behavior of the interface
Dataset.with_format
is inconsistent with the documentation.https://huggingface.co/docs/datasets/use_with_pytorch#n-dimensional-arrays
https://huggingface.co/docs/datasets/v2.19.0/en/use_with_tensorflow#n-dimensional-arrays
But I get a single tensor by default, which is inconsistent with the description.
Actually the current behavior seems more reasonable to me. Therefore, the document needs to be modified.
Steps to reproduce the bug
Expected behavior
Environment info
datasets==2.19.1
torch==2.1.0
tensorflow==2.13.1
The text was updated successfully, but these errors were encountered: