Skip to content

Commit 1e74a44

Browse files
Limited CTMs to only use CPU at all times
1 parent 21fd848 commit 1e74a44

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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)