 )

set_timesteps

<
source
>
(
num_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.


device (str or torch.device) —
device to place the timesteps and the diffusion process parameters (alpha, beta, gamma) on.



Sets the discrete timesteps used for the diffusion chain. Supporting function to be r