Skip to content

loss does not have a grad fn #63

Description

Hi, I have been trying to finetune the UDOP model on DocVQA. However, I am getting the following error after the first training iteration.

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

After going through each of the intermediate output, it is found that even the inputs_patches variable used here do not have requires_grad as True. Any help/pointers regarding this is much appreciated.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions