Commit d0373dca authored by Francois Chollet's avatar Francois Chollet Committed by TensorFlower Gardener
Browse files

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
parent 16a9eb66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment