neural_network.py 文件源码

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

项目:pytorch_60min_blitz 作者: kyuhyoung 项目源码 文件源码
def forward_ori(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)
         #self.num_flat_features(x) = 16 * 5 * 5
        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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号