class_docstr: This class invokes the base exporter and a series of rewriters.
class_docstr_tok: ["This","class","invokes","the","base","exporter","and","a","series","of","rewriters","."]
docstr: Initializes the rewriting exporter.
  
  Args:
    base_exporter: The exporter of the original model.
    rewriter_inst: The rewriter instance to invoke. Must inherit from
      `rewriter.BaseRewriter`.
docstr_tok: ["Initializes","the","rewriting","exporter",".","Args",":","base_exporter",":","The","exporter","of","the","original","model",".","rewriter_inst",":","The","rewriter","instance","to","invoke",".","Must","inherit","from","`","rewriter.BaseRewriter","`","."]
code: def __init__(
      self,
      base_exporter: tf_estimator.Exporter,
      rewriter_inst: rewriter.BaseRewriter,
  ):
      """Initializes the rewriting exporter.
  
      Args:
        base_exporter: The exporter of the original model.
        rewriter_inst: The rewriter instance to invoke. Must inherit from
          `rewriter.BaseRewriter`.
      """
      self._base_exporter = base_exporter
      self._rewriter_inst = rewriter_inst
  
file_path: tfx/tfx/components/trainer/rewriting/converters.py
imports: import os
  import time
  from tensorflow import estimator
  from tfx.components.trainer.rewriting import rewriter
  from tfx.dsl.io import fileio
label_desc: Use image node_id 1 to create a new RewritingExporter object from inherited base classes: tf_estimator with example: obj = RewritingExporter(base_exporter, rewriter_inst)