mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 23:45:28 +08:00
[skip e2e] Add comment for VectorCount (#14335)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
parent
8c1cfe64ce
commit
2b1daef679
@ -159,6 +159,7 @@ func SingleBitLen(dim int64) int64 {
|
||||
return dim + 8 - dim%8
|
||||
}
|
||||
|
||||
// VectorCount counts bits by @dim & @length
|
||||
func VectorCount(dim int64, length int) int64 {
|
||||
singleBitLen := SingleBitLen(dim)
|
||||
return int64(length*8) / singleBitLen
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user