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
Loading
Please sign in to comment