Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed default value to switch to python vs tensorflow based iteration #694

Merged
merged 1 commit into from
Jun 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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