episodic-lifelong-learning icon indicating copy to clipboard operation
episodic-lifelong-learning copied to clipboard

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

Open stellaho opened this issue 3 years ago • 1 comments

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!

stellaho avatar Nov 19 '20 11:11 stellaho