Skip to content

Commit 87c5a8f

Browse files
authored
Fix duplicate assignment in no_match_queries
1 parent ba408a9 commit 87c5a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/vision/metric_learning_tf_similarity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
"""
396396

397397
idx_no_match = np.where(np.array(matches) == 10)
398-
no_match_queries = no_match_queries = keras.ops.take(x_confusion, keras.ops.cast(idx_no_match[0], dtype="int32"), axis=0)
398+
no_match_queries = keras.ops.take(x_confusion, keras.ops.cast(idx_no_match[0], dtype="int32"), axis=0)
399399
if len(no_match_queries):
400400
plt.imshow(no_match_queries[0])
401401
else:

0 commit comments

Comments
 (0)