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

ResourceExhaustedError: OOM when allocating tensor of shape #27

Open
galoisgroupcn opened this issue Apr 2, 2019 · 0 comments
Open

Comments

@galoisgroupcn
Copy link

galoisgroupcn commented Apr 2, 2019

Hi,

As I run 'bash experiments/train_can_paper.sh' and 'bash experiments/eval_can_paper.sh' with the provided code, I always get the same error below:

ResourceExhaustedError (see above for traceback): OOM when allocating tensor of shape [5,5,1024,1024] and type float
[[Node: generator/g_h1/w/Adam/Initializer/zeros = Const_class=["loc:@generator/g_h1/w"], dtype=DT_FLOAT, value=Tensor<type: float shape: [5,5,1024,1024] values: [[[0 0 0]]]...>, _device="/job:localhost/replica:0/task:0/device:GPU:0"]]

Does anyone encounter similar errors? Should I load WikiArt in batches instead of reading the whole thing all at once? How may I modify the code? Thank you!

FYI, I am running Ubuntu 18.04 with Nvidia GTX 1050 and Driver Version 390.116

  • In train_can_paper.sh, I tried to change the "batch_size" from '16' to '4' & '1', but it still came out with the same error.

Thank you very much!

@philkuz @phillip-kravtsov @ruotianluo @lanmcmill

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

1 participant