parameters: (op, flow)
return_statement: return [None, None, grad, flow]
docstring: Gradient for TensorArrayScatter.
  
    Args:
      op: Forward TensorArrayScatter op.
      flow: Gradient `Tensor` flow to TensorArrayScatter.
  
    Returns:
      A grad `Tensor`, the gradient created in upstream ReadGrads or PackGrad.
docstring_summary: Gradient for TensorArrayScatter.
docstring_tokens: Gradient for TensorArrayScatter .
function: def _TensorArrayScatterGrad(op, flow):
    """Gradient for TensorArrayScatter.
  
    Args:
      op: Forward TensorArrayScatter op.
      flow: Gradient `Tensor` flow to TensorArrayScatter.
  
    Returns:
      A grad `Tensor`, the gradient created in upstream ReadGrads or PackGrad.
    """
    handle = op.inputs[0]
    indices = op.inputs[1]
    dtype = op.get_attr("T")
    grad_source = _GetGradSource(flow)
    g = tensor_array_ops.TensorArray(dtype=dtype, handle=handle).grad(
        source=grad_source, flow=flow)
    grad = g.gather(indices)
    return [None, None, grad, flow]
function_tokens: def _TensorArrayScatterGrad ( op , flow ) : handle = op . inputs [ 0 ] indices = op . inputs [ 1 ] dtype = op . get_attr ( "T" ) grad_source = _GetGradSource ( flow ) g = tensor_array_ops . TensorArray ( dtype = dtype , handle = handle ) . grad ( source = grad_source , flow = flow ) grad = g . gather ( indices ) return [ None , None , grad , flow ]