ops.py 文件源码

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

项目:tfdeploy 作者: riga 项目源码 文件源码
def test_RandomShuffle(self):
        t = tf.random_shuffle(self.random(10, 4))
        # compare only sum of first axis
        def comp(rtf, rtd):
            self.assertTrue(np.allclose(np.sum(rtf, axis=0), np.sum(rtd, axis=0)))
        self.check(t, comp=comp)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号