Commit bcc64f89 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Fix issue where re-entering a GradientTape context clears the tape

* Changed behavior of GradientTape._push_tape() such that it always uses
  the existing tape if one is present.
* GradientTape.reset() clears the tape
* Added testGradientTapeReEnterContext to backprop_test.py

PiperOrigin-RevId: 212029862
parent 6d25ff7a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment