Relative Content

Tag Archive for tensorflowkeraskeras-cv

keras_cv DropBlock2D does not work in Keras model without eager run

I am trying to use the DropBlock2D layer from KerasCV, version 0.9.0. However, I am only able to compile the layer into a model if I specify run_eagerly=True. This appears to be related to the fact that when forward pass from the non-eager run is attempted, a symbolic tensor is passed to the layer, which expects a concrete value instead. The Keras docs say that run_eagerly should reserved for debugging, so why is it necessary that I enable it here?