Could there be a way to get both the value and the gradient?
Could there be a way to get both the value and the gradient?