parameters: (graph, handle)
return_statement: return result
docstring: Return a deletion subgraph for this handle.
docstring_summary: Return a deletion subgraph for this handle.
docstring_tokens: Return a deletion subgraph for this handle .
function: def _get_handle_deleter(graph, handle):
    """Return a deletion subgraph for this handle."""
    graph_key = TensorHandle._get_deleter_key(handle)
    result = graph._handle_deleters.get(graph_key)
    if result is None:
      # Create deleter if we haven't done it.
      handle_device = TensorHandle._get_device_name(handle)
      with graph.as_default(), graph.device(handle_device):
        holder = array_ops.placeholder(dtypes.string)
        deleter = gen_data_flow_ops._delete_session_tensor(holder)
      result = (holder, deleter)
      graph._handle_deleters[graph_key] = result
    return result
function_tokens: def _get_handle_deleter ( graph , handle ) : graph_key = TensorHandle . _get_deleter_key ( handle ) result = graph . _handle_deleters . get ( graph_key ) if result is None : # Create deleter if we haven't done it. handle_device = TensorHandle . _get_device_name ( handle ) with graph . as_default ( ) , graph . device ( handle_device ) : holder = array_ops . placeholder ( dtypes . string ) deleter = gen_data_flow_ops . _delete_session_tensor ( holder ) result = ( holder , deleter ) graph . _handle_deleters [ graph_key ] = result return result