Closed saeeddhqan closed 1 year ago
This can be accomplished with our prototype Vectors class, which will eventually replace the current implementation.
So, we don't need to change the current implementation to do so, right?
Nope! You can just do:
vectors = Vectors()
vectors.to(device="cuda")
thanks!
🚀 Feature
Is there any way for loading vectors based on device with torchtext.vocab.Vectors class?