example1.py 文件源码

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

项目:pytorch_tutorial 作者: soravux 项目源码 文件源码
def forward(self, x):
        x = F.relu(F.max_pool2d(self.conv1(x), 2))
        x = F.relu(F.max_pool2d(self.conv2_drop(self.conv2(x)), 2))
        x = x.view(-1, 320)
        x = F.relu(self.fc1(x))
        x = F.dropout(x, training=self.training)
        x = self.fc2(x)
        return F.log_softmax(x)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号