Skip to content
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

AttributeError: Can't get attribute 'CNN' on <module 'main'> #4

Open
minji-o-j opened this issue May 28, 2020 · 1 comment
Open

AttributeError: Can't get attribute 'CNN' on <module 'main'> #4

minji-o-j opened this issue May 28, 2020 · 1 comment
Labels
Error Error

Comments

@minji-o-j
Copy link
Owner

AttributeError Traceback (most recent call last) in () 1 import torch ----> 2 model = torch.load ('/content/gdrive/My Drive/Colab Notebooks/my_model.pkl') 3 model
1 frames /usr/local/lib/python3.6/dist-packages/torch/serialization.py in _legacy_load(f, map_location, pickle_module, *
pickle_load_args) 771 unpickler = pickle_module.Unpickler(f, *pickle_load_args) 772 unpickler.persistent_load = persistent_load --> 773 result = unpickler.load() 774 775 deserialized_storage_keys = pickle_module.load(f, **pickle_load_args)
AttributeError: Can't get attribute 'CNN' on <module 'main'>

@minji-o-j minji-o-j added the Error Error label Jun 18, 2020
minji-o-j added a commit that referenced this issue Dec 5, 2020
@zlh1992
Copy link

zlh1992 commented Apr 25, 2022

Is there any solution of this problem?
I just met the same problem
torch 1.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Error
Projects
None yet
Development

No branches or pull requests

2 participants