parameters: (op, out_grad)
return_statement: return (None, array_ops.gather_nd(out_grad_reshaped, sp_indices // scale),
            None, None)
docstring: Similar to gradient for the Sum Op (i.e. tf.reduce_sum()).
docstring_summary: Similar to gradient for the Sum Op (i.e. tf.reduce_sum()).
docstring_tokens: Similar to gradient for the Sum Op ( i . e . tf . reduce_sum () ) .
function: def _SparseReduceSumGrad(op, out_grad):
    """Similar to gradient for the Sum Op (i.e. tf.reduce_sum())."""
    sp_indices = op.inputs[0]
    sp_shape = op.inputs[2]
    output_shape_kept_dims = math_ops.reduced_shape(sp_shape, op.inputs[3])
    out_grad_reshaped = array_ops.reshape(out_grad, output_shape_kept_dims)
    scale = sp_shape // math_ops.to_int64(output_shape_kept_dims)
    # (sparse_indices, sparse_values, sparse_shape, reduction_axes)
    return (None, array_ops.gather_nd(out_grad_reshaped, sp_indices // scale),
            None, None)
function_tokens: def _SparseReduceSumGrad ( op , out_grad ) : sp_indices = op . inputs [ 0 ] sp_shape = op . inputs [ 2 ] output_shape_kept_dims = math_ops . reduced_shape ( sp_shape , op . inputs [ 3 ] ) out_grad_reshaped = array_ops . reshape ( out_grad , output_shape_kept_dims ) scale = sp_shape // math_ops . to_int64 ( output_shape_kept_dims ) # (sparse_indices, sparse_values, sparse_shape, reduction_axes) return ( None , array_ops . gather_nd ( out_grad_reshaped , sp_indices // scale ) , None , None )