[skip ci] Add comment for IVFSQConfAdapter (#13081)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
pull/13087/head
shaoyue 2021-12-09 16:53:17 +08:00 committed by GitHub
parent c50ee1a2fc
commit 23e3a88a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ type IVFSQConfAdapter struct {
IVFConfAdapter
}
// CheckTrain returns true if the index can be built with the specific index parameters.
func (adapter *IVFSQConfAdapter) CheckTrain(params map[string]string) bool {
params[NBITS] = strconv.Itoa(DefaultNBits)
return adapter.IVFConfAdapter.CheckTrain(params)