class_docstr: Update the variables in a session 
docstr: Args:
      sess (tf.Session): a session object
      vars_to_update: a collection of variables to update
      ignore_mismatch (bool): ignore failures when the value and the
          variable does not match.
docstr_tok: ["Args",":","sess","(","tf.Session",")",":","a","session","object","vars_to_update",":","a","collection","of","variables","to","update","ignore_mismatch","(","bool",")",":","ignore","failures","when","the","value","and","the","variable","does","not","match","."]
code: def __init__(self, sess, vars_to_update, ignore_mismatch=False):
      """
      Args:
          sess (tf.Session): a session object
          vars_to_update: a collection of variables to update
          ignore_mismatch (bool): ignore failures when the value and the
              variable does not match.
      """
      self.sess = sess
      self.name_map = {v.name: v for v in vars_to_update}
      self.ignore_mismatch = ignore_mismatch
  
imports: import glob
  import operator
  import numpy
  import os
  import pprint
  import six
  import tensorflow
  from ..compat import tfv1
  from ..utils import logger
  from .common import get_op_tensor_name
label_desc: Use image node_id 1 to create a new SessionUpdate object from inherited base classes: object with example: obj = SessionUpdate(sess, vars_to_update, ignore_mismatch)