parameters: (ref, name=None)
return_statement: return ref.is_initialized(name=name)
docstring: Checks whether a tensor has been initialized.
  
    Outputs boolean scalar indicating whether the tensor has been initialized.
  
    Args:
      ref: A mutable `Tensor`.
        Should be from a `Variable` node. May be uninitialized.
      name: A name for the operation (optional).
  
    Returns:
      A `Tensor` of type `bool`.
docstring_summary: Checks whether a tensor has been initialized.
docstring_tokens: Checks whether a tensor has been initialized .
function: def is_variable_initialized(ref, name=None):
    """Checks whether a tensor has been initialized.
  
    Outputs boolean scalar indicating whether the tensor has been initialized.
  
    Args:
      ref: A mutable `Tensor`.
        Should be from a `Variable` node. May be uninitialized.
      name: A name for the operation (optional).
  
    Returns:
      A `Tensor` of type `bool`.
    """
    if ref.dtype._is_ref_dtype:
      return gen_state_ops.is_variable_initialized(ref=ref, name=name)
    # Handle resource variables.
    return ref.is_initialized(name=name)
function_tokens: def is_variable_initialized ( ref , name = None ) : if ref . dtype . _is_ref_dtype : return gen_state_ops . is_variable_initialized ( ref = ref , name = name ) # Handle resource variables. return ref . is_initialized ( name = name )