-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace mentions of .type_as()
in our docs
#14554
Comments
From the documentation:
|
For me, I often use the following methods # As the LightningModule, self.deivce is known
torch.zeros(B, S, device=self.device) |
Hey @awaelchli can i work on this issue ? I would like to contribute . |
@amrutha1098 Yes, that would be greatly appreciated! And please let me know if you need any further guidance regarding this issue or the contribution process. |
Hi @awaelchli , I have submitted the PR with the changes. Please let me know if any changes are required. |
📚 Documentation
As a follow up to #2585, we should consider removing mentions of the
.type_as()
syntax in our docs and replace it with best practices for device placement and type conversion.If you enjoy Lightning, check out our other projects! ⚡
Metrics: Machine learning metrics for distributed, scalable PyTorch applications.
Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.
Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.
Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.
Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging PyTorch Lightning, Transformers, and Hydra.
cc @Borda @rohitgr7 @Felonious-Spellfire
The text was updated successfully, but these errors were encountered: