utils.py 文件源码

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

项目:tfdnn-kaldi 作者: dreaming-dog 项目源码 文件源码
def shuffle_together(self, mats):
        """

        :param mats: shuffles the given matrices and maintains the same 'shuffled order' in all matrices
        """
        rng = random.getstate()
        for mat in mats:
            random.setstate(rng) # reset random state to the saved state to get the same 'shuffled order' as previous shuffling
            random.shuffle(mat)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号