Skip to content

Commit

Permalink
fix: revert custom counter
Browse files Browse the repository at this point in the history
  • Loading branch information
numb3r3 committed May 26, 2022
1 parent 782d7bf commit 5f6c199
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/clip_server/executors/clip_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ async def encode(self, docs: 'DocumentArray', **kwargs):
for d in docs:
split_img_txt_da(d, _img_da, _txt_da)

self._img_docs_counter.inc(len(_img_da))
self._txt_docs_counter.inc(len(_txt_da))

with torch.inference_mode():
# for image
if _img_da:
Expand Down

0 comments on commit 5f6c199

Please sign in to comment.