Skip to content

develop版本paddle.autograd.grad()报错 #44955

@Asthestarsfalll

Description

@Asthestarsfalll

bug描述 Describe the Bug

develop版本下,paddle.autograd.grad()报错:SystemError: (Fatal) Null autograd_meta gotten from unsafe_autograd_meta()
2.3版本下可正常运行
代码见:PaddlePaddle/PaddleScience#142
报错位置

  for i in range(losses.shape[0]):
      grad = paddle.autograd.grad(losses[i], W, retain_graph=True)
      norms.append(paddle.norm(self.loss_weights[i] * grad[0], p=2))

其他补充信息 Additional Supplementary Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    PFCCPaddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfccstatus/close已关闭type/bug-report报bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions