Skip to content

Error training pytorch lightning #3

@ramdhan1989

Description

@ramdhan1989

Hi,
I got error when doing training using pytorch lightning.

File "C:\Users\XXX\anaconda3\envs\py310\lib\site-packages\torch\autograd_init_.py", line 197, in backward
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

Please advise,

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions