Skip to content

Commit e0d0f94

Browse files
committed
FIX: Use all keras optimizers
1 parent 84bb63f commit e0d0f94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tensorflow_addons/layers/wrappers_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_weightnorm_conv2d(self):
6666

6767
model.add(tf.keras.layers.Activation('relu'))
6868
model.compile(
69-
optimizer=tf.optimizers.RMSprop(learning_rate=0.001), loss='mse')
69+
optimizer=tf.keras.optimizers.RMSprop(learning_rate=0.001), loss='mse')
7070
model.fit(
7171
np.random.random((2, 4, 4, 3)),
7272
np.random.random((2, 4, 4, 5)),

tensorflow_addons/optimizers/weight_decay_optimizers_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class ExtendWithWeightDecayTest(SGDWTest):
269269
"""Verify that the factory function SGDW is the same as SGDW."""
270270

271271
optimizer = weight_decay_optimizers.extend_with_decoupled_weight_decay(
272-
tf.optimizers.SGD)
272+
tf.keras.optimizers.SGD)
273273

274274

275275
if __name__ == "__main__":

0 commit comments

Comments
 (0)