Skip to content

RuntimeError: element 0 of variables does not require grad and does not have a grad_fn #12

@taeheej

Description

@taeheej

In hessian.py
When I tried to run the following code,
Hv = hessian_vector_product(gradsH, params, v)

The error comes out.
Is there any idea how to resolve this issue?

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