Skip to content

Commit

Permalink
feat: add clip_hg executor
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiniuYu committed Jun 1, 2022
1 parent a3dd39b commit 5f7a115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/clip_server/executors/clip_hg.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,4 @@ def _tokenize_texts(self, texts: Sequence[str]):
truncation=True,
return_tensors='pt',
)
return {k: v.to(self.device) for k, v in x.items()}
return {k: v.to(self.device) for k, v in x.items()}

0 comments on commit 5f7a115

Please sign in to comment.