Skip to content

Commit

Permalink
Do not send model to cuda internally (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
gianlucadetommaso authored Nov 20, 2023
1 parent afbf206 commit d054c8d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions fortuna/hallucination/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ def fit(
Dict
The status returned by fitting the multicalibrator.
"""
self.generative_model.to(
torch.device("cuda" if torch.cuda.is_available() else "cpu")
)

(
scores,
embeddings,
Expand Down Expand Up @@ -177,10 +173,6 @@ def predict_proba(
if self.multicalibrator is None:
raise ValueError("`fit` must be called before this method.")

self.generative_model.to(
torch.device("cuda" if torch.cuda.is_available() else "cpu")
)

(
scores,
embeddings,
Expand Down

0 comments on commit d054c8d

Please sign in to comment.