Skip to content

Commit 9753478

Browse files
authored
Merge pull request #1817 from bluemurder/patch-1
Fixed runtime error
2 parents 020280c + 7b05e9b commit 9753478

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/get_started_tensorflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import tensorflow.compat.v1 as tf
88
import numpy as np
99

10+
tf.compat.v1.disable_eager_execution() # Added to prevent Tensorflow execution error
11+
1012
from art.attacks.evasion import FastGradientMethod
1113
from art.estimators.classification import TensorFlowClassifier
1214
from art.utils import load_mnist

0 commit comments

Comments
 (0)