mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 18:28:24 +00:00
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:
@ -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>>;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user