docstr: Computes the score of `x`
  
  Parameters
  ----------
  x
      The tensor of instances. First dimension corresponds to batch.
  
  Returns
  -------
  Tensor of scores for each element in `x`.
  
  Raises
  ------
  NotFitException
      If called before detector has been fit.
docstr_tok: ["Computes","the","score","of","`","x","`","Parameters","--","--","--","--","--","x","The","tensor","of","instances",".","First","dimension","corresponds","to","batch",".","Returns","--","--","--","-","Tensor","of","scores","for","each","element","in","`","x","`",".","Raises","--","--","--","NotFitException","If","called","before","detector","has","been","fit","."]
code: def score(self, x: torch.Tensor) -> torch.Tensor:
      """Computes the score of `x`
  
      Parameters
      ----------
      x
          The tensor of instances. First dimension corresponds to batch.
  
      Returns
      -------
      Tensor of scores for each element in `x`.
  
      Raises
      ------
      NotFitException
          If called before detector has been fit.
      """
      self.check_fitted()
      x_pcs = self._compute_linear_proj(x)
      return (x_pcs**2).sum(-1)
  
file_path: alibi-detect/alibi_detect/od/pytorch/mahalanobis.py
imports: import torch
  from alibi_detect.od.pytorch.base import TorchOutlierDetector
  from alibi_detect.utils._types import TorchDeviceType
label_desc: Use image node_id 3 for calling the MahalanobisTorch obj's underlying member method code with example usage: obj.score(x) and returns: unknown