Skip to content

Commit

Permalink
Get rid of numba targets
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Jun 5, 2020
1 parent 60d6b7b commit fca9805
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions umap/spectral.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from warnings import warn

import numpy as np
import numba.targets

import scipy.sparse
import scipy.sparse.csgraph
Expand Down Expand Up @@ -101,9 +100,9 @@ def component_layout(
component_centroids, metric=SPARSE_SPECIAL_METRICS[metric]
)
else:
if type(
if callable(
metric
) == numba.targets.registry.CPUDispatcher and scipy.sparse.isspmatrix(data):
) and scipy.sparse.isspmatrix(data):
function_to_name_mapping = {
v: k for k, v in sparse_named_distances.items()
}
Expand Down

0 comments on commit fca9805

Please sign in to comment.