Skip to content

Commit

Permalink
Backport PR #1451: fix prepare query data when model trained with cuda (
Browse files Browse the repository at this point in the history
#1454)

Co-authored-by: Adam Gayoso <[email protected]>
  • Loading branch information
meeseeksmachine and adamgayoso authored Mar 21, 2022
1 parent a81645d commit 56d3ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scvi/model/base/_archesmixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def prepare_query_anndata(
Query adata ready to use in `load_query_data` unless `return_reference_var_names`
in which case a pd.Index of reference var names is returned.
"""
_, var_names, _ = _get_loaded_data(reference_model)
_, var_names, _ = _get_loaded_data(reference_model, device="cpu")
var_names = pd.Index(var_names)

if return_reference_var_names:
Expand Down

0 comments on commit 56d3ece

Please sign in to comment.