Introduce `dynamic` constructor argument in Layer and Model.
When subclassing a layer or model that relies on imperative control flow in its `call` method, users should pass `dynamic=True` to the constructor. This ensures that the layer will only ever be run eagerly (thus ensuring correctness for this type of layer). This requires you to have enabled eager execution. PiperOrigin-RevId: 225577677
Loading
Please sign in to comment