docstr: Computes the score of `x`
  
  Parameters
  ----------
  x
      `torch.Tensor` with leading batch dimension.
  
  Returns
  -------
  `torch.Tensor` of scores with leading batch dimension.
  
  Raises
  ------
  NotFittedError
      Raised if method called and detector has not been fit.
docstr_tok: ["Computes","the","score","of","`","x","`","Parameters","--","--","--","--","--","x","`","torch.Tensor","`","with","leading","batch","dimension",".","Returns","--","--","--","-","`","torch.Tensor","`","of","scores","with","leading","batch","dimension",".","Raises","--","--","--","NotFittedError","Raised","if","method","called","and","detector","has","not","been","fit","."]
code: def score(self, x: torch.Tensor) -> torch.Tensor:
      """Computes the score of `x`
  
      Parameters
      ----------
      x
          `torch.Tensor` with leading batch dimension.
  
      Returns
      -------
      `torch.Tensor` of scores with leading batch dimension.
  
      Raises
      ------
      NotFittedError
          Raised if method called and detector has not been fit.
      """
      if not torch.jit.is_scripting():
          self.check_fitted()
      x = x.to(torch.float32)
      preds = self.model(x.to(self.device))
      return preds
  
file_path: alibi-detect/alibi_detect/od/pytorch/gmm.py
imports: from typing import Dict, Type
  from tqdm import tqdm
  import torch
  from torch.utils.data import DataLoader
  from alibi_detect.utils.pytorch.data import TorchDataset
  from alibi_detect.od.pytorch.base import TorchOutlierDetector
  from alibi_detect.models.pytorch.gmm import GMMModel
  from alibi_detect.utils.pytorch.misc import get_optimizer
  from alibi_detect.utils._types import TorchDeviceType
label_desc: Use image node_id 5 for calling the GMMTorch obj's underlying member method code with example usage: obj.score(x) and returns: preds