mlx.data.Buffer.shuffle

mlx.data.Buffer.shuffle#

Buffer.shuffle(self: mlx.data._c.Buffer) mlx.data._c.Buffer#

Create a random permutation of equal size to the buffer and apply it thus shuffling the buffer.