Skip to content

Commit

Permalink
Merge pull request #694 from timsainb/tf_gather_indices_in_python
Browse files Browse the repository at this point in the history
changed default value to switch to python vs tensorflow based iteration
  • Loading branch information
lmcinnes authored Jun 14, 2021
2 parents de88b39 + 5fb62c8 commit 42b3f1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umap/parametric_umap.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,9 @@ def construct_edge_dataset(
def gather_index(index):
return X[index]

# if X is > 2Gb in size, we need to use a different, slower method for
# if X is > 512Mb in size, we need to use a different, slower method for
# batching data.
gather_indices_in_python = True if X.nbytes * 1e-9 > 2 else False
gather_indices_in_python = True if X.nbytes * 1e-9 > 0.5 else False

def gather_X(edge_to, edge_from):
# gather data from indexes (edges) in either numpy of tf, depending on array size
Expand Down

0 comments on commit 42b3f1f

Please sign in to comment.