tsinghua-fib-lab / DRL-urban-planning

A deep reinforcement learning (DRL) based approach for spatial layout of land use and roads in urban communities. (Nature Computational Science)
https://rdcu.be/dlRPZ
MIT License
203 stars 40 forks source link

about GPU acceleration #17

Open gallexy opened 13 hours ago

gallexy commented 13 hours ago

感谢开源这个项目,获益良多! 跑了几遍这个程序,有一点比较好奇:好像训练中大多计算没有利用GPU加速, 反而有些代码强制使用cpu运算,如下: with to_cpu(*self.sample_modules) 不知是什么缘故。是专门这样设计的吗?