dqn.py 文件源码

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

项目:DQN 作者: Ivehui 项目源码 文件源码
def __init__(self, action_space, model=pms.newModel):
        self.action_space = action_space

        actionSolver = None
        actionSolver = caffe.get_solver(pms.actionSolverPath)
        actionSolver.net.copy_from(model)
        # test net share weights with train net
        actionSolver.test_nets[0].share_with(actionSolver.net)
        self.solver = actionSolver

        self.targetNet = caffe.Net(pms.actionTestNetPath, model, caffe.TEST)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号