Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GPU model init from gene sets #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Spectra/Spectra_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def __init__(self, X, labels, adj_matrix, L, weights = None, lam = 10e-4, delta=
lst_weights.append(torch.Tensor(weights[cell_type]) - torch.Tensor(np.diag(np.diag(weights[cell_type]))) )
else:
lst_weights.append(torch.zeros((self.p, self.p)))
self.weights = torch.stack(lst_weights).to(device)
else:
self.weights = self.adj_matrix
self.weights = torch.stack(lst_weights).to(device)
self.weights = self.adj_matrix
self.ct_order = ct_order
self.L_tot = L_tot
self.L_list = L_list
Expand Down