Skip to content

Commit

Permalink
🐛 make CF Sklearn model run without MPS
Browse files Browse the repository at this point in the history
- set fastai defaults to cpu
  • Loading branch information
Henry committed Feb 24, 2024
1 parent a4f36da commit bae51d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vaep/sklearn/cf_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def fit(self, X: pd.Series, y: pd.Series = None,
y_range=(int(X.squeeze().min()),
int(X.squeeze().max()) + 1)
)

if not cuda:
default_device(use=False) # set to cpu
if y is not None:
X, frac = collab.combine_data(X, y)
else:
Expand Down

0 comments on commit bae51d7

Please sign in to comment.