Skip to content

Commit

Permalink
Added support for f16 also within cosine distance and perceptron
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCappelletti94 committed Aug 18, 2022
1 parent 9fd5a41 commit 36df777
Show file tree
Hide file tree
Showing 5 changed files with 16,545 additions and 16,539 deletions.
18 changes: 10 additions & 8 deletions bindings/python/src/alpine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ impl DegreeSPINE {
/// When not provided, we automatically infer the best one by using the diameter.
/// verbose: bool = False
/// Whether to show loading bars.
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>,) -> PyResult<usize> {
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>) -> PyResult<usize> {
self.inner.init_mmap(graph, py_kwargs)
}

Expand Down Expand Up @@ -752,7 +752,7 @@ impl NodeLabelSPINE {
/// When not provided, we automatically infer the best one by using the diameter.
/// verbose: bool = False
/// Whether to show loading bars.
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>,) -> PyResult<usize> {
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>) -> PyResult<usize> {
self.inner.init_mmap(graph, py_kwargs)
}

Expand Down Expand Up @@ -907,11 +907,12 @@ impl ScoreSPINE {
/// When not provided, we automatically infer the best one by using the diameter.
/// verbose: bool = False
/// Whether to show loading bars.
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>,) -> PyResult<usize> {
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>) -> PyResult<usize> {
BasicSPINEBinding {
inner: cpu_models::DegreeSPINE::from(self.inner.clone()),
path: self.path.clone(),
}.init_mmap(graph, py_kwargs)
}
.init_mmap(graph, py_kwargs)
}

#[args(py_kwargs = "**")]
Expand Down Expand Up @@ -1078,7 +1079,7 @@ impl DegreeWINE {
/// When not provided, we automatically infer the best one by using the diameter.
/// verbose: bool = False
/// Whether to show loading bars.
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>,) -> PyResult<usize> {
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>) -> PyResult<usize> {
self.inner.init_mmap(graph, py_kwargs)
}

Expand Down Expand Up @@ -1221,7 +1222,7 @@ impl NodeLabelWINE {
/// When not provided, we automatically infer the best one by using the diameter.
/// verbose: bool = False
/// Whether to show loading bars.
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>,) -> PyResult<usize> {
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>) -> PyResult<usize> {
self.inner.init_mmap(graph, py_kwargs)
}

Expand Down Expand Up @@ -1377,11 +1378,12 @@ impl ScoreWINE {
/// When not provided, we automatically infer the best one by using the diameter.
/// verbose: bool = False
/// Whether to show loading bars.
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>,) -> PyResult<usize> {
fn init_mmap(&self, graph: &Graph, py_kwargs: Option<&PyDict>) -> PyResult<usize> {
BasicWINEBinding {
inner: cpu_models::DegreeWINE::from(self.inner.clone()),
path: self.path.clone(),
}.init_mmap(graph, py_kwargs)
}
.init_mmap(graph, py_kwargs)
}

#[args(py_kwargs = "**")]
Expand Down
Loading

0 comments on commit 36df777

Please sign in to comment.