caffe_python_layers.py 文件源码

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

项目:alchemy 作者: voidrank 项目源码 文件源码
def reshape(self, bottom, top):
        while self.redis.llen(config.solver_prototxt) == 0:
            print 'waiting for spider...', self.redis.llen(config.solver_prototxt)
            time.sleep(0.2)

        self.item = cPickle.loads(self.redis.lpop(config.solver_prototxt))
        item = self.item

        for i in range(len(item)):
            top[i].reshape(*item[i].shape)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号