Commit 84c0b932 authored by Mark Daoust's avatar Mark Daoust Committed by TensorFlower Gardener
Browse files

Add a try/finally to context managers.

This way the state is always reset if an error occurs after the context manager yields.

PiperOrigin-RevId: 194228925
parent 7e11a0d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment