network3.py 文件源码

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

项目:neural-networks-and-deep-learning 作者: skylook 项目源码 文件源码
def set_inpt(self, inpt, inpt_dropout, mini_batch_size):
        self.inpt = inpt.reshape(self.image_shape)
        conv_out = conv.conv2d(
            input=self.inpt, filters=self.w, filter_shape=self.filter_shape,
            image_shape=self.image_shape)
        pooled_out = downsample.max_pool_2d(
            input=conv_out, ds=self.poolsize, ignore_border=True)
        self.output = self.activation_fn(
            pooled_out + self.b.dimshuffle('x', 0, 'x', 'x'))
        self.output_dropout = self.output # no dropout in the convolutional layers
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号