model.py 文件源码

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

项目:pytorch-a3c 作者: Azulgrana1 项目源码 文件源码
def forward(self, inputs):
        inputs, (hx, cx) = inputs
        x = F.elu(self.conv1(inputs))
        x = F.elu(self.conv2(x))
        x = F.elu(self.conv3(x))
        x = F.elu(self.conv4(x))

        x = x.view(-1, 32 * 3 * 3)
        hx, cx = self.lstm(x, (hx, cx))
        x = hx

        return self.critic_linear(x), self.actor_linear(x), (hx, cx)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号