KeyError in Stash
See original GitHub issueThank you so much for the awesome repository!
I use stash and find there is an error in PoPCat().isolate(ns)
I have checked the stash is fine and have run successfully.
Thanks again for your help!
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/site-packages/torchgpipe/skip/skippable.py", line 173, in forward
poppable_tensors[name] = skip_tracker.load(batch, ns, name)
File "/opt/conda/lib/python3.6/site-packages/torchgpipe/skip/tracker.py", line 38, in load
return self.tensors.pop((ns, name))
KeyError: (<Namespace 'bfb2fb79-66d2-4437-abf9-ef62cfb17836'>, 'k')
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/container.py", line 92, in forward
input = module(input)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/torchgpipe/skip/skippable.py", line 175, in forward
raise RuntimeError(f"'{name}' has not been stashed")
RuntimeError: 'k' has not been stashed
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
_pytest.stash — pytest documentation
Usually you will be given an object which has a ``Stash``, for example :class:`~pytest. ... Raises ``KeyError`` if the key wasn't set before....
Read more >Pytest KeyError when attempting to access a command line ...
I have a framework that needs a command lane variable from pytest. This variable is called environment but when I attempt to access...
Read more >Stash, git not working correctly - omz:forum
I've recently been trying to use stash for the git support. I do a git init in a folder, then try doing a...
Read more >No application link found for Stash repository: Stash | Bamboo
No application link found for Stash repository: Stash ... Multiple entries with same key error while syncing from external user directory ...
Read more >[Help Wanted] StaSH for Pythonista needs your help updating ...
Simply replace the one found in the StaSH bin folder # -*- coding: utf-8 ... STASH = True except KeyError: _stash = None...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. I forgot the []. Thank you so much!
@wentaozhu Thank you for making it reproducible. I got it. If you use
stash
andpop
withoutGPipe
, I highly recommendverify_skippables()
to check skip connection errors before training your module. You will get an exception like this before training:I didn’t find a point to improve. I close this issue.