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

- Fix freezing of the learning phase in V2 graph functions mode for Keras.

- Make learning phase value thread-local in eager, to prevent `set_learning_phase` from affecting other threads. In graph mode it is graph-local.
- Publicly expose `learning_phase_scope`, which was meant to be public but has been forgotten in API exports.

PiperOrigin-RevId: 230603630
parent 2f2503d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment