We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eecfd6a commit 5b527c6Copy full SHA for 5b527c6
1 file changed
WDoc/utils/embeddings.py
@@ -92,7 +92,7 @@ def wrapper(vector, k):
92
diff = k - new_ids.shape[0]
93
if diff == 0:
94
assert original_scores.shape == original_ids.shape
95
- assert original_ids.shape == new_ids.shape
+ assert original_ids.squeeze().shape == new_ids.shape
96
return original_scores, original_ids
97
98
trial = 0
0 commit comments