farm.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:stanford-osrl 作者: ctmakro 项目源码 文件源码
def newproc(self):
        global plock
        self.timer_update()

        self.pq, self.cq = Queue(1), Queue(1) # two queue needed
        # self.pc, self.cc = Pipe()

        self.p = Process(
            target = standalone_headless_isolated,
            args=(self.pq, self.cq, plock)
        )
        self.p.daemon = True
        self.p.start()

        self.reset_count = 0 # how many times has this instance been reset() ed
        self.step_count = 0

        self.timer_update()
        return

    # send x to the process
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号