-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Crash trying to construct module_arguments when module is created in a method #1976
Comments
Hi! thanks for your contribution!, great first issue! |
This is very strange behaviour, I can reproduce but not understand how it is possible that it misses the property... |
It's related to the hparams frame inspection magic, right? |
another idea here haha. maybe as @Borda suggested, we make a function:
that get saved to the checkpoint? or
and that way we don't need to do the magic? only optionally if the user wants it? |
well, the question is what is safer...
I would stay with parsing init arguments and add an optional fund to do auto register but it on user's responsibility if he uses it or not... |
I am not sure as it properly creates the instance, I will check it again... |
@maximsch2 @tullie Mind adding other tests we should consider to make sure we don't break anything? |
After spending some time with #2048 I think I know what's going on here. Since we are recursively operating on the stack frame and going up with |
fixed in #2047 |
Last line here crashes:
For context, this happens when we want to instantiate LightningModules as part of a unit testing functions.
The text was updated successfully, but these errors were encountered: