You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
However, in pytorch, the model's output logits may be negative float value. Thus, Apply F.log on that logits would produce nan because negative value is not valid value of log.
What is your model's last fc layer's output range? Your model's logits is after softmax layer thus ranges from 0 to 1.0?
Thank you.
The text was updated successfully, but these errors were encountered:
I am re-implementing AutoZOOM attack into pytorch version.
In the following code:
you use
tf.log
on the output logits of model (without softmax layer).https://github.com/IBM/Autozoom-Attack/blob/master/blackbox_attack.py#L152
https://github.com/IBM/Autozoom-Attack/blob/master/blackbox_attack.py#L154
However, in pytorch, the model's output logits may be negative float value. Thus, Apply
F.log
on that logits would producenan
because negative value is not valid value oflog
.What is your model's last
fc
layer's output range? Your model's logits is after softmax layer thus ranges from 0 to 1.0?Thank you.
The text was updated successfully, but these errors were encountered: