Skip to content

Commit

Permalink
fix: clean up the codes
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-wang committed Jun 3, 2020
1 parent 04b0708 commit 5f68014
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion jina/executors/indexers/vector/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def add(self, keys: 'np.ndarray', vectors: 'np.ndarray', *args, **kwargs):
self.key_bytes += keys.tobytes()
self.key_dtype = keys.dtype.name
self._size += keys.shape[0]
self.logger.info('chunk size: {}'.format(self.size))

def query(self, keys: np.ndarray, top_k: int, *args, **kwargs) -> Tuple['np.ndarray', 'np.ndarray']:
""" Find the top-k vectors with smallest ``metric`` and return their ids.
Expand Down

0 comments on commit 5f68014

Please sign in to comment.