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
Description
Hey Dude, I am running a machine translation task with torchtext.datasets.IWSLT. However, I found that the CPU usage is always high and GPU usage is always low. When using torch.utils.data.dataloader, I can use num_workers and pin_memory to deal with this problem. But I can't deal with this problem with torchtext.data.Iterator or torchtext.data.BucketItertor.
How can I accelerate my data loading speed via torchtext?
The text was updated successfully, but these errors were encountered:
❓ Questions and Help
Description
Hey Dude, I am running a machine translation task with
torchtext.datasets.IWSLT
. However, I found that the CPU usage is always high and GPU usage is always low. When usingtorch.utils.data.dataloader
, I can usenum_workers
andpin_memory
to deal with this problem. But I can't deal with this problem withtorchtext.data.Iterator
ortorchtext.data.BucketItertor
.How can I accelerate my data loading speed via
torchtext
?The text was updated successfully, but these errors were encountered: