class_docstr: A context manager to pass global state to a TF graph when it is traced.
  
  All the attributes in this context are kept on a thread local state.
  
  Attributes:
    module_to_export: A tf.Module object that can be exported to a SavedModel
      and will be used to track objects created within this TF graph.
    temp_dir: The base path of the directory to write out any temporary files
      in this context block. If None, the TF graph in this context will be
      traced with placeholders for asset filepaths and is not serializable to a
      SavedModel.
    evaluated_replacements: A subset of placeholders/temporary asset files in
      `analyzer_nodes.TENSOR_REPLACEMENTS` that have been evaluated in
      previous TFT phases.
  
  Note that the temp dir should be accessible to worker jobs, e.g. if running
  with the Cloud Dataflow runner, the temp dir should be on GCS and should have
  permissions that allow both launcher and workers to access it.
class_docstr_tok: ["A","context","manager","to","pass","global","state","to","a","TF","graph","when","it","is","traced",".","All","the","attributes","in","this","context","are","kept","on","a","thread","local","state",".","Attributes",":","module_to_export",":","A","tf.Module","object","that","can","be","exported","to","a","SavedModel","and","will","be","used","to","track","objects","created","within","this","TF","graph",".","temp_dir",":","The","base","path","of","the","directory","to","write","out","any","temporary","files","in","this","context","block",".","If","None",",","the","TF","graph","in","this","context","will","be","traced","with","placeholders","for","asset","filepaths","and","is","not","serializable","to","a","SavedModel",".","evaluated_replacements",":","A","subset","of","placeholders\/temporary","asset","files","in","`","analyzer_nodes.TENSOR_REPLACEMENTS","`","that","have","been","evaluated","in","previous","TFT","phases",".","Note","that","the","temp","dir","should","be","accessible","to","worker","jobs",",","e.g",".","if","running","with","the","Cloud","Dataflow","runner",",","the","temp","dir","should","be","on","GCS","and","should","have","permissions","that","allow","both","launcher","and","workers","to","access","it","."]
docstr: Retrieves the value of evaluated_replacements if set.
  
  None otherwise.
  
  Returns:
    A dictionary from graph tensor names to evaluated values for these
    tensors. The keys are a subset of placeholders/temporary asset files in
    `analyzer_nodes.TENSOR_REPLACEMENTS` that have been evaluated in
    previous TFT phases.
docstr_tok: ["Retrieves","the","value","of","evaluated_replacements","if","set",".","None","otherwise",".","Returns",":","A","dictionary","from","graph","tensor","names","to","evaluated","values","for","these","tensors",".","The","keys","are","a","subset","of","placeholders\/temporary","asset","files","in","`","analyzer_nodes.TENSOR_REPLACEMENTS","`","that","have","been","evaluated","in","previous","TFT","phases","."]
code: def get_evaluated_replacements(cls) -> Optional[Dict[str, Any]]:
      """Retrieves the value of evaluated_replacements if set.
  
      None otherwise.
  
      Returns:
        A dictionary from graph tensor names to evaluated values for these
        tensors. The keys are a subset of placeholders/temporary asset files in
        `analyzer_nodes.TENSOR_REPLACEMENTS` that have been evaluated in
        previous TFT phases.
      """
      return cls._get_current_state().evaluated_replacements
  
file_path: transform/tensorflow_transform/graph_context.py
imports: import os
  import threading
  from typing import Any, Dict, Optional
  import tensorflow
  from tfx_bsl.types import tfx_namedtuple
label_desc: Use image node_id 7 for calling the TFGraphContext obj's underlying member method code with example usage: obj.get_evaluated_replacements(cls) and returns: cls