Skip to content

Commit 0e1f9ef

Browse files
committed
Fix AttributeError: 'Adam' object has no attribute 'get_updates'
Signed-off-by: Foxglove144 <[email protected]>
1 parent a338a0e commit 0e1f9ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/get_started_keras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from tensorflow.keras.models import Sequential
1111
from tensorflow.keras.layers import Dense, Flatten, Conv2D, MaxPooling2D
1212
from tensorflow.keras.losses import categorical_crossentropy
13-
from tensorflow.keras.optimizers import Adam
13+
from tensorflow.keras.optimizers.legacy import Adam
1414
import numpy as np
1515

1616
from art.attacks.evasion import FastGradientMethod

0 commit comments

Comments
 (0)