opennmt/models/model.py
def export(self, export_dir, exporter=None):
        """Exports the model for serving.

        Args:
          export_dir: The output directory.
          exporter: A :class:`opennmt.utils.Exporter` instance. Defaults to
            :class:`opennmt.utils.SavedModelExporter`.
        """
        if exporter is None:
            exporter = exporters.SavedModelExporter()
        exporter.export(self, export_dir)
Exports the model for serving.

        Args:
          export_dir: The output directory.
          exporter: A :class:`opennmt.utils.Exporter` instance. Defaults to
            :class:`opennmt.utils.SavedModelExporter`.
        
Exports the model for serving.
Exports the model for serving .
def export(self, export_dir, exporter=None):
        if exporter is None:
            exporter = exporters.SavedModelExporter()
        exporter.export(self, export_dir)
def export ( self , export_dir , exporter = None ) : if exporter is None : exporter = exporters . SavedModelExporter ( ) exporter . export ( self , export_dir )
Exports the model for serving.
Exports the model for serving .
"""Exports the model for serving.

        Args:
          export_dir: The output directory.
          exporter: A :class:`opennmt.utils.Exporter` instance. Defaults to
            :class:`opennmt.utils.SavedModelExporter`.
        """
self
export_dir
The output directory.
The output directory .
exporter
A :class:`opennmt.utils.Exporter` instance. Defaults to
:class:`opennmt.utils.SavedModelExporter`.
A : class : ` opennmt . utils . Exporter ` instance . Defaults to : class : ` opennmt . utils . SavedModelExporter ` .