class_docstr: Chroma cosine similarity metric.
  
  This metric extracts a chromagram for a reference waveform and
  a generated waveform and compares each frame using the cosine similarity
  function. The output is the mean cosine similarity.
  
  Args:
      sample_rate (int): Sample rate used by the chroma extractor.
      n_chroma (int): Number of chroma used by the chroma extractor.
      radix2_exp (int): Exponent for the chroma extractor.
      argmax (bool): Whether the chroma extractor uses argmax.
      eps (float): Epsilon for cosine similarity computation.
docstr: Computes the average cosine similarty across all generated/target chromagrams pairs.
code: def compute(self) -> float:
      """Computes the average cosine similarty across all generated/target chromagrams pairs."""
      assert self.weight.item() > 0, "Unable to compute with total number of comparisons <= 0"  # type: ignore
      return (self.cosine_sum / self.weight).item()
  
file_path: audiocraft/audiocraft/metrics/chroma_cosinesim.py
imports: import torch
  import torchmetrics
  from ..data.audio_utils import convert_audio
  from ..modules.chroma import ChromaExtractor
label_desc: Use image node_id 3 for calling the ChromaCosineSimilarityMetric obj's underlying member method code with example usage: obj.compute() and returns: unknown