neural_networks_tutorial.py 文件源码

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

项目:tutorials 作者: pytorch 项目源码 文件源码
def forward(self, x):
        # Max pooling over a (2, 2) window
        x = F.max_pool2d(F.relu(self.conv1(x)), (2, 2))
        # If the size is a square you can only specify a single number
        x = F.max_pool2d(F.relu(self.conv2(x)), 2)
        x = x.view(-1, self.num_flat_features(x))
        x = F.relu(self.fc1(x))
        x = F.relu(self.fc2(x))
        x = self.fc3(x)
        return x
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号