Add 'src_graph' argument to gradients_impl._GradientsHelper.
This allows the gradient graph to be built in a _FuncGraph separate from the forward graph (a _FuncGraph is necessary to capture needed tensors from the forward graph. It's up to the capturing logic what how to feed the forward tensors to the gradient graph). PiperOrigin-RevId: 197230736
Loading
Please sign in to comment