Fixed typo in documentation of LazyModuleMixin#76269
Fixed typo in documentation of LazyModuleMixin#76269sugatoray wants to merge 1 commit intopytorch:masterfrom sugatoray:docs/fix_typo_lazymodules
LazyModuleMixin#76269Conversation
- was `mlp` --> changed to `lazy_mlp`
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 273820b (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
cc: @albanD @jbschlosser |
|
@pytorchbot merge this please |
|
Hey @sugatoray. |
|
@mrshenli I am not sure if this was merged/fixed? Am I supposed to do anything else? I see that Thank you. |
|
the labels should be:
|
Summary: - What changed? - On line `#92` there was a typo (`mlp`). Changed it to `lazy_mlp`. ```diff - >>> lazy_mlp = mlp.cuda().double() + >>> lazy_mlp = lazy_mlp.cuda().double() ``` - Docs: [`LazyModuleMixin`](https://pytorch.org/docs/1.11/_modules/torch/nn/modules/lazy.html#LazyModuleMixin) Closes #76269. https://github.com/pytorch/pytorch/blob/1a7e43be141ce01469d7605075cb1008bf19abd7/torch/nn/modules/lazy.py#L89-L93 Pull Request resolved: #76269 Approved by: https://github.com/mrshenli Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/f980c3c193d576736ab3490d6d02d3c80a6bf7cc Reviewed By: seemethere Differential Revision: D35900440 Pulled By: seemethere fbshipit-source-id: ef8bcacbbee9079fa8992dd5acd16b789cabcbf8
#92there was a typo (mlp). Changed it tolazy_mlp.LazyModuleMixinCloses #76269.
pytorch/torch/nn/modules/lazy.py
Lines 89 to 93 in 1a7e43b
The labels should be:
release notes: lazytopic: documentation