Skip to content

Commit

Permalink
fix: type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
janaka committed Oct 23, 2023
1 parent 757dade commit 03d174f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/docq/support/metadata_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def __init__(
if device is not None:
import torch
tdevice = torch.device(device)
self._model = self._model.to(self, device=tdevice)
self._model = self._model.to(device=tdevice) # type: ignore

self._tokenizer = tokenizer or word_tokenize

Expand Down

0 comments on commit 03d174f

Please sign in to comment.