parameters: (data, name=None)
docstring: Exits the current frame to its parent frame.
  
    Exit makes its input `data` available to the parent frame.
  
    Args:
      data: The tensor to be made available to the parent frame.
      name: A name for this operation (optional).
  
    Returns:
      The same tensor as `data`.
docstring_summary: Exits the current frame to its parent frame.
docstring_tokens: Exits the current frame to its parent frame .
function: def exit(data, name=None):
    """Exits the current frame to its parent frame.
  
    Exit makes its input `data` available to the parent frame.
  
    Args:
      data: The tensor to be made available to the parent frame.
      name: A name for this operation (optional).
  
    Returns:
      The same tensor as `data`.
    """
    data = ops.convert_to_tensor_or_indexed_slices(data, as_ref=True)
    if isinstance(data, ops.Tensor):
      if data.dtype.is_ref_dtype:
        return gen_control_flow_ops._ref_exit(data, name)
      else:
        return gen_control_flow_ops._exit(data, name)
    else:
      if not isinstance(data, (ops.IndexedSlices, ops.SparseTensor)):
        raise TypeError("Type %s not supported" % type(data))
      values = exit(data.values, name=name)
      indices = gen_control_flow_ops._exit(data.indices, name="indices")
      if isinstance(data, ops.IndexedSlices):
        dense_shape = data.dense_shape
        if dense_shape is not None:
          dense_shape = gen_control_flow_ops._exit(dense_shape, name)
        return ops.IndexedSlices(values, indices, dense_shape)
      else:
        dense_shape = gen_control_flow_ops._exit(data.shape, name)
        return ops.SparseTensor(indices, values, dense_shape)
function_tokens: def exit ( data , name = None ) : data = ops . convert_to_tensor_or_indexed_slices ( data , as_ref = True ) if isinstance ( data , ops . Tensor ) : if data . dtype . is_ref_dtype : return gen_control_flow_ops . _ref_exit ( data , name ) else : return gen_control_flow_ops . _exit ( data , name ) else : if not isinstance ( data , ( ops . IndexedSlices , ops . SparseTensor ) ) : raise TypeError ( "Type %s not supported" % type ( data ) ) values = exit ( data . values , name = name ) indices = gen_control_flow_ops . _exit ( data . indices , name = "indices" ) if isinstance ( data , ops . IndexedSlices ) : dense_shape = data . dense_shape if dense_shape is not None : dense_shape = gen_control_flow_ops . _exit ( dense_shape , name ) return ops . IndexedSlices ( values , indices , dense_shape ) else : dense_shape = gen_control_flow_ops . _exit ( data . shape , name ) return ops . SparseTensor ( indices , values , dense_shape )