class_docstr: Forecaster base model for lstm, mtnet, seq2seq and tcn forecasters.
class_docstr_tok: ["Forecaster","base","model","for","lstm",",","mtnet",",","seq2seq","and","tcn","forecasters","."]
docstr: Save the forecaster.
  
  Please note that if you only want the pytorch model or onnx model
  file, you can call .get_model() or .export_onnx_file(). The checkpoint
  file generated by .save() method can only be used by .load().
  
  :param checkpoint_file: The location you want to save the forecaster.
docstr_tok: ["Save","the","forecaster",".","Please","note","that","if","you","only","want","the","pytorch","model","or","onnx","model","file",",","you","can","call",".get_model","(",")","or",".export_onnx_file","(",")",".","The","checkpoint","file","generated","by",".save","(",")","method","can","only","be","used","by",".load","(",")",".",":","param","checkpoint_file",":","The","location","you","want","to","save","the","forecaster","."]
code: def save(self, checkpoint_file):
      """
      Save the forecaster.
  
      Please note that if you only want the pytorch model or onnx model
      file, you can call .get_model() or .export_onnx_file(). The checkpoint
      file generated by .save() method can only be used by .load().
  
      :param checkpoint_file: The location you want to save the forecaster.
      """
      if self.distributed:
          self.internal.save(checkpoint_file)
      else:
          if not self.internal.model_built:
              raise RuntimeError(
                  "You must call fit or restore first before calling save!"
              )
          self.internal.save(checkpoint_file)
  
file_path: analytics-zoo/pyzoo/zoo/chronos/forecaster/base_forecaster.py
imports: from zoo.chronos.forecaster.abstract import Forecaster
  from zoo.orca.data.shard import SparkXShards
  from zoo.chronos.forecaster.utils import np_to_creator, set_pytorch_seed, check_data, xshard_to_np, np_to_xshard
  import numpy
  from zoo.orca.learn.pytorch.estimator import Estimator
  from zoo.orca.learn.metrics import MSE, MAE
label_desc: Use image node_id 7 for calling the BasePytorchForecaster obj's underlying member method code with example usage: obj.save(checkpoint_file) without return types