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

Can run on GPU but not CPU #2

Open
angela-zhao opened this issue Jul 5, 2018 · 2 comments
Open

Can run on GPU but not CPU #2

angela-zhao opened this issue Jul 5, 2018 · 2 comments

Comments

@angela-zhao
Copy link

I can successfully run the model on a virtual machine with GPUs but am unable to run the same code on my local computer using a CPU.

I am getting the following error:
InvalidArgumentError (see above for traceback): /Users/angela.zhao/Documents/Projects/text-similarity/S2V/s2v_models/BS400-W300-S1200-Glove-BC-bidir/train/model.ckpt-114466.data-00000-of-00001; Invalid argument
[[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

@lajanugen
Copy link
Owner

Was this the result of loading a checkpoint for evaluation ? Can you share the command that was used ?

@angela-zhao
Copy link
Author

I used sh eval.sh. The same command worked on a VM with GPUs.

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