Backward node for to_device_op.
Returns the incoming gradient on the device the forward input lived on.
Attributes
src_ device_DeviceDevice of the forward input; the gradient is moved back there.
Methods
4Eager backward: the gradient's storage, moved to src_device_.
Graph-mode backward: to_device_op again, so a second derivative crosses the devices through the same differentiable op.