mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 11:37:11 +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.
|
//! inference speed and quality.
|
||||||
use candle::{Result, Tensor};
|
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>>;
|
fn build(&self, inference_steps: usize) -> Result<Box<dyn Scheduler>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user