class_docstr: Hook to extend calls to MonitoredSession.run().
class_docstr_tok: ["Hook","to","extend","calls","to","MonitoredSession.run","(",")","."]
docstr: Called before each call to run().
  
  You can return from this call a `SessionRunArgs` object indicating ops or
  tensors to add to the upcoming `run()` call.  These ops/tensors will be run
  together with the ops/tensors originally passed to the original run() call.
  The run args you return can also contain feeds to be added to the run()
  call.
  
  The `run_context` argument is a `SessionRunContext` that provides
  information about the upcoming `run()` call: the originally requested
  op/tensors, the TensorFlow Session.
  
  At this point graph is finalized and you can not add ops.
  
  Args:
    run_context: A `SessionRunContext` object.
  
  Returns:
    None or a `SessionRunArgs` object.
docstr_tok: ["Called","before","each","call","to","run","(",")",".","You","can","return","from","this","call","a","`","SessionRunArgs","`","object","indicating","ops","or","tensors","to","add","to","the","upcoming","`","run","(",")","`","call",".","These","ops\/tensors","will","be","run","together","with","the","ops\/tensors","originally","passed","to","the","original","run","(",")","call",".","The","run","args","you","return","can","also","contain","feeds","to","be","added","to","the","run","(",")","call",".","The","`","run_context","`","argument","is","a","`","SessionRunContext","`","that","provides","information","about","the","upcoming","`","run","(",")","`","call",":","the","originally","requested","op\/tensors",",","the","TensorFlow","Session",".","At","this","point","graph","is","finalized","and","you","can","not","add","ops",".","Args",":","run_context",":","A","`","SessionRunContext","`","object",".","Returns",":","None","or","a","`","SessionRunArgs","`","object","."]
code: def before_run(self, run_context):  # pylint: disable=unused-argument
      """Called before each call to run().
  
      You can return from this call a `SessionRunArgs` object indicating ops or
      tensors to add to the upcoming `run()` call.  These ops/tensors will be run
      together with the ops/tensors originally passed to the original run() call.
      The run args you return can also contain feeds to be added to the run()
      call.
  
      The `run_context` argument is a `SessionRunContext` that provides
      information about the upcoming `run()` call: the originally requested
      op/tensors, the TensorFlow Session.
  
      At this point graph is finalized and you can not add ops.
  
      Args:
        run_context: A `SessionRunContext` object.
  
      Returns:
        None or a `SessionRunArgs` object.
      """
      return None
  
file_path: tensorflow/tensorflow/python/training/session_run_hook.py
imports: import collections
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 3 for calling the SessionRunHook obj's underlying member method code with example usage: obj.before_run(run_context) and returns: None