-
Notifications
You must be signed in to change notification settings - Fork 24.9k
adding types to nn module init #158065
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
base: main
Are you sure you want to change the base?
adding types to nn module init #158065
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/158065
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 167fee6 with merge base 8c0c5c5 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot label "topic: not user facing" |
torch/nn/modules/module.py
Outdated
@@ -476,7 +475,7 @@ def forward(self, x): | |||
call_super_init: bool = False | |||
_compiled_call_impl: Optional[Callable] = None | |||
|
|||
def __init__(self, *args, **kwargs) -> None: | |||
def __init__(self, *args: TypeVarTuple, **kwargs: Dict[str, Any]) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't right, you need to instationate a TypevarTuple as a TypeVar and then use it
@Skylion007 |
d8922d4
to
caeb574
Compare
@albanD @Skylion007 or anyone |
Hey! |
@pytorchbot retest |
❌ 🤖 pytorchbot command failed:
Try |
/retest |
Fixes #156740