fix: fix cal_distance default implementation (#31245)

#31243

Signed-off-by: chasingegg <chao.gao@zilliz.com>
This commit is contained in:
Gao 2024-03-15 15:37:11 +08:00 committed by GitHub
parent 93bb04f884
commit 6f1e9cd0f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
) )