Skip to content

Commit aaa90a7

Browse files
Merge pull request #64 from x-tabdeveloping/ctm_hotfix
CTM hotfix
2 parents 21fd848 + 31ddd32 commit aaa90a7

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ line-length=79
66

77
[tool.poetry]
88
name = "turftopic"
9-
version = "0.5.3"
9+
version = "0.5.4"
1010
description = "Topic modeling with contextual representations from sentence transformers."
1111
authors = ["Márton Kardos <power.up1163@gmail.com>"]
1212
license = "MIT"

turftopic/models/ctm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ def fit(
213213
seed = self.random_state or random.randint(0, 10_000)
214214
torch.manual_seed(seed)
215215
pyro.set_rng_seed(seed)
216-
device = torch.device(
217-
"cuda:0" if torch.cuda.is_available() else "cpu"
218-
)
216+
device = torch.device("cpu")
219217
pyro.clear_param_store()
220218
contextualized_size = embeddings.shape[1]
221219
if self.combined:

0 commit comments

Comments
 (0)