请问torch.autograd.functional中调用海森矩阵进行计算,结果全是0,雅克比矩阵计算就没问题,就是多求了一次梯度,这是为什么呢,我应该从哪个角度查找问题?
from torch.autograd.functional import jacobian, hessian