models.py 文件源码

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

项目:optnet 作者: locuslab 项目源码 文件源码
def forward(self, x):
        nBatch = x.size(0)

        x = F.max_pool2d(self.conv1(x), 2)
        x = F.max_pool2d(self.conv2(x), 2)
        x = x.view(nBatch, -1)
        x = F.relu(self.fc1(x))
        x = self.fc2(x)
        return self.projF(x)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号