[skip e2e] Add comment for CalcHammingBatch (#14337)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
shaoyue 2021-12-28 09:48:21 +08:00 committed by GitHub
parent 307b07363b
commit ebf1f4fb7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,6 +214,7 @@ func CalcHamming(dim int64, left []byte, lIndex int64, right []byte, rIndex int6
return hamming
}
// CalcHammingBatch calculate HAMMING distance in batch, results are in @result
func CalcHammingBatch(dim int64, left []byte, lIndex int64, right []byte, result *[]int32) {
rightNum := VectorCount(dim, len(right))