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:
parent
13ae5a34c7
commit
ada5d7c096
|
@ -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>>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue