Open khaledbouabdallah opened 2 years ago
I met the same problem when running with a model where the last layer is Dense
with an activation function.
I checked the paper of Vinilla Gradients. In Section 2, the authors pointed that
It should be noted that we used the (unnormalised) class scores S_c, rather than the class posteriors, returned by the soft-max layer... The reason is that the maximisation of the class posterior can be achieved by minimising the scores of other classes.
Guess this is the reason why the warning is raised.
I'm trying to use VanillaGradients for a single image, but I'm getting this warning
VanillaGradients call :
Model Declaration
Notes