You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python test.py
$ python test.py
Traceback (most recent call last):
File "test.py", line 28, in <module>
trainer.run(train_loader, max_epochs=2)
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/chainer_pytorch_migration/ignite/extensions.py", line 293, in pre_run
Engine.run(self.engine, data, max_epochs)
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/ignite/engine/engine.py", line 446, in run
self._handle_exception(e)
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/ignite/engine/engine.py", line 410, in _handle_exception
raise e
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/ignite/engine/engine.py", line 429, in run
self._fire_event(Events.STARTED)
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/ignite/engine/engine.py", line 345, in _fire_event
func(self, *(event_args + args), **kwargs)
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/chainer_pytorch_migration/ignite/extensions.py", line 241, in set_training_started
self.start_extensions()
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/chainer_pytorch_migration/ignite/extensions.py", line 266, in start_extensions
initializer(self)
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/chainer/training/extensions/_snapshot.py", line 379, in initialize
npz.load_npz(snapshot_file, target)
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/chainer/serializers/npz.py", line 243, in load_npz
d.load(obj)
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/chainer/serializer.py", line 83, in load
obj.serialize(self)
File "/Users/sakai/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/chainer_pytorch_migration/ignite/extensions.py", line 307, in serialize
state = torch.load(self.torch_snapshot)
AttributeError: 'ExtensionTrainerAdapter' object has no attribute 'torch_snapshot'
If I run following script multiple times, it raises a
AttributeError: 'ExtensionTrainerAdapter' object has no attribute 'torch_snapshot'
.Maybe following description in Framework Migration GuideFramework Migration Guide implies that
autoload
is unsupported, but I create this issue just in case.The text was updated successfully, but these errors were encountered: