class_docstr: `LMLSTM` implements a word-level language model that uses LSTMs to
  represent the document.
class_docstr_tok: ["`","LMLSTM","`","implements","a","word-level","language","model","that","uses","LSTMs","to","represent","the","document","."]
code: def caffe2_export(
      self, tensorizers, tensor_dict, path, export_onnx_path=None
  ):
      exporter = self.exporter(
          self.exporter.Config(),
          self.get_export_input_names(tensorizers),
          self.arrange_model_inputs(tensor_dict),
          self.vocab_to_export(tensorizers),
          self.get_export_output_names(tensorizers),
      )
      return exporter.export_to_caffe2(
          self, path, export_onnx_path=export_onnx_path
      )
  
imports: from typing import Dict, List, Optional, Tuple, Union
  import torch
  from pytext.config import ConfigBase
  from pytext.config.module_config import ExporterType
  from pytext.data import CommonMetadata
  from pytext.data.tensorizers import Tensorizer, TokenTensorizer
  from pytext.exporters.custom_exporters import get_exporter
  from pytext.exporters.exporter import ModelExporter
  from pytext.models.decoders import DecoderBase
  from pytext.models.decoders.mlp_decoder import MLPDecoder
  from pytext.models.embeddings import EmbeddingBase
  from pytext.models.embeddings.word_embedding import WordEmbedding
  from pytext.models.model import BaseModel, Model
  from pytext.models.module import create_module
  from pytext.models.output_layers import OutputLayerBase
  from pytext.models.output_layers.lm_output_layer import LMOutputLayer
  from pytext.models.representations.bilstm import BiLSTM
  from pytext.models.representations.deepcnn import DeepCNNRepresentation
  from pytext.models.representations.representation_base import RepresentationBase
  from pytext.utils.usage import log_class_usage
label_desc: Use image node_id 11 for calling the LMLSTM obj's underlying member method code with example usage: obj.caffe2_export(tensorizers, tensor_dict, path, export_onnx_path) and returns: exporter