PyTorch function involving softmax and log2 second derivative is always 0
I’m trying to compute the second derivatives (Hessian) of a function t
with respect to a tensor a
using PyTorch. Below is the code I initially wrote:
I’m trying to compute the second derivatives (Hessian) of a function t
with respect to a tensor a
using PyTorch. Below is the code I initially wrote: