docstr: Construct a DPM-Solver.
docstr_tok: ["Construct","a","DPM-Solver","."]
code: def __init__(
      self,
      model_fn,
      noise_schedule,
      predict_x0=False,
      thresholding=False,
      max_val=1.0,
  ):
      """Construct a DPM-Solver."""
      self.model = model_fn
      self.noise_schedule = noise_schedule
      self.predict_x0 = predict_x0
      self.thresholding = thresholding
      self.max_val = max_val
  
imports: import math
  import torch
  from nemo.collections.multimodal.modules.stable_diffusion.diffusionmodules.util import expand_dims, interpolate_fn
label_desc: Use image node_id 1 to create a new DPMSolver object  with example: obj = DPMSolver(model_fn, noise_schedule, predict_x0, thresholding, max_val)