docstr: Unloads the model from CPU/GPU.
docstr_tok: ["Unloads","the","model","from","CPU\/GPU","."]
code: def unload_model(self):
      """
      Unloads the model from CPU/GPU.
      """
      self.model = None
      if is_available("torch"):
          from sahi.utils.torch import empty_cuda_cache
  
          empty_cuda_cache()
  
file_path: sahi/sahi/models/base.py
imports: from typing import Any, Dict, List, Optional, Tuple, Union
  import numpy
  from sahi.utils.import_utils import is_available
  from sahi.utils.torch import select_device
label_desc: Use image node_id 6 for calling the DetectionModel obj's underlying member method code with example usage: obj.unload_model() without return types