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

Usability improvements to @recompute_grad

Error if fn closes over Tensor or Variable (not always detectable)
Allow None gradients to some inputs (filter out Nones before control_deps)

PiperOrigin-RevId: 211162615
parent 53f907c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment