I converted images to tensors(4-D) now I want to shuffle it wothout disturbing the order.
I tried
idx = np.random.permutation(len(data))
x,y = data[idx], classes[idx]
but got error:
TypeError: Only integers, slices (`:`), ellipsis (`...`), tf.newaxis (`None`) and scalar tf.int32/tf.int64 tensors are valid indices, got array([135, 80, 178, ..., 253, 103])