convolution.py 文件源码

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

项目:tensorflow-yolo 作者: hjimce 项目源码 文件源码
def recollect(self, w):
        if w is None:
            self.w = w
            return
        k = w['kernel']
        b = w['biases']
        k = np.take(k, self.inp, 2)
        k = np.take(k, self.out, 3)
        b = np.take(b, self.out)
        assert1 = k.shape == tuple(self.wshape['kernel'])
        assert2 = b.shape == tuple(self.wshape['biases'])
        assert assert1 and assert2, \
        'Dimension not matching in {} recollect'.format(
            self._signature)
        self.w['kernel'] = k
        self.w['biases'] = b
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号