train_a3c_gym.py 文件源码

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

项目:ai-bs-summer17 作者: uchibe 项目源码 文件源码
def pi_and_v(self, state):

        def forward(head, lstm, tail):
            h = F.relu(head(state))
            h = lstm(h)
            return tail(h)

        pout = forward(self.pi_head, self.pi_lstm, self.pi)
        vout = forward(self.v_head, self.v_lstm, self.v)

        return pout, vout
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号