add send and sync trait bounds for scheduler config in stable diffusion models (#1952)

* first commit

* add Sync deriving

* static

* remove static
This commit is contained in:
Jorge António
2024-03-28 09:03:00 +00:00
committed by GitHub
parent 13ae5a34c7
commit ada5d7c096

View File

@ -5,7 +5,7 @@
//! inference speed and quality.
use candle::{Result, Tensor};
pub trait SchedulerConfig: std::fmt::Debug {
pub trait SchedulerConfig: std::fmt::Debug + Send + Sync {
fn build(&self, inference_steps: usize) -> Result<Box<dyn Scheduler>>;
}