Exporter

class opennmt.utils.Exporter[source]

Base class for model exporters.

Inherits from: abc.ABC

Extended by:

export(model, export_dir)[source]

Exports model to export_dir.

Raises

ValueError – if model is not supported by this exporter.