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

OOM problem #15

Open
ZhichaoOuyang opened this issue Feb 10, 2020 · 1 comment
Open

OOM problem #15

ZhichaoOuyang opened this issue Feb 10, 2020 · 1 comment

Comments

@ZhichaoOuyang
Copy link

tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[31130,512] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc [Op:Add] name: E/Initializer/random_uniform/

when I run "python train.py -m multiway -r 0.05 -b 64 -e 100" in two gpu, but it occurs this problem.

So how to solve it?

@anshul17024
Copy link

Hi, I have been trying to run this code.

I parsed the dataset using: java -jar parser.jar -f /Users/agbbps/Desktop/Internship/summarization_tf-master/data/train.json -d /Users/agbbps/Desktop/Internship/summarization_tf-master/data

The above command successfully parsed the json file and output (of around 3GB) was redirected to a new directory X.

Then, I used the command: python dataset.py X

This command has created pickle files, which are empty. Due to this, I am getting the following error: File "/Users/agbbps/Desktop/Internship/summarization_tf-master/train.py", line 78, in
module

*trn_x, trn_y_raw = zip(sorted(trn_data.items()))
ValueError: not enough values to unpack (expected 2, got 0)

Can someone help me through this? It would be really helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants