We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da8d9d9 commit a52581aCopy full SHA for a52581a
examples/mnist_transferability.py
@@ -12,6 +12,8 @@
12
import numpy as np
13
import tensorflow as tf
14
15
+tf.compat.v1.disable_eager_execution()
16
+
17
from art.attacks.evasion import DeepFool
18
from art.estimators.classification import KerasClassifier, TensorFlowClassifier
19
from art.utils import load_mnist
@@ -60,7 +62,7 @@ def cnn_mnist_k(input_shape):
60
62
61
63
64
# Get session
-session = tf.Session()
65
+session = tf.compat.v1.Session()
66
k.set_session(session)
67
68
# Read MNIST dataset
0 commit comments