parameters: (primary, val, name, colocate_with_primary=True)
docstring: Create a slot initialized to the given value.
  
    The type of the slot is determined by the given value.
  
    Args:
      primary: The primary `Variable` or `Tensor`.
      val: A `Tensor` specifying the initial value of the slot.
      name: Name to use for the slot variable.
      colocate_with_primary: Boolean.  If True the slot is located
        on the same device as `primary`.
  
    Returns:
      A `Variable` object.
docstring_summary: Create a slot initialized to the given value.
docstring_tokens: Create a slot initialized to the given value .
function: def create_slot(primary, val, name, colocate_with_primary=True):
    """Create a slot initialized to the given value.
  
    The type of the slot is determined by the given value.
  
    Args:
      primary: The primary `Variable` or `Tensor`.
      val: A `Tensor` specifying the initial value of the slot.
      name: Name to use for the slot variable.
      colocate_with_primary: Boolean.  If True the slot is located
        on the same device as `primary`.
  
    Returns:
      A `Variable` object.
    """
    # Scope the slot name in the namespace of the primary variable.
    with ops.name_scope(primary.op.name + "/" + name) as scope:
      if colocate_with_primary:
        with ops.colocate_with(primary):
          return _create_slot_var(primary, val, scope)
      else:
        return _create_slot_var(primary, val, scope)
function_tokens: def create_slot ( primary , val , name , colocate_with_primary = True ) : # Scope the slot name in the namespace of the primary variable. with ops . name_scope ( primary . op . name + "/" + name ) as scope : if colocate_with_primary : with ops . colocate_with ( primary ) : return _create_slot_var ( primary , val , scope ) else : return _create_slot_var ( primary , val , scope )