Skip to content

AttributeError: 'function' object has no attribute 'Variable' #3

@Boreas7

Description

@Boreas7

Running the code with the recent versions of the libraries gives me an error

AttributeError: 'function' object has no attribute 'Variable'

in DeepLKBatch on the lines like

if isinstance(p, torch.autograd.variable.Variable):

The problem is fixed by converting the reference to torch.autograd.Variable. See lanpa/tensorboardX#100

Even if the original authors are not going to fix it, I hope the information will help those who try to use their code.

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