class_docstr: Partially load train_variables from a checkpoint.
  
  Hook used to load each variable saved in checkpoint into the graph. It
  will ignore any additional variables present in the graph that are not
  saved in the checkpoint. (Note: The loaded variables include ADAM/training
  variables, if they exist in the checkpoint)
  Can perform mapping if the base scopename for graph variables is different
  from the checkpoint variables.
docstr: Initialize the hook with chkp directory and scopenames.
  
  Args:
    hook_context: HookContext object containing hparams.
    chk_scopename: Base scopename of variables in the checkpoint being loaded
    graph_scopename: Base scopename of variables in current graph
docstr_tok: ["Initialize","the","hook","with","chkp","directory","and","scopenames",".","Args",":","hook_context",":","HookContext","object","containing","hparams",".","chk_scopename",":","Base","scopename","of","variables","in","the","checkpoint","being","loaded","graph_scopename",":","Base","scopename","of","variables","in","current","graph"]
code: def __init__(self, hook_context, chk_scopename, graph_scopename):
      """Initialize the hook with chkp directory and scopenames.
  
      Args:
        hook_context: HookContext object containing hparams.
        chk_scopename: Base scopename of variables in the checkpoint being loaded
        graph_scopename: Base scopename of variables in current graph
      """
      self.checkpoint_path = (
          hook_context.hparams.partial_load_checkpoint
      )
      self.chk_scopename = chk_scopename
      self.graph_scopename = graph_scopename
  
file_path: tensor2tensor/tensor2tensor/utils/partial_checkpoint_load_hook.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new PartialCheckpointLoad object from inherited base classes: tf.train with example: obj = PartialCheckpointLoad(hook_context, chk_scopename, graph_scopename)