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 0e28efe commit 017d350Copy full SHA for 017d350
tensorflow_addons/image/dense_image_warp_test.py
@@ -204,7 +204,7 @@ def test_gradients_exist(self):
204
interp = dense_image_warp(image, flows)
205
loss = tf.math.reduce_mean(tf.math.square(interp - image))
206
207
- optimizer = tf.optimizers.Adam(1.0)
+ optimizer = tf.keras.optimizers.Adam(1.0)
208
grad = tf.gradients(loss, [flows])
209
opt_func = optimizer.apply_gradients(zip(grad, [flows]))
210
init_op = tf.compat.v1.global_variables_initializer()
0 commit comments