Closed fancidev closed 1 month ago
When calling simsimd.cdist passing the metric as a positional argument (instead of a keyword argument), a segfault is raised.
simsimd.cdist
import simsimd import numpy as np u = np.array([[-0.30039746, -0.13594460, 0.58292344]]) v = np.array([[-0.65563949, -0.29700866, 1.27146813]]) # simsimd.cdist(u, v, metric="sqeuclidean") # ok simsimd.cdist(u, v, "sqeuclidean") # seg fault
No segfault.
It seems to be a problem with how the Python binding is written rather than with the underlying algorithm.
5.4.3
macOS Sonoma
Arm
Python bindings
No response
.git
That's true, there is a SEGFAULT. I've noticed the issue yesterday, when sharing the benchmarks, will look into it. Thanks, @fancidev!
SEGFAULT
Describe the bug
When calling
simsimd.cdist
passing the metric as a positional argument (instead of a keyword argument), a segfault is raised.Steps to reproduce
Expected behavior
No segfault.
It seems to be a problem with how the Python binding is written rather than with the underlying algorithm.
SimSIMD version
5.4.3
Operating System
macOS Sonoma
Hardware architecture
Arm
Which interface are you using?
Python bindings
Contact Details
No response
Are you open to being tagged as a contributor?
.git
history as a contributorIs there an existing issue for this?
Code of Conduct