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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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>>;
}