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
Using a 256 bytes buffer degrades performance and allows the assumption buffer_size is provided in mbytes, as the example would double the 128 mbyte default.
Suggest a potential alternative/fix
document buffer_size to be in bytes and have the example use 256 * (1024**2) as value.
The text was updated successfully, but these errors were encountered:
📚 The doc issue
The default for S3 buffer size is 128 MB - or 128 * (1024**2)
data/torchdata/csrc/pybind/S3Handler/S3Handler.cpp
Line 15 in a5b4720
The example for S3FileLoaderIterDataPipe uses a buffer_size of 256.
data/torchdata/datapipes/iter/load/s3io.py
Line 154 in a5b4720
Using a 256 bytes buffer degrades performance and allows the assumption buffer_size is provided in mbytes, as the example would double the 128 mbyte default.
Suggest a potential alternative/fix
document buffer_size to be in bytes and have the example use 256 * (1024**2) as value.
The text was updated successfully, but these errors were encountered: