Skip to content

Commit

Permalink
remove double definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Zand committed Mar 21, 2023
1 parent 6bdbe64 commit 38c9ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_similarity/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _init_structures(self) -> None:
"(re)initialize internal storage structure"

if self.search_type == "nmslib":
self.search: Search = NMSLibSearch(distance=self.distance, dim=self.embedding_size)
self.search = NMSLibSearch(distance=self.distance, dim=self.embedding_size)
elif self.search_type == "linear":
self.search = LinearSearch(distance=self.distance, dim=self.embedding_size)
elif isinstance(self.search_type, Search):
Expand Down

0 comments on commit 38c9ce9

Please sign in to comment.