File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ func (ph *partitionedHNSW[T]) NumSeedVectors() int {
102
102
103
103
func (ph * partitionedHNSW [T ]) StartBuild (caches []index.CacheType ) {
104
104
ph .caches = caches
105
- if ph .buildPass <= ph .partition .NumPasses () {
105
+ if ph .buildPass < ph .partition .NumPasses () {
106
106
ph .partition .StartBuildPass ()
107
107
return
108
108
}
@@ -119,7 +119,7 @@ func (ph *partitionedHNSW[T]) StartBuild(caches []index.CacheType) {
119
119
func (ph * partitionedHNSW [T ]) EndBuild () []int {
120
120
res := []int {}
121
121
122
- if ph .buildPass > ph .partition .NumPasses () {
122
+ if ph .buildPass >= ph .partition .NumPasses () {
123
123
for i := range ph .clusterMap {
124
124
if i % NUM_PASSES != (ph .buildPass - ph .partition .NumPasses ()) {
125
125
continue
@@ -135,7 +135,7 @@ func (ph *partitionedHNSW[T]) EndBuild() []int {
135
135
return res
136
136
}
137
137
138
- if ph .buildPass <= ph .partition .NumPasses () {
138
+ if ph .buildPass < ph .partition .NumPasses () {
139
139
ph .partition .EndBuildPass ()
140
140
}
141
141
return []int {}
You can’t perform that action at this time.
0 commit comments