Sadjad Alikhani commited on
Commit
77ee88c
·
verified ·
1 Parent(s): da21525

Update input_preprocess.py

Browse files
Files changed (1) hide show
  1. input_preprocess.py +2 -1
input_preprocess.py CHANGED
@@ -245,7 +245,8 @@ def make_sample(user_idx, patch, word2id, n_patches, n_masks, patch_size, gen_ra
245
  input_ids[pos] = np.random.rand(patch_size)
246
  elif rnd_num < 0.9:
247
  input_ids[pos] = word2id['[MASK]']
248
- print(f'masked_pos: {masked_pos}')
 
249
  return [input_ids, masked_tokens, masked_pos]
250
 
251
 
 
245
  input_ids[pos] = np.random.rand(patch_size)
246
  elif rnd_num < 0.9:
247
  input_ids[pos] = word2id['[MASK]']
248
+ if user_idx == 0:
249
+ print(f'masked_pos: {masked_pos}')
250
  return [input_ids, masked_tokens, masked_pos]
251
 
252