mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 02:58:50 +00:00
Enable stable-diffusion 3 on metal. (#2560)
This commit is contained in:
@ -31,7 +31,7 @@ pub fn euler_sample(
|
||||
let timestep = (*s_curr) * 1000.0;
|
||||
let noise_pred = mmdit.forward(
|
||||
&Tensor::cat(&[x.clone(), x.clone()], 0)?,
|
||||
&Tensor::full(timestep, (2,), x.device())?.contiguous()?,
|
||||
&Tensor::full(timestep as f32, (2,), x.device())?.contiguous()?,
|
||||
y,
|
||||
context,
|
||||
)?;
|
||||
|
Reference in New Issue
Block a user