Closed xunge closed 6 years ago
Should be fixed. It was a bug in my fgmt
code, I should have used the dynamic batch size instead of a static batch size which is None
most of the time. Thank you! BTW, I add two examples for fgmt
, please refer to fgmt_mnist.py
(least-likely class attack) and fgmt_mnist2.py
(a random target)
And please let me know if you have more problems.
I found that you write the "fgmt" algrithm in "attackes/fast_gradient.py" but not achieve it. So I changed the file "example/fgsm_mnist.py" to achieved it but meet the problem as below:
ValueError: Cannot convert a partially known TensorShape to a Tensor: (?,)
the changed code is as below:
I guess the type of target is wrong... Hoping for your reply~