Skip to content

Possible BUG with get_params_grad #27

@balditommaso

Description

@balditommaso

The method get_params_grad pot 0.0 when params.grad is None, but it should be torch.tensor(0.0), because when it will be called the torch method torch.autograd.grad it will raise an error, because a float does not have `.is_nested' method defined.

Let me know if you are facing the same problem.

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