Closed TomorrowIsAnOtherDay closed 4 years ago
We found the top2 rules are unnecessary in multi-thread, which means that following the 3rd rule we could make our multi-thread code work, even in the complicated network.
@velconia Hope this information will be helpful for you.
Yes, I will push a PR to fix this api later.
Since you haven\'t replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。
In reinforcement learning algorithm, having training and prediction at the same time is necessary. But it's hard to implement our parallel algorithm using current API of Fluid. Also, it's very easy to get into trouble when you try to use multi-thread training in your algorithm. Here is an example to show how to use multi-thread safely in Fluid.
To use multi-thread in your algorithm, there are three rules you have to obey:
It's really unfriendly to users who want to use multi-thread in their algorithms. Could we simplify these limitation or hide these process below the fluid API?