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: 'generator' object has no attribute 'clone' #3

Open
stellaho opened this issue Nov 19, 2020 · 1 comment
Open

AttributeError: 'generator' object has no attribute 'clone' #3

stellaho opened this issue Nov 19, 2020 · 1 comment

Comments

@stellaho
Copy link

Hi,

I am trying to run this model. While at the inference stage, I received the following AttributeError:

Traceback (most recent call last):
  File "main.py", line 273, in <module>
    model = MbPAplusplus(model_state=model_state)
  File "/home/sandstone/code/continual_learning/replay_baselines/episodic-lifelong-learning-master/models/MbPAplusplus.py", line 118, in __init__
    self.base_weights = self.classifier.parameters().clone().detach().to("cuda" if torch.cuda.is_available() else "cpu")
AttributeError: 'generator' object has no attribute 'clone'

I am wondering if anyone has the same issue like this. Or, any thoughts?

Thank you!

@Pzeyang
Copy link

Pzeyang commented Aug 18, 2021

AttributeError: 'generator' object has no attribute 'clone'
I got the same problem.

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

No branches or pull requests

2 participants