class_docstr: Handles a SavedModel exported using TF 1.x APIs in TF 2.x.
class_docstr_tok: ["Handles","a","SavedModel","exported","using","TF","1.x","APIs","in","TF","2.x","."]
docstr: Finalizes the set of inputs with which this SavedModel will be called.
  
  Note: This is not Thread-safe. Should be called prior to any calls to
  `apply_transform_model`.
  
  Args:
    input_tensor_keys: Set of input keys with which the SavedModel will be
      called.
    output_tensor_keys: Set of output keys that should be returned by the
      SavedModel.
docstr_tok: ["Finalizes","the","set","of","inputs","with","which","this","SavedModel","will","be","called",".","Note",":","This","is","not","Thread-safe",".","Should","be","called","prior","to","any","calls","to","`","apply_transform_model","`",".","Args",":","input_tensor_keys",":","Set","of","input","keys","with","which","the","SavedModel","will","be","called",".","output_tensor_keys",":","Set","of","output","keys","that","should","be","returned","by","the","SavedModel","."]
code: def finalize(
      self,
      input_tensor_keys: Iterable[str],
      output_tensor_keys: Iterable[str],
  ):
      """Finalizes the set of inputs with which this SavedModel will be called.
  
      Note: This is not Thread-safe. Should be called prior to any calls to
      `apply_transform_model`.
  
      Args:
        input_tensor_keys: Set of input keys with which the SavedModel will be
          called.
        output_tensor_keys: Set of output keys that should be returned by the
          SavedModel.
      """
      self._sorted_unfed_input_keys = sorted(
          self._get_unfed_input_keys(input_tensor_keys)
      )
      feeds = self._get_feeds(self._sorted_unfed_input_keys)
      unexpected_outputs = set(output_tensor_keys) - set(
          self._get_fetches_keys(feeds)
      )
      if unexpected_outputs:
          raise ValueError(
              "Unexpected output keys requested: {}".format(
                  unexpected_outputs
              )
          )
      self._wrapped_function_finalized = (
          self._finalize_wrapped_function(
              self._sorted_unfed_input_keys, sorted(output_tensor_keys)
          )
      )
      self._is_finalized = True
  
imports: from typing import Any, Dict, Iterable, Mapping, Tuple, Union
  import tensorflow
  from tensorflow_transform import annotators
  from tensorflow_transform import common_types
  from tensorflow_transform import graph_tools
  from tensorflow_transform import tf2_utils
  from tensorflow_transform import tf_utils
  from tensorflow_transform.py_func import pyfunc_helper
  from tensorflow_transform.saved import constants
  from tensorflow_transform.saved import saved_model_loader
  from tensorflow_transform.saved import saved_transform_io
  from tensorflow.python.eager import function
  from tensorflow.python.eager import wrap_function
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.ops import lookup_ops
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 16 for calling the SavedModelLoader obj's underlying member method code with example usage: obj.finalize(input_tensor_keys, output_tensor_keys) without return types