docstr: Overwrites TFLoader._mil_program_from_tf_ssa()
docstr_tok: ["Overwrites","TFLoader._mil_program_from_tf_ssa","(",")"]
code: def _program_from_tf_ssa(self):
      """Overwrites TFLoader._mil_program_from_tf_ssa()"""
      # Applying frontend passes on TFSSA. Note that these are different from
      # passes applied to MIL in TF frontend.
      tf_passes = [
          delete_asserts,
          functionalize_loops,
          constant_propagation,
          cond_to_where,
          remove_variable_nodes,
          fuse_dilation_conv,
      ]
  
      if self.debug:
          for tf_pass in _tqdm(
              tf_passes,
              desc="Running TensorFlow Graph Passes",
              unit=" passes",
          ):
              try:
                  tf_pass(self._tf_ssa)
              except Exception as e:
                  logging.exception(
                      'Exception in pass "{}": {}'.format(tf_pass, e)
                  )
                  logging.info(
                      "Ignoring exception and continuing to next pass"
                  )
      else:
          for tf_pass in _tqdm(
              tf_passes,
              desc="Running TensorFlow Graph Passes",
              unit=" passes",
          ):
              tf_pass(self._tf_ssa)
  
      if self.debug:
          import graphviz
  
          dot_string = self._tf_ssa.get_dot_string(
              annotation=True,
              name_and_op_style=True,
              highlight_debug_nodes=[],
          )
          graphviz.Source(dot_string).view(
              filename="/tmp/ssa_after_tf_passes", cleanup=True
          )
  
      converter = TFConverter(self._tf_ssa, **self.kwargs)
      return converter.convert()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import os
  import gc
  import six
  import tensorflow
  from tempfile import mktemp
  from .basic_graph_ops import fill_outputs
  from .converter import TFConverter
  from .tf_graph_pass import *
  from .tfssa import NetworkEnsemble, SSAFunction
  from .parsed_tf_node import ParsedTFNode
  from coremltools.converters._profile_utils import _profile
  from tqdm import tqdm
  from distutils.version import StrictVersion
label_desc: Use image node_id 4 for calling the TF1Loader obj's underlying member method code with example usage: obj._program_from_tf_ssa() and returns: converter