def gen_onehot_keys(input_size, batch_size, targets): return np.vstack([one_hot(input_size, [t]) for t in targets])