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)
文章目录