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

Training on GPU #16

Closed
dropcunt opened this issue Nov 14, 2018 · 2 comments
Closed

Training on GPU #16

dropcunt opened this issue Nov 14, 2018 · 2 comments
Labels

Comments

@dropcunt
Copy link

when I set the device to my GPU in run.py i get the following error:

InvalidArgumentError (see above for traceback): Cannot assign a device for operation 'ppo/initialize/action-action/Initializer/zeros': Could not satisfy explicit device specification '' because the node was colocated with a group of nodes that required incompatible device '/device:GPU:0' Colocation Debug Info: Colocation group had the following types and devices: Assign: CPU Const: CPU Fill: GPU CPU Switch: GPU CPU VariableV2: CPU Identity: GPU CPU RefSwitch: GPU CPU StridedSliceAssign: GPU CPU IsVariableInitialized: CPU

Does anybody has the same issue? Do you know were you can set something like
allow_soft_placement=True?
Thanks for your help!

@kkuette
Copy link
Owner

kkuette commented Nov 14, 2018

Tensorforce use GPU by default, you can delete this line to use it. If you are not using convolutionnal network, using CPU is faster.

@dropcunt
Copy link
Author

Thanks. You're right I thought it will be faster with the GPU

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

No branches or pull requests

2 participants