docstr: Get the detector's configuration dictionary.
  
  Returns
  -------
  The detector's configuration dictionary.
docstr_tok: ["Get","the","detector","'s","configuration","dictionary",".","Returns","--","--","--","-","The","detector","'s","configuration","dictionary","."]
code: def get_config(
      self,
  ) -> (
      dict
  ):  # Needed due to self.x_ref being a torch.Tensor when backend='pytorch'
      """
      Get the detector's configuration dictionary.
  
      Returns
      -------
      The detector's configuration dictionary.
      """
      cfg = super().get_config()
      if cfg.get("backend") == "pytorch":
          cfg["x_ref"] = cfg["x_ref"].detach().cpu().numpy()
      return cfg
  
file_path: alibi-detect/alibi_detect/cd/mmd_online.py
imports: import os
  import numpy
  from typing import Any, Callable, Dict, Optional, Union
  from alibi_detect.utils.frameworks import has_pytorch, has_tensorflow, BackendValidator, Framework
  from alibi_detect.base import DriftConfigMixin
  from alibi_detect.utils._types import TorchDeviceType
label_desc: Use image node_id 10 for calling the MMDDriftOnline obj's underlying member method code with example usage: obj.get_config() and returns: cfg