originholic / a3c_vrep

2 stars 4 forks source link

Does threading work? #1

Open hashbangCoder opened 8 years ago

hashbangCoder commented 8 years ago

Hi,

Nice Implementation! I was wondering if threading works on TF? Are you able to utilize all the cores? Or do you have to switch to multiprocessing?

originholic commented 8 years ago

Thanks for the information, threading should work fine for tensorflow, and unlock the GIL in python, as stated in the post Asynchronous computation in tensorflow, and it is slightly difficult to use multiprocessing in tensorflow with this code structure, as you cannot pass/share session across multiple processes.