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

Several fixes/improvements to wrap_function:

1. Makes gradient tape work on captures post-pruning
2. Allows users to prune with wrapped_func.inputs even when the func includes captures
3. Makes sure to write variables to collections for better legacy compatibility in compat.v1 (currently if the outer init_scope is eager, variables won't be written to the global_variables / trainable_variables collections)

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