class_docstr: A Wrapper to handle tensorflow models parsing, TensorFlow is needed
  
  Parameters
  ----------
  model_dir : tensorflow frozen pb file or a directory that contains saved
  model or checkpoints.
  
  outputs : List of output tensor names (Optional)
      Optional output node names. This will be protected for saved model
      when we do remove training nodes.
  
  Examples
  --------
  .. code-block:: python
  
      parser = TFParser(model_dir)
      graphdef = parser.parse()
class_docstr_tok: ["A","Wrapper","to","handle","tensorflow","models","parsing",",","TensorFlow","is","needed","Parameters","--","--","--","--","--","model_dir",":","tensorflow","frozen","pb","file","or","a","directory","that","contains","saved","model","or","checkpoints",".","outputs",":","List","of","output","tensor","names","(","Optional",")","Optional","output","node","names",".","This","will","be","protected","for","saved","model","when","we","do","remove","training","nodes",".","Examples","--","--","--","--","..","code-block",":",":","python","parser","=","TFParser","(","model_dir",")","graphdef","=","parser.parse","(",")"]
docstr: Return the concatenated output names
docstr_tok: ["Return","the","concatenated","output","names"]
code: def _get_output_names(self):
      """Return the concatenated output names"""
      try:
          import tensorflow.compat.v1 as tf
      except ImportError:
          raise ImportError(
              "InputConfiguration: Unable to import tensorflow which is "
              "required to restore from saved model."
          )
      tags = self._get_tag_set()
      output_names = set()
      with tf.Session() as sess:
          meta_graph_def = tf.saved_model.loader.load(
              sess, tags, self._model_dir
          )
          for sig_def in meta_graph_def.signature_def.values():
              for output_tensor in sig_def.outputs.values():
                  output_names.add(output_tensor.name.replace(":0", ""))
      tf.reset_default_graph()
      return ",".join(output_names)
  
file_path: tvm/python/tvm/relay/frontend/tensorflow_parser.py
imports: import os
  from tvm.contrib import utils
label_desc: Use image node_id 6 for calling the TFParser obj's underlying member method code with example usage: obj._get_output_names() and returns: str