[skip e2e]Add comments to conf adapter file (#14857)

Signed-off-by: jingkl <jingjing.jia@zilliz.com>
pull/14630/head
jingkl 2022-01-05 17:15:26 +08:00 committed by GitHub
parent 075f35108b
commit 46f8d2dff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -355,6 +355,7 @@ type ANNOYConfAdapter struct {
BaseConfAdapter
}
// CheckTrain checks if an annoy index can be built with specific parameters.
func (adapter *ANNOYConfAdapter) CheckTrain(params map[string]string) bool {
if !CheckIntByRange(params, NTREES, MinNTrees, MaxNTrees) {
return false