[skip ci] Add comment for IFVConfAdapter (#13200)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
shaoyue 2021-12-10 21:49:46 +08:00 committed by GitHub
parent 937c048a6d
commit d86a2b51a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,6 +143,7 @@ type IVFConfAdapter struct {
BaseConfAdapter
}
// CheckTrain returns true if the index can be built with the specific index parameters.
func (adapter *IVFConfAdapter) CheckTrain(params map[string]string) bool {
if !CheckIntByRange(params, NLIST, MinNList, MaxNList) {
return false