Skip to content

Commit

Permalink
hot fix wnmf
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksimEkin committed Jan 10, 2024
1 parent e12b40b commit f8a587d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TELF/factorization/NMFk.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def _perturb_parallel_wrapper(
if use_gpu:
Y = __put_X_gpu(Y, gpuid)
W_init, H_init = __put_WH_gpu(W_init, H_init, gpuid)
if "WEIGHTS" in nmf_params and nmf_params["WEIGHTS"] is not None:
nmf_params["WEIGHTS"] = __put_X_gpu(nmf_params["WEIGHTS"], gpuid)

W, H, other_results = __run_nmf(Y, W_init, H_init, nmf, nmf_params, use_gpu, gpuid)

Expand Down

0 comments on commit f8a587d

Please sign in to comment.