I have two images and i want to calculate the gradient for each pixel in one image according to each pixel in another image , so i want to calculate the jacobian matrix by Pytorch, can you give me plese any function or code to help me.
Thanks
Thank you very much…I know it is very slow…I want to alculate the gradient for each pixel in one image according to each pixel in another image so jacobian matrix is 256 256256*256