Skip to content

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

Description

@stellaho

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions