a=Variable(torch.randn(1),requires_grad=True)
p=a*a
p_tmp = p.expand_as(p)
grad_acc = p_tmp.grad_fn.next_functions[0][0]
                 

I dont  know the meaning of ‘next_functions’,and I couldn’t find the define of it.