CWL2 logging message update.
@@ -705,6 +705,7 @@ class CarliniWagnerL2(object):
_logger.debug(" Successfully generated adversarial examples " +
"on {} of {} instances.".
format(sum(upper_bound < 1e9), batch_size))
+ o_bestl2 = np.array(o_bestl2)
mean = np.mean(np.sqrt(o_bestl2[o_bestl2<1e9]))
_logger.debug(" Mean successful distortion: {:.4g}".format(mean))
