How to compute second order derivative with grid_sampler

Hi, I wish to compute second-order derivative of grid sampler, however, it seems that the current version does not support that, any hint on how I can get it? Thanks a lot