parameters: (variable, file_pattern, tensor_name, slice_spec,
                                  name="checkpoint_initializer")
docstring: Sets variable initializer to assign op form value in checkpoint's tensor.
  
    Args:
      variable: `Variable` object.
      file_pattern: string, where to load checkpoints from.
      tensor_name: Name of the `Tensor` to load from checkpoint reader.
      slice_spec: Slice specification for loading partitioned variables.
      name: Name of the operation.
docstring_summary: Sets variable initializer to assign op form value in checkpoint's tensor.
docstring_tokens: Sets variable initializer to assign op form value in checkpoint s tensor .
function: def _set_checkpoint_initializer(variable, file_pattern, tensor_name, slice_spec,
                                  name="checkpoint_initializer"):
    """Sets variable initializer to assign op form value in checkpoint's tensor.
  
    Args:
      variable: `Variable` object.
      file_pattern: string, where to load checkpoints from.
      tensor_name: Name of the `Tensor` to load from checkpoint reader.
      slice_spec: Slice specification for loading partitioned variables.
      name: Name of the operation.
    """
    base_type = variable.dtype.base_dtype
    restore_op = io_ops.restore_v2(
        file_pattern, [tensor_name], [slice_spec], [base_type], name=name)[0]
    variable._initializer_op = state_ops.assign(variable, restore_op)
function_tokens: def _set_checkpoint_initializer ( variable , file_pattern , tensor_name , slice_spec , name = "checkpoint_initializer" ) : base_type = variable . dtype . base_dtype restore_op = io_ops . restore_v2 ( file_pattern , [ tensor_name ] , [ slice_spec ] , [ base_type ] , name = name ) [ 0 ] variable . _initializer_op = state_ops . assign ( variable , restore_op )