class_docstr: This Interface should be implemented by particular classes derived from nemo.core.NeuralModule or nemo.core.ModelPT.
  It gives these entities ability to be exported for deployment to formats such as ONNX.
  
  Usage:
      # exporting pre-trained model to ONNX file for deployment.
      model.eval()
      model.to('cuda')  # or to('cpu') if you don't have GPU
  
      model.export('mymodel.onnx', [options])  # all arguments apart from `output` are optional.
class_docstr_tok: ["This","Interface","should","be","implemented","by","particular","classes","derived","from","nemo.core.NeuralModule","or","nemo.core.ModelPT",".","It","gives","these","entities","ability","to","be","exported","for","deployment","to","formats","such","as","ONNX",".","Usage",":","#","exporting","pre-trained","model","to","ONNX","file","for","deployment",".","model.eval","(",")","model.to","(","'cuda","'",")","#","or","to","(","'cpu","'",")","if","you","do","n't","have","GPU","model.export","(","'mymodel.onnx","'",",","[","options","]",")","#","all","arguments","apart","from","`","output","`","are","optional","."]
docstr: Override this method to prepare module for export. This is in-place operation.
  Base version does common necessary module replacements (Apex etc)
docstr_tok: ["Override","this","method","to","prepare","module","for","export",".","This","is","in-place","operation",".","Base","version","does","common","necessary","module","replacements","(","Apex","etc",")"]
code: def _prepare_for_export(self, **kwargs):
      """
      Override this method to prepare module for export. This is in-place operation.
      Base version does common necessary module replacements (Apex etc)
      """
      if not "noreplace" in kwargs:
          replace_for_export(self)
  
imports: from abc import ABC
  from typing import Dict, List, Optional, Union
  import torch
  from pytorch_lightning.core.module import _jit_is_scripting
  from nemo.core.classes import typecheck
  from nemo.core.neural_types import NeuralType
  from nemo.core.utils.neural_type_utils import get_dynamic_axes, get_io_names
  from nemo.utils import logging
  from nemo.utils.export_utils import ExportFormat, augment_filename, get_export_format, parse_input_example, replace_for_export, verify_runtime, verify_torchscript, wrap_forward_method
label_desc: Use image node_id 8 for calling the Exportable obj's underlying member method code with example usage: obj._prepare_for_export() without return types