Skip to content

Commit

Permalink
fix(gpu feats)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeyerov committed Sep 15, 2024
1 parent 92dd7fa commit f69cc8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion graphistry/umap_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,10 @@ def umap(
if isinstance(X_, pd.DataFrame):
index_to_nodes_dict = dict(zip(range(len(nodes)), nodes))
elif 'cudf.core.dataframe' in str(getmodule(X_)):
index_to_nodes_dict = nodes # {}?
assert isinstance(X_, cudf.DataFrame)
logger.debug('nodes type: %s', type(nodes))
import cupy as cp
index_to_nodes_dict = dict(zip(range(len(nodes)), cp.asnumpy(nodes)))

# add the safe coercion here
X_, y_ = make_safe_gpu_dataframes(X_, y_, res.engine) # type: ignore
Expand Down

0 comments on commit f69cc8f

Please sign in to comment.