Skip to content

Commit

Permalink
add explict arg keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
bhack authored Feb 23, 2022
1 parent 50c7d07 commit 59449db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_cv/layers/preprocessing/grid_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _augment_images(self, images):
images = tf.expand_dims(images, axis=0)

# TODO: Make the batch operation vectorize.
output = tf.vectorized_map(lambda image: self._grid_mask(image), images, True)
output = tf.vectorized_map(lambda image: self._grid_mask(image), images, fallback_to_while_loop=True)

if unbatched:
output = tf.squeeze(output, axis=0)
Expand Down

0 comments on commit 59449db

Please sign in to comment.