Skip to content

Commit 9fc1a0f

Browse files
committed
bug fix
1 parent 8abc4ad commit 9fc1a0f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

autointent/_dump_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626

2727
ModuleSimpleAttributes = None | str | int | float | bool | list # type: ignore[type-arg]
2828

29-
ModuleAttributes: TypeAlias = ( # type: ignore[type-arg]
29+
ModuleAttributes: TypeAlias = (
3030
ModuleSimpleAttributes
3131
| TagsList
32-
| np.ndarray
32+
| np.ndarray # type: ignore[type-arg]
3333
| Embedder
3434
| VectorIndex
3535
| BaseEstimator

autointent/modules/scoring/_torch/base_scorer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def predict(self, utterances: list[str]) -> npt.NDArray[Any]:
6565

6666
def clear_cache(self) -> None:
6767
if hasattr(self, "_model"):
68+
self._model.vocab_config.vocab = None
6869
del self._model
6970
torch.cuda.empty_cache()
7071

0 commit comments

Comments
 (0)