docstr: Apply Diffusion model.
  If c is not given, the model acts as an unconditional diffusion model.
  For diffusion model that applies on the pixel space, x_t should be in the pixel space;
  for diffusion model that applies on the latent space, x_t is in latent space.
  
  Args:
      x_t: noisy input x at timestamp t
      t: timestamp
      c: conditioning
  
  Returns:
      Predicted result that has the same shape as x_t
docstr_tok: ["Apply","Diffusion","model",".","If","c","is","not","given",",","the","model","acts","as","an","unconditional","diffusion","model",".","For","diffusion","model","that","applies","on","the","pixel","space",",","x_t","should","be","in","the","pixel","space",";","for","diffusion","model","that","applies","on","the","latent","space",",","x_t","is","in","latent","space",".","Args",":","x_t",":","noisy","input","x","at","timestamp","t","t",":","timestamp","c",":","conditioning","Returns",":","Predicted","result","that","has","the","same","shape","as","x_t"]
code: def apply_model(
      self,
      x_t: torch.Tensor,
      t: torch.Tensor,
      c: Optional[torch.Tensor],
  ) -> torch.Tensor:
      """
      Apply Diffusion model.
      If c is not given, the model acts as an unconditional diffusion model.
      For diffusion model that applies on the pixel space, x_t should be in the pixel space;
      for diffusion model that applies on the latent space, x_t is in latent space.
  
      Args:
          x_t: noisy input x at timestamp t
          t: timestamp
          c: conditioning
  
      Returns:
          Predicted result that has the same shape as x_t
      """
  
file_path: NeMo/nemo/collections/multimodal/models/text_to_image/stable_diffusion/diffusion_model.py
imports: import re
  from abc import ABC, abstractclassmethod
  from typing import Any, Optional
  import torch
  from nemo.core.classes import ModelPT
  from nemo.utils import logging
label_desc: Use image node_id 2 for calling the DiffusionModel obj's underlying member method code with example usage: obj.apply_model(x_t, t, c) without return types