class_docstr: Solver for compression task.
  
  The diffusion task allows for MultiBand diffusion model training.
  
  Args:
      cfg (DictConfig): Configuration.
class_docstr_tok: ["Solver","for","compression","task",".","The","diffusion","task","allows","for","MultiBand","diffusion","model","training",".","Args",":","cfg","(","DictConfig",")",":","Configuration","."]
code: def get_condition(self, wav: torch.Tensor) -> torch.Tensor:
      codes, scale = self.codec_model.encode(wav)
      assert scale is None, "Scaled compression models not supported."
      emb = self.codec_model.decode_latent(codes)
      return emb
  
imports: import typing
  import flashy
  import julius
  import omegaconf
  import torch
  import torch.nn.functional
  from .None import builders
  from .None import base
  from ..None import models
  from ..modules.diffusion_schedule import NoiseSchedule
  from ..metrics import RelativeVolumeMel
  from ..models.builders import get_processor
  from ..utils.samples.manager import SampleManager
  from ..solvers.compression import CompressionSolver
label_desc: Use image node_id 3 for calling the DiffusionSolver obj's underlying member method code with example usage: obj.get_condition(wav) and returns: emb