parameters: (self, var)
docstring: Add a variable to the list of optionally restored variables.
  
      There are situations where certain variables should be ignored in assertions
      such as assert_existing_objects_matched(). One example is that of a
      checkpoint saved with train.Saver(), and restored with train.Checkpoint():
      it is possible for the train.Saver() checkpoint to be missing the internal
      `save_counter` variable, which we want to ignore on restore.
  
      Args:
        var: The variable to treat as optionally restored.
docstring_summary: Add a variable to the list of optionally restored variables.
docstring_tokens: Add a variable to the list of optionally restored variables .
function: def add_to_optionally_restored(self, var):
      """Add a variable to the list of optionally restored variables.
  
      There are situations where certain variables should be ignored in assertions
      such as assert_existing_objects_matched(). One example is that of a
      checkpoint saved with train.Saver(), and restored with train.Checkpoint():
      it is possible for the train.Saver() checkpoint to be missing the internal
      `save_counter` variable, which we want to ignore on restore.
  
      Args:
        var: The variable to treat as optionally restored.
      """
      self._optionally_restored.append(var)
function_tokens: def add_to_optionally_restored ( self , var ) : self . _optionally_restored . append ( var )