dsindex.py 文件源码

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

项目:dataset 作者: analysiscenter 项目源码 文件源码
def build_from_index(self, index, paths, dirs):
        """ Build index from another index for indices given. """
        if isinstance(paths, dict):
            self._paths = dict((file, paths[file]) for file in index)
        else:
            self._paths = dict((file, paths[pos]) for pos, file in np.ndenumerate(index))
        self.dirs = dirs
        return index
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号