Skip to content

Commit 2cb2fe3

Browse files
committed
Disable Tensorflow eager execution
Signed-off-by: Foxglove144 <[email protected]>
1 parent 0e1f9ef commit 2cb2fe3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/adversarial_training_cifar10.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
import logging
99

10+
import tensorflow as tf
11+
12+
tf.compat.v1.disable_eager_execution()
13+
1014
from keras.models import Sequential
1115
from keras.layers import Dense, Flatten, Conv2D, MaxPooling2D, Activation, Dropout
1216
import numpy as np

0 commit comments

Comments
 (0)