Fix:limit random sampling range in check_embedding
This commit is contained in:
parent
0db00f70b2
commit
29b6963ba1
1 changed files with 1 additions and 1 deletions
|
|
@ -819,7 +819,7 @@ def check_embedding():
|
|||
return []
|
||||
|
||||
n = min(n, total)
|
||||
offsets = sorted(random.sample(range(total), n))
|
||||
offsets = sorted(random.sample(range(min(total,1000)), n))
|
||||
out = []
|
||||
|
||||
for off in offsets:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue