It seems the static jvp method is missing in an autograd.Function and you would need to implement it as described here.
jvp
autograd.Function