-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Handling AttributeErrors while cleaning params namespace while setting up fit #3771
Labels
Comments
I believe these are added when using the |
Thanks for the issue @chiragraman! Any way you can send a PR to fix? |
@edenlightning sure thing! Is the suggested solution to also catch |
@Borda might have opinions on this |
jtamir
added a commit
to jtamir/pytorch-lightning
that referenced
this issue
Nov 4, 2020
8 tasks
rohitgr7
pushed a commit
that referenced
this issue
Nov 4, 2020
* is_picklable: catch AttributeError (addresses #3771) * edit Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: chaton <[email protected]>
SeanNaren
pushed a commit
that referenced
this issue
Nov 10, 2020
* is_picklable: catch AttributeError (addresses #3771) * edit Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: chaton <[email protected]> (cherry picked from commit 945d6f5)
SeanNaren
pushed a commit
that referenced
this issue
Nov 11, 2020
* is_picklable: catch AttributeError (addresses #3771) * edit Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: chaton <[email protected]> (cherry picked from commit 945d6f5)
rohitgr7
pushed a commit
that referenced
this issue
Nov 21, 2020
* is_picklable: catch AttributeError (addresses #3771) * edit Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: chaton <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug
is_picklable
inparsing.py
does not handle AttributeError thrown bypickle.dumps()
- specifically, the following :AttributeError: Can't pickle local object 'ArgumentParser.__init__.<locals>.identity'
To Reproduce
Here's a stack trace:
I forked the repo, found the file, and made the following change to
is_picklable
:I then installed the package from my local repo, ran the same code and got the following warnings:
These aren't params added by the end user I believe, and for some reason pickle raises an
AttributeError
rather thanpickling.PicklingError
for these.Environment
- GPU:
- Quadro P4000
- available: True
- version: 10.2
- numpy: 1.19.1
- pyTorch_debug: False
- pyTorch_version: 1.6.0
- pytorch-lightning: 0.9.1rc4
- tqdm: 4.48.2
- OS: Linux
- architecture:
- 64bit
- ELF
- processor: x86_64
- python: 3.8.5
- version: Support of different batch types #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020
Additional context
Not sure if the solution is to also handle
AttributeError
, or if a more elegant alternative is needed.The text was updated successfully, but these errors were encountered: