Skip to content

Commit 42b3f1f

Browse files
authored
Merge pull request #694 from timsainb/tf_gather_indices_in_python
changed default value to switch to python vs tensorflow based iteration
2 parents de88b39 + 5fb62c8 commit 42b3f1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

umap/parametric_umap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,9 @@ def construct_edge_dataset(
931931
def gather_index(index):
932932
return X[index]
933933

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

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

0 commit comments

Comments
 (0)