Skip to content

Commit

Permalink
Merge pull request #11 from seijikun/seijikun-make-model-send
Browse files Browse the repository at this point in the history
Enforce Send bounds on KernelDense and KernelSparse traits
  • Loading branch information
ralfbiedert authored Aug 25, 2024
2 parents 447b035 + 8f37157 commit bfc315f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/svm/kernel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub use self::{linear::*, poly::*, rbf::*, sigmoid::*};
#[doc(hidden)]
pub trait KernelDense
where
Self: Sync,
Self: Send + Sync,
{
fn compute(&self, vectors: &MatrixD<f32s, Rows>, feature: &VectorD<f32s>, output: &mut [f64]);
}
Expand All @@ -24,7 +24,7 @@ where
#[doc(hidden)]
pub trait KernelSparse
where
Self: Sync,
Self: Send + Sync,
{
fn compute(&self, vectors: &SparseMatrix<f32>, feature: &SparseVector<f32>, output: &mut [f64]);
}

0 comments on commit bfc315f

Please sign in to comment.