inference_steps: int
device: typing.Union[str, torch.device] = None

)


Parameters 

num_inference_steps (int) —
the number of diffusion steps used when generating samples with a pre-trained model.



Sets the discrete timesteps used for the diffusion chain. Supporting function to be run before inference.

step

<
source
>
(
model_output: FloatTensor
timestep: int
sample: FloatTensor
return_dict: bool = True

)
→
SchedulerOutput or tuple

Para