add type check on sess in attacks inteface
@@ -44,6 +44,7 @@ class Attack(object):
if sess is None:
sess = tf.get_default_session()
+ assert isinstance(sess, tf.Session)
import cleverhans.attacks_tf as attacks_tf
attacks_tf.np_dtype = self.np_dtype
