How to calculate Laplacian (sum of 2nd derivatives) in one step

Can you use the new Hessian function introduced in 1.5? https://pytorch.org/docs/stable/autograd.html#torch.autograd.functional.hessian