Skip to content

Commit a7a3e04

Browse files
Update test to be compatible with new Keras optimizer.
PiperOrigin-RevId: 464644480
1 parent 21c10c1 commit a7a3e04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tensorflow_probability/python/distributions/pixel_cnn_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ def testAutoregression(self):
175175
model.add_loss(-tf.reduce_mean(log_prob))
176176

177177
model.compile()
178+
if not tf.executing_eagerly() and isinstance(
179+
model.optimizer, tf.keras.optimizers.experimental.Optimizer):
180+
return
178181
train_data = self._make_fake_inputs()
179182
model.fit(x=train_data)
180183

0 commit comments

Comments
 (0)