-
Notifications
You must be signed in to change notification settings - Fork 57
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
MemoryError: Unable to allocate 168. GiB for an array with shape (76821, 542, 542) and data type float64 #17
Comments
Hello Can you help me fix this problem!!! |
Hi @Al-Dailami Which dataset are you using? You may try processing training samples in batches and concatenate them with NumPy. |
Thanks a lot for your reply. I'm working in a dataset that contains around 500,000 record of short texts. Can you please help me on how to modify the code to be able to process the data in batches. Thanks a lot in advance for your valuable help. |
Hello, Line 124 in c2492c2
b_train_adj, b_train_mask = preprocess_adj(train_adj[idx]) |
@Al-Dailami |
Hello, I would like to ask if I am still reporting memoryerror after changing the code given by you, have you ever experienced this situation? |
loading training set
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 76821/76821 [02:21<00:00, 543.88it/s]
Traceback (most recent call last):
File "train.py", line 39, in
train_adj, train_mask = preprocess_adj(train_adj)
File "~/TextING/utils.py", line 153, in preprocess_adj
return np.array(list(adj)), mask # coo_to_tuple(sparse.COO(np.array(list(adj)))), mask
The text was updated successfully, but these errors were encountered: