mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
fix: fix cal_distance default implementation (#31245)
#31243 Signed-off-by: chasingegg <chao.gao@zilliz.com>
This commit is contained in:
parent
93bb04f884
commit
6f1e9cd0f4
@ -54,8 +54,8 @@ func CosineImplPure(a []float32, b []float32) float32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
L2Impl func(a []float32, b []float32) float32 = IPImplPure
|
L2Impl func(a []float32, b []float32) float32 = L2ImplPure
|
||||||
IPImpl func(a []float32, b []float32) float32 = L2ImplPure
|
IPImpl func(a []float32, b []float32) float32 = IPImplPure
|
||||||
CosineImpl func(a []float32, b []float32) float32 = CosineImplPure
|
CosineImpl func(a []float32, b []float32) float32 = CosineImplPure
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user