commit | a9569c6fb1e6e7f921bec0e8c751b58e0926e70d | [log] [tgz] |
---|---|---|
author | koray kavukcuoglu <koray@kavukcuoglu.org> | Thu Sep 27 17:16:59 2012 -0400 |
committer | koray kavukcuoglu <koray@kavukcuoglu.org> | Thu Sep 27 17:16:59 2012 -0400 |
tree | 1a6a21e93ac9c983660d5c85b5e0f0dc263e27a4 | |
parent | 84a5bcb17a07bd28659b85ad50901217894c77b5 [diff] |
avoid segfault if required class is not already loaded. trying to load an object that contains a class that is not loaded yet causes the problem. require 'nn' m=nn.Linear(10,20) torch.save('m.obj',m) Really quit [y/N]? y torch.load('m.obj')