torch.Tensor.retains_grad¶ Tensor.retains_grad¶ 如果此 Tensor 為非葉節點,且其 grad 已啟用以便在 backward() 期間填入,則為 True,否則為 False。