mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
Main diffusion loop for the SD example. (#332)
This commit is contained in:
@ -100,8 +100,8 @@ impl DDIMScheduler {
|
||||
|
||||
/// Ensures interchangeability with schedulers that need to scale the denoising model input
|
||||
/// depending on the current timestep.
|
||||
pub fn scale_model_input(&self, sample: Tensor, _timestep: usize) -> Tensor {
|
||||
sample
|
||||
pub fn scale_model_input(&self, sample: Tensor, _timestep: usize) -> Result<Tensor> {
|
||||
Ok(sample)
|
||||
}
|
||||
|
||||
/// Performs a backward step during inference.
|
||||
|
Reference in New Issue
Block a user