aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib
diff options
context:
space:
mode:
authorGravatar Saurabh Saxena <srbs@google.com>2018-10-05 17:34:30 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-05 17:39:58 -0700
commit213d76a6ed77a696883502c53a3a4f81d2ee4042 (patch)
treed701196115c416f23b6861621ce4df79eaee5262 /tensorflow/contrib
parent4831740f90eaf266a99d3ffa7d390d54325b689f (diff)
Simply the logic for bubbling captured tensors when building cond_v2 grad.
The current logic tries to bubble the forward pass tensor to the outermost graph. That might not always be do-able e.g. when the cond is inside a while loop it will need to know accumulator logic for while_loop. So instead, the cond_grad now captures tensors from the forward If op's graph. When the grad If op is built these tensors will be appropriately captured by the surrounding FuncGraph. PiperOrigin-RevId: 215993009
Diffstat (limited to 'tensorflow/contrib')
0 files changed, 0 insertions, 0 deletions