parameters: (params, ids, name=None)
return_statement: return array_ops.gather(params, ids, name=name)
docstring: Deals with doing gather differently for resource variables.
docstring_summary: Deals with doing gather differently for resource variables.
docstring_tokens: Deals with doing gather differently for resource variables .
function: def _do_gather(params, ids, name=None):
    """Deals with doing gather differently for resource variables."""
    if isinstance(params, resource_variable_ops.ResourceVariable):
      return params.sparse_read(ids, name=name)
    return array_ops.gather(params, ids, name=name)
function_tokens: def _do_gather ( params , ids , name = None ) : if isinstance ( params , resource_variable_ops . ResourceVariable ) : return params . sparse_read ( ids , name = name ) return array_ops . gather ( params , ids , name = name )