def permute(num):
if permute_data:<EOL><INDENT>return np.random.permutation(num)<EOL><DEDENT>else:<EOL><INDENT>logging.warning("<STR_LIT>")<EOL>return np.arange(num)<EOL><DEDENT>
Permutation for randomizing data order.